diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py
index <HASH>..<HASH> 100755
--- a/howdoi/howdoi.py
+++ b/howdoi/howdoi.py
@@ -104,11 +104,8 @@ def _get_links_on_bing(query):
SEARCH_ENGINE = 'bing'
result = _get_result(_get_search_url(SEARCH_ENGINE).format(URL, url_quote(query)))
- with open('test.html')... | remove file reading and printing for debug.. | py |
diff --git a/saltapi/netapi/rest_cherrypy/app.py b/saltapi/netapi/rest_cherrypy/app.py
index <HASH>..<HASH> 100644
--- a/saltapi/netapi/rest_cherrypy/app.py
+++ b/saltapi/netapi/rest_cherrypy/app.py
@@ -1860,13 +1860,14 @@ class API(object):
'stats': Stats,
}
+ def _setattr_url_map(self):
+ fo... | Extract setting custom URLs into a method | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,13 +6,14 @@ def readme():
setup(
name = 'sinchsms',
- version = '1.0',
+ version = '1.0.3',
description = 'A module to send sms using the Sinch REST apis, www.sinch.com',
long_description = readme(),
author... | Updated pip package to be a one-file module. | py |
diff --git a/teletype/io/common.py b/teletype/io/common.py
index <HASH>..<HASH> 100644
--- a/teletype/io/common.py
+++ b/teletype/io/common.py
@@ -25,6 +25,7 @@ def erase_lines(n=1):
for _ in range(n):
print(codes.CURSOR["up"], end="")
print(codes.CURSOR["eol"], end="")
+ stdout.flush()
d... | Flushes after erase_lines | py |
diff --git a/nodeconductor/iaas/views.py b/nodeconductor/iaas/views.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/iaas/views.py
+++ b/nodeconductor/iaas/views.py
@@ -1239,6 +1239,10 @@ class OpenstackAlertStatsView(views.APIView):
alerts = (logging_models.Alert.objects.filter(aggregate_query)
... | Filter statistics for opened alerts (nc-<I>) | py |
diff --git a/s3contents/s3_fs.py b/s3contents/s3_fs.py
index <HASH>..<HASH> 100644
--- a/s3contents/s3_fs.py
+++ b/s3contents/s3_fs.py
@@ -65,7 +65,7 @@ class S3FS(GenericFS):
# GenericFS methods -----------------------------------------------------------------------------------------------
- def ls(self, ... | default value for path param in ls (#<I>) | py |
diff --git a/warehouse/i18n/__init__.py b/warehouse/i18n/__init__.py
index <HASH>..<HASH> 100644
--- a/warehouse/i18n/__init__.py
+++ b/warehouse/i18n/__init__.py
@@ -33,6 +33,7 @@ KNOWN_LOCALES = {
"zh_Hans", # Simplified Chinese
"ru", # Russian
"he", # Hebrew
+ "eo", # Esperanto
... | Add eo locale to KNOWN_LOCALES mapping (#<I>) | py |
diff --git a/soco/events.py b/soco/events.py
index <HASH>..<HASH> 100755
--- a/soco/events.py
+++ b/soco/events.py
@@ -13,6 +13,7 @@ from __future__ import unicode_literals
import threading
import socket
import logging
+import weakref
import requests
from .compat import (SimpleHTTPRequestHandler, urlopen, URLErr... | Using weakrefs for mapping | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,10 +29,14 @@ else:
if hasattr(pip, '__version__') and LooseVersion(pip.__version__) >= LooseVersion('6.0.0'):
from pip.req import parse_requirements
else:
- from pip.req import parse_requirements as parse_require... | Common pip < <I> support. | py |
diff --git a/synapse/tools/cryo/cat.py b/synapse/tools/cryo/cat.py
index <HASH>..<HASH> 100644
--- a/synapse/tools/cryo/cat.py
+++ b/synapse/tools/cryo/cat.py
@@ -19,6 +19,8 @@ def main(argv, outp=s_output.stdout):
pars.add_argument('--authfile', help='Path to your auth file for the remote cell')
# TODO: ma... | added TODO to capture a couple additional ideas | py |
diff --git a/tests/test_rencode.py b/tests/test_rencode.py
index <HASH>..<HASH> 100644
--- a/tests/test_rencode.py
+++ b/tests/test_rencode.py
@@ -202,6 +202,11 @@ class TestRencode(unittest.TestCase):
self.fail('%s is not an instance of %r' % (repr(d), unicode))
s = rencode.dumps(b"\x56\xe4foo\xc... | Add test to check rencode version is exposed | py |
diff --git a/airflow/contrib/hooks/mongo_hook.py b/airflow/contrib/hooks/mongo_hook.py
index <HASH>..<HASH> 100644
--- a/airflow/contrib/hooks/mongo_hook.py
+++ b/airflow/contrib/hooks/mongo_hook.py
@@ -60,11 +60,11 @@ class MongoHook(BaseHook):
uri = 'mongodb://{creds}{host}{port}/{database}'.format(
... | [AIRFLOW-<I>] Fix mongo hook to work with anonymous access (#<I>) If no login/password was supplied it would generate an invalid DSN | py |
diff --git a/salt/states/mongodb.py b/salt/states/mongodb.py
index <HASH>..<HASH> 100644
--- a/salt/states/mongodb.py
+++ b/salt/states/mongodb.py
@@ -326,7 +326,7 @@ def user_grant_roles(name, roles,
if __salt__['mongodb.user_grant_roles'](name, roles, database,
user=user, password=password, host=host, p... | this is particularly heinous. doin' it for the lint | py |
diff --git a/tests/extmod/machine1.py b/tests/extmod/machine1.py
index <HASH>..<HASH> 100644
--- a/tests/extmod/machine1.py
+++ b/tests/extmod/machine1.py
@@ -1,6 +1,12 @@
# test machine module
-import machine
+try:
+ import machine
+except ImportError:
+ print("SKIP")
+ import sys
+ sys.exit()
+
import... | tests: Check that machine module exists and print SKIP if it doesn't. | py |
diff --git a/instana/__init__.py b/instana/__init__.py
index <HASH>..<HASH> 100644
--- a/instana/__init__.py
+++ b/instana/__init__.py
@@ -141,6 +141,8 @@ def boot_agent():
if "INSTANA_MAGIC" in os.environ:
pkg_resources.working_set.add_entry("/tmp/.instana/python")
+ # The following path is deprecated: To b... | Add pkg_resources safety (#<I>) | py |
diff --git a/glue_vispy_viewers/volume/volume_visual.py b/glue_vispy_viewers/volume/volume_visual.py
index <HASH>..<HASH> 100644
--- a/glue_vispy_viewers/volume/volume_visual.py
+++ b/glue_vispy_viewers/volume/volume_visual.py
@@ -321,9 +321,10 @@ class MultiVolumeVisual(VolumeVisual):
@property
def _free_s... | Fixed a bug in _free_slot_index - slots with enabled=0 are not free - only slots that don't appear in self.volumes are now free. | py |
diff --git a/src/anyconfig/cli.py b/src/anyconfig/cli.py
index <HASH>..<HASH> 100644
--- a/src/anyconfig/cli.py
+++ b/src/anyconfig/cli.py
@@ -346,7 +346,9 @@ def _load_diff(args, extra_opts):
_exit_with_output("Wrong input type '%s'" % args.itype, 1)
except API.UnknownFileTypeError:
_exit_with_o... | enhancement: [cli] print inputs info also if those types are unknown Make cli prints out inputs (files) info also if it failed to detect those types from file names. | py |
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index <HASH>..<HASH> 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -2136,7 +2136,7 @@ class Mastodon:
# Load header, if specified
if not header is None:
- if header_mime_type is None and (isinstance(avatar,... | fixed copy paste typo. Should be able to set header image now | py |
diff --git a/precisely/function_matchers.py b/precisely/function_matchers.py
index <HASH>..<HASH> 100644
--- a/precisely/function_matchers.py
+++ b/precisely/function_matchers.py
@@ -3,10 +3,10 @@ from .results import matched, unmatched
def raises(exception):
- return Raises(exception)
+ return RaisesMatcher... | Rename Raises to RaisesMatcher | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,6 +19,8 @@ setup(
long_description = read_file('README'),
packages = find_packages(),
include_package_data = True,
+
+
scripts = ['calloway/bin/generate_reqs.py',],
classifiers = [
... | Attempting to avoid a conflict | py |
diff --git a/vent/api/plugin_helpers.py b/vent/api/plugin_helpers.py
index <HASH>..<HASH> 100644
--- a/vent/api/plugin_helpers.py
+++ b/vent/api/plugin_helpers.py
@@ -247,7 +247,10 @@ class PluginHelper:
options = "".join(cmds)
# store options set for docker
... | ast.literal_eval doesn't like #. Added check to deal with that | py |
diff --git a/onecodex/vendored/potion_client/__init__.py b/onecodex/vendored/potion_client/__init__.py
index <HASH>..<HASH> 100644
--- a/onecodex/vendored/potion_client/__init__.py
+++ b/onecodex/vendored/potion_client/__init__.py
@@ -3,9 +3,13 @@ from functools import partial
from operator import getitem, delitem, se... | Update vendored potion-client library for compatibility with collections imports in Python <I> | py |
diff --git a/profiling/__main__.py b/profiling/__main__.py
index <HASH>..<HASH> 100644
--- a/profiling/__main__.py
+++ b/profiling/__main__.py
@@ -353,6 +353,7 @@ def __profile__(filename, code, globals_, profiler_factory,
viewer, loop = make_viewer(mono)
viewer.set_profiler_class(type(profiler))
... | Activate viewer at __profile__ | py |
diff --git a/src/redash_client.py b/src/redash_client.py
index <HASH>..<HASH> 100644
--- a/src/redash_client.py
+++ b/src/redash_client.py
@@ -253,4 +253,11 @@ class RedashClient(object):
row_arr = json_result.get("widgets", [])
# Return a flattened list of all widgets
- return list(itertools.chain.from_... | Break up widget flattening code for easier readability. | py |
diff --git a/solvebio/resource/savedquery.py b/solvebio/resource/savedquery.py
index <HASH>..<HASH> 100644
--- a/solvebio/resource/savedquery.py
+++ b/solvebio/resource/savedquery.py
@@ -1,3 +1,7 @@
+from ..query import Query
+
+from .dataset import Dataset
+
from .apiresource import CreateableAPIResource
from .apire... | add query method to SavedQuery resource | py |
diff --git a/molecule/commands.py b/molecule/commands.py
index <HASH>..<HASH> 100644
--- a/molecule/commands.py
+++ b/molecule/commands.py
@@ -167,8 +167,12 @@ class Converge(AbstractCommand):
callback_plugin = kwargs.get('_env', {}).get('ANSIBLE_CALLBACK_PLUGINS', '')
# Set the idempotence ... | Fix callback_plugin path When concatenating several paths, they must be separated using a colon ``(':')`` sign. Fixes metacloud/molecule#<I> | py |
diff --git a/salt/states/test.py b/salt/states/test.py
index <HASH>..<HASH> 100644
--- a/salt/states/test.py
+++ b/salt/states/test.py
@@ -43,6 +43,17 @@ from salt.exceptions import SaltInvocationError
log = logging.getLogger(__name__)
+def nop(name, **kwargs):
+ '''
+ A no-op state that does nothing. Useful... | Add test.nop state A no-op state that does nothing. Useful in conjunction with the `use` requisite, or in templates which could otherwise be empty due to jinja rendering Unlike test.succeed_without_changes, takes **kwargs to be more flexible. Also removed the test stuff from succeed_without_changes. If a state doesn... | py |
diff --git a/tests/unit/states/test_win_lgpo.py b/tests/unit/states/test_win_lgpo.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/test_win_lgpo.py
+++ b/tests/unit/states/test_win_lgpo.py
@@ -4,7 +4,6 @@
import copy
import salt.config
-import salt.ext.six as six
import salt.loader
import salt.states.win_lg... | Drop Py2 and six on tests/unit/states/test_win_lgpo.py | py |
diff --git a/juicer/common/Cart.py b/juicer/common/Cart.py
index <HASH>..<HASH> 100644
--- a/juicer/common/Cart.py
+++ b/juicer/common/Cart.py
@@ -265,4 +265,8 @@ class Cart(object):
self[repo] = urls[repo]
def cart_file(self):
+ """
+ return the path to the json cart file
+ not... | provide comments for what Cart.cart_file does for #<I> | py |
diff --git a/python/phonenumbers/__init__.py b/python/phonenumbers/__init__.py
index <HASH>..<HASH> 100644
--- a/python/phonenumbers/__init__.py
+++ b/python/phonenumbers/__init__.py
@@ -147,7 +147,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/molo/yourwords/admin.py b/molo/yourwords/admin.py
index <HASH>..<HASH> 100644
--- a/molo/yourwords/admin.py
+++ b/molo/yourwords/admin.py
@@ -45,7 +45,8 @@ def convert_to_article(request, entry_id):
entry = get_object_or_404(YourWordsCompetitionEntry, pk=entry_id)
if not entry.article_page:
... | when creating the draft converted article, save it in the current site | py |
diff --git a/heartbeat/util.py b/heartbeat/util.py
index <HASH>..<HASH> 100644
--- a/heartbeat/util.py
+++ b/heartbeat/util.py
@@ -28,7 +28,7 @@ def hb_encode(obj):
if (type(obj) is list):
return list(map(lambda x: hb_encode(x), obj))
else: # elif (type(obj) is bytes):
- return base64.b64enco... | hopefully final encoding issue fix. | py |
diff --git a/gitenberg/travis/__init__.py b/gitenberg/travis/__init__.py
index <HASH>..<HASH> 100644
--- a/gitenberg/travis/__init__.py
+++ b/gitenberg/travis/__init__.py
@@ -142,5 +142,3 @@ def build_epub(epub_title='book'):
# error code?
# http://stackoverflow.com/questions/6180185/custom-python-exc... | Merge branch 'master' into covers # Conflicts: # gitenberg/travis/__init__.py | py |
diff --git a/openquake/commands/compare.py b/openquake/commands/compare.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/compare.py
+++ b/openquake/commands/compare.py
@@ -127,7 +127,8 @@ def compare(what, imt, calc_ids, files, samplesites='', rtol=0, atol=1E-3,
if len(calc_ids) == 2 and what == 'hmaps'... | Small renaming [skip CI] | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,11 @@ except ImportError as ie:
print("PyEMMA requires setuptools. Please install it with conda or pip.")
sys.exit(1)
+if sys.version_info[0] < 3:
+ print('PyEMMA requires Python3k')
+ sys.exit(2)
+... | [setup] check for py3 | py |
diff --git a/examples/simulations/gyroscope2.py b/examples/simulations/gyroscope2.py
index <HASH>..<HASH> 100644
--- a/examples/simulations/gyroscope2.py
+++ b/examples/simulations/gyroscope2.py
@@ -62,7 +62,7 @@ for i, t in enumerate(pb.range()):
gaxis = (Lshaft + 0.03) * vector(st * sp, ct, st * cp)
# set... | Updated deg<-> rad conversion in examples/simulations/gyroscope2.py | py |
diff --git a/tomodachi/launcher.py b/tomodachi/launcher.py
index <HASH>..<HASH> 100644
--- a/tomodachi/launcher.py
+++ b/tomodachi/launcher.py
@@ -100,7 +100,7 @@ class ServiceLauncher(object):
cls.restart_services = True
init_modules = [m for m in sys.modules.keys()]
- safe_modules = ['typin... | added google.protobuf to safe_modules to enable hot-reloading | py |
diff --git a/pydoop/mapreduce/binary_streams.py b/pydoop/mapreduce/binary_streams.py
index <HASH>..<HASH> 100644
--- a/pydoop/mapreduce/binary_streams.py
+++ b/pydoop/mapreduce/binary_streams.py
@@ -158,8 +158,6 @@ class BinaryUpStreamFilter(UpStreamFilter):
s = serialize_to_string(v)
... | Removed a stray sys.stderr write. | py |
diff --git a/ipyrad/__main__.py b/ipyrad/__main__.py
index <HASH>..<HASH> 100644
--- a/ipyrad/__main__.py
+++ b/ipyrad/__main__.py
@@ -439,8 +439,8 @@ def main():
## otherwise use all available cores. By default _ipcluster[cores]
## is set to detect_cpus in Assembly.__init__)
if ... | testing MPI on HPC multiple nodes | py |
diff --git a/galpy/potential/Potential.py b/galpy/potential/Potential.py
index <HASH>..<HASH> 100644
--- a/galpy/potential/Potential.py
+++ b/galpy/potential/Potential.py
@@ -672,7 +672,7 @@ class Potential(Force):
return self._amp*self._phi2deriv(R,Z,phi=phi,t=t)
except AttributeError: #pragma: n... | Fix a few error messages in Potential | py |
diff --git a/great_expectations/data_context/data_context.py b/great_expectations/data_context/data_context.py
index <HASH>..<HASH> 100644
--- a/great_expectations/data_context/data_context.py
+++ b/great_expectations/data_context/data_context.py
@@ -17,6 +17,7 @@ import datetime
import shutil
import importlib
from ... | Re-implement save_expectation_suite, with deprecation warning | py |
diff --git a/c7n/resources/cloudtrail.py b/c7n/resources/cloudtrail.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/cloudtrail.py
+++ b/c7n/resources/cloudtrail.py
@@ -233,6 +233,9 @@ class DeleteTrail(BaseAction):
def process(self, resources):
client = local_session(self.manager.session_factory).cli... | aws.cloudtrail - delete action check for shadow (org and multi region) (#<I>) | py |
diff --git a/spyderlib/utils/introspection/manager.py b/spyderlib/utils/introspection/manager.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/introspection/manager.py
+++ b/spyderlib/utils/introspection/manager.py
@@ -33,7 +33,7 @@ dependencies.add('rope',
JEDI_REQVER = '>=0.8.1'
dependencies.add('jedi',
- ... | Dependencies: Add a missing space for the Jedi text | py |
diff --git a/cli/sawtooth_cli/rest_client.py b/cli/sawtooth_cli/rest_client.py
index <HASH>..<HASH> 100644
--- a/cli/sawtooth_cli/rest_client.py
+++ b/cli/sawtooth_cli/rest_client.py
@@ -18,6 +18,9 @@ import urllib.request as urllib
from urllib.parse import urlencode
from urllib.error import URLError, HTTPError
from... | Add batch string handling to rest client send_batches | py |
diff --git a/nosetimer/plugin.py b/nosetimer/plugin.py
index <HASH>..<HASH> 100644
--- a/nosetimer/plugin.py
+++ b/nosetimer/plugin.py
@@ -1,11 +1,14 @@
import logging
-import multiprocessing
import operator
import os
import re
import termcolor
import timeit
+# Windows and Python 2.7 multiprocessing don't marry... | Conditionally removed Windows multiprocessing reference | 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
@@ -336,7 +336,7 @@ class HoverItemTool(gaphas.tool.HoverTool):
from gaphas.aspect import ElementHandleSelection... | style(mygaphas.tools): Adapt distance to items considered as hovered | py |
diff --git a/command/bdist_rpm.py b/command/bdist_rpm.py
index <HASH>..<HASH> 100644
--- a/command/bdist_rpm.py
+++ b/command/bdist_rpm.py
@@ -332,8 +332,8 @@ class bdist_rpm (Command):
# definitions and headers
spec_file = [
'%define name ' + self.distribution.get_name(),
- '%... | Patch #<I>: Replace - by _ in version and release. | py |
diff --git a/rtree/index.py b/rtree/index.py
index <HASH>..<HASH> 100644
--- a/rtree/index.py
+++ b/rtree/index.py
@@ -7,8 +7,6 @@ from . import core
import pickle
-import sys
-
RT_Memory = 0
@@ -1508,7 +1506,6 @@ class Property(object):
def get_filename(self):
return core.rt.IndexProperty_GetFi... | Rebase branch for changes related to dropping Python 2 support | py |
diff --git a/pymatgen/__init__.py b/pymatgen/__init__.py
index <HASH>..<HASH> 100644
--- a/pymatgen/__init__.py
+++ b/pymatgen/__init__.py
@@ -14,16 +14,17 @@ __date__ = "Dec 15 2016"
__version__ = "4.5.4"
-SETTINGS_FILE = Path("~/.pmgrc.yaml")
+SETTINGS_FILE = Path("~/.pmgrc.yaml").expanduser()
def _load_pmg... | Fix bad reading of pmgrc. | py |
diff --git a/invenio_records_rest/views.py b/invenio_records_rest/views.py
index <HASH>..<HASH> 100644
--- a/invenio_records_rest/views.py
+++ b/invenio_records_rest/views.py
@@ -526,6 +526,8 @@ class RecordsListResource(ContentNegotiatedMethodView):
search_obj = self.search_class()
search = search_ob... | views: fix seach total counts for ES7 | py |
diff --git a/pages/http.py b/pages/http.py
index <HASH>..<HASH> 100644
--- a/pages/http.py
+++ b/pages/http.py
@@ -113,6 +113,11 @@ def pages_view(view):
only_context=True, delegation=False)
context = response
kwargs.update(context)
+ extra_context_var = kwargs.pop(... | pass extra_context_var to pages_view to specify the name of the variable that is supposed to hold the extra context | py |
diff --git a/tests/test_indices.py b/tests/test_indices.py
index <HASH>..<HASH> 100644
--- a/tests/test_indices.py
+++ b/tests/test_indices.py
@@ -113,6 +113,17 @@ class TestMax1DayPrecipitationAmount:
rx1day = r1max(a)
assert np.isnan(rx1day)
+class TestColdSpellIndex:
+ def test_simple(self, ta... | added test for cold_spell_index | py |
diff --git a/rstcheck.py b/rstcheck.py
index <HASH>..<HASH> 100755
--- a/rstcheck.py
+++ b/rstcheck.py
@@ -157,13 +157,15 @@ class IgnoredDirective(docutils.parsers.rst.Directive):
# Ignore Sphinx directives.
for _directive in [
+ 'attribute',
'centered',
'deprecated',
'envvar',
... | Ignore more roles/directives found in Python docs | py |
diff --git a/airflow/models/taskinstance.py b/airflow/models/taskinstance.py
index <HASH>..<HASH> 100644
--- a/airflow/models/taskinstance.py
+++ b/airflow/models/taskinstance.py
@@ -1200,7 +1200,7 @@ class TaskInstance(Base, LoggingMixin): # pylint: disable=R0902,R0904
task_copy.post_execute(context=conte... | Log task_instance execution duration as milliseconds (#<I>) This is best achieved by passing a `timedelta()` to `Stats.timing()`, and leave worrying about time units to that method. | py |
diff --git a/pybromo/diffusion.py b/pybromo/diffusion.py
index <HASH>..<HASH> 100644
--- a/pybromo/diffusion.py
+++ b/pybromo/diffusion.py
@@ -660,7 +660,9 @@ class ParticlesSimulation(object):
if max_counts == 0:
return np.array([], dtype=np.int64), np.array([], dtype=np.int64)
- ts_rang... | FIX: overflow due to int<I> timestamps | py |
diff --git a/scripts/worker.py b/scripts/worker.py
index <HASH>..<HASH> 100755
--- a/scripts/worker.py
+++ b/scripts/worker.py
@@ -121,7 +121,8 @@ class Worker(object):
self.run_tests(self.data['test_cases'])
result['status'] = 'success'
except (MakeFailed, NonexistentExecutable) as e... | Ignore invalid utf-8 data in Makefile output. | py |
diff --git a/ipywebrtc/_version.py b/ipywebrtc/_version.py
index <HASH>..<HASH> 100644
--- a/ipywebrtc/_version.py
+++ b/ipywebrtc/_version.py
@@ -1,6 +1,6 @@
-__version_tuple__ = (0, 3, 0)
+__version_tuple__ = (0, 4, 0)
__version_tuple_js__ = (0, 3, 0)
-__version__ = '0.3.0'
+__version__ = '0.4.0'
__version_js__ = '... | Release <I> of py | py |
diff --git a/src/cqparts/utils.py b/src/cqparts/utils.py
index <HASH>..<HASH> 100644
--- a/src/cqparts/utils.py
+++ b/src/cqparts/utils.py
@@ -1,19 +1,23 @@
import cadquery
-class buffered_property(object):
+class property_buffered(object):
"""
Buffer the result of a method on the class instance
usage... | renamed buffered_property to property_buffer and fixed example code | py |
diff --git a/peri/opt/addsubtract.py b/peri/opt/addsubtract.py
index <HASH>..<HASH> 100644
--- a/peri/opt/addsubtract.py
+++ b/peri/opt/addsubtract.py
@@ -11,6 +11,30 @@ import peri.opt.optimize as opt
from peri.logger import log
CLOG = log.getChild('addsub')
+def guess_invert(st):
+ """Guesses whether particles... | addsubtract.guess_invert to guess what invert should be from data. | py |
diff --git a/icon_font_to_png.py b/icon_font_to_png.py
index <HASH>..<HASH> 100644
--- a/icon_font_to_png.py
+++ b/icon_font_to_png.py
@@ -123,8 +123,8 @@ def export_icon(icons, icon, size, filename, ttf_file, color, scale):
if iteration % 2 == 0:
factor *= 0.99
- draw.text(((size - width) / ... | Use float numbers when calculating icon position (This way we get the same results in Python 2 and 3.) | py |
diff --git a/imagemounter/volume.py b/imagemounter/volume.py
index <HASH>..<HASH> 100644
--- a/imagemounter/volume.py
+++ b/imagemounter/volume.py
@@ -133,17 +133,17 @@ class Volume(object):
return self.size
def __extended_fs_type(self):
- """Obtains a the fs type of the volume, based the fir... | Completed the change of other files as well and made the python magic optional | py |
diff --git a/pysysinfo/diskio.py b/pysysinfo/diskio.py
index <HASH>..<HASH> 100644
--- a/pysysinfo/diskio.py
+++ b/pysysinfo/diskio.py
@@ -394,18 +394,26 @@ class DiskIOinfo:
else:
return None
- def getLVstats(self, vg, lv):
+ def getLVstats(self, *args):
"""Returns I/O stats ... | Bugfix and improvement in method for LV stats in diskio. | py |
diff --git a/account/views.py b/account/views.py
index <HASH>..<HASH> 100644
--- a/account/views.py
+++ b/account/views.py
@@ -686,7 +686,7 @@ class SettingsView(LoginRequiredMixin, FormView):
fields["language"] = form.cleaned_data["language"]
if fields:
account = self.request.user.ac... | Fixed call to iteritems | py |
diff --git a/plenum/server/message_handlers.py b/plenum/server/message_handlers.py
index <HASH>..<HASH> 100644
--- a/plenum/server/message_handlers.py
+++ b/plenum/server/message_handlers.py
@@ -131,8 +131,9 @@ class PreprepareHandler(BaseHandler):
return pp
def requestor(self, params: Dict[str, Any]) -... | INDY-<I>: revert requestor logic in message_handlers.py Because primary node will not contains PrePrepare in sentPrePrepares, only in getPrePrepare | py |
diff --git a/Imports/fits_image.py b/Imports/fits_image.py
index <HASH>..<HASH> 100644
--- a/Imports/fits_image.py
+++ b/Imports/fits_image.py
@@ -45,15 +45,18 @@ class FitsImage():
self.deg_per_pixel_y = self.hdu.header["CDELT2"] # is this always right?
#if the bpa isn't specified add it as zero
... | added logging.INFO comments when BPA,BMAJ, or BMIN are not in the fits header. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -207,7 +207,7 @@ setup(
'plaso.parsers.winreg_plugins': ['*.yaml'],
},
zip_safe=False,
- scripts=glob.glob(os.path.join('tools', '*.py')),
+ scripts=glob.glob(os.path.join('tools', '[a-z]*.py')),
... | Changes to prevent scripts/__init__.py from being installed (#<I>) | py |
diff --git a/instana/tracer.py b/instana/tracer.py
index <HASH>..<HASH> 100644
--- a/instana/tracer.py
+++ b/instana/tracer.py
@@ -14,6 +14,7 @@ from instana.util import generate_id
class InstanaTracer(BasicTracer):
sensor = None
+ current_span = None
def __init__(self, options=o.Options()):
... | Add a way to retrieve current context of active span | py |
diff --git a/tests/tween_test.py b/tests/tween_test.py
index <HASH>..<HASH> 100644
--- a/tests/tween_test.py
+++ b/tests/tween_test.py
@@ -345,6 +345,10 @@ def test_request_properties():
{},
body='{"myKey": 42}',
headers={"X-Some-Special-Header": "foobar"})
+ # this assert is intended to f... | Tweaked the unit tests for PyramidSwaggerRequest. Added an assert to force a read of a property, to force some black magic in webob to happen in time for the actual tests. | py |
diff --git a/keanu-python/tests/test_net.py b/keanu-python/tests/test_net.py
index <HASH>..<HASH> 100644
--- a/keanu-python/tests/test_net.py
+++ b/keanu-python/tests/test_net.py
@@ -24,7 +24,7 @@ def test_construct_bayes_net() -> None:
("get_observed_vertices", False, True, True, True),
... | annotate a test in test_net which I missed | py |
diff --git a/pushbaby/pushconnection.py b/pushbaby/pushconnection.py
index <HASH>..<HASH> 100644
--- a/pushbaby/pushconnection.py
+++ b/pushbaby/pushconnection.py
@@ -204,7 +204,7 @@ class PushConnection:
else:
logger.warn("Push to token %s failed with status %d", base64.b64encode(failed.t... | Oops, don't base<I> decode tokens we pass back in error handler: we use raw tokens everywhere else. | py |
diff --git a/testing/python/metafunc.py b/testing/python/metafunc.py
index <HASH>..<HASH> 100644
--- a/testing/python/metafunc.py
+++ b/testing/python/metafunc.py
@@ -258,6 +258,13 @@ class TestMetafunc:
"three-b2",
]
+ def test_idmaker_with_ids(self):
+ ... | added test for None in idmaker | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,6 +16,7 @@ setup(name='dispatch',
'pillow',
'requests == 2.6.0',
'jsonfield',
+ 'google-cloud-storage',
],
extras_require={
'dev': [ | Add google-cloud-storage package to requirements | py |
diff --git a/pythontranslate/__init__.py b/pythontranslate/__init__.py
index <HASH>..<HASH> 100644
--- a/pythontranslate/__init__.py
+++ b/pythontranslate/__init__.py
@@ -13,14 +13,6 @@ class TranslateError(Exception):
@unique
-class GETTYPE(Enum):
- """represents the types you can get the languages"""
- DIC... | deleted GETTYPES Enum. not used anymore | py |
diff --git a/pymc3/step_methods/nuts.py b/pymc3/step_methods/nuts.py
index <HASH>..<HASH> 100644
--- a/pymc3/step_methods/nuts.py
+++ b/pymc3/step_methods/nuts.py
@@ -140,9 +140,7 @@ class NUTS(ArrayStepShared):
@staticmethod
def competence(var):
if var.dtype in continuous_types:
- if sum(... | Changed NUTS competence to make it preferred for continuous variables | py |
diff --git a/test/discr/l2_discr_test.py b/test/discr/l2_discr_test.py
index <HASH>..<HASH> 100644
--- a/test/discr/l2_discr_test.py
+++ b/test/discr/l2_discr_test.py
@@ -189,6 +189,30 @@ class TestDiscreteL2Vector(odl.util.testutils.ODLTestCase):
# Check ordering
self.assertAllAlmostEquals(vec.ntup... | added test that wrong size to l2.element throws | py |
diff --git a/gping/pinger.py b/gping/pinger.py
index <HASH>..<HASH> 100644
--- a/gping/pinger.py
+++ b/gping/pinger.py
@@ -244,7 +244,7 @@ def run():
url = "google.com"
if url == "--sim":
- it = _simulate()
+ it = _simulate
else:
it = _windows if platform.system() == "Windows... | Fix running gping in simulation mode | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -399,10 +399,10 @@ def getExtensionModules(nupicCoreReleaseDir, platform, bitness, cmdOptions=None)
# Find py_support cpp files in nupic.core
pythonSupportSources = [
- nupicCoreReleaseDir + "/include/nupic/py_suppo... | switched from absolute to relative paths for py_support | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -54,6 +54,7 @@ setup_args.update(dict(
package_data={'holoviews.ipython': ['*.html'],
'holoviews.plotting.mpl': ['*.mplstyle', '*.jinja', '*.js'],
'holoviews.plotting.bokeh': ['*.js',... | Added plotly package data to setup.py | py |
diff --git a/scripts/prepare-release-pr.py b/scripts/prepare-release-pr.py
index <HASH>..<HASH> 100644
--- a/scripts/prepare-release-pr.py
+++ b/scripts/prepare-release-pr.py
@@ -90,13 +90,10 @@ def prepare_release_pr(
if prerelease:
template_name = "release.pre.rst"
- doc_version = release_branc... | releasing: Always set doc_version (#<I>) Looks like something (tox?) does not deal with empty arguments being passed to release.py correctly | py |
diff --git a/symfit/contrib/interactive_guess/tests/test_interactive_fit.py b/symfit/contrib/interactive_guess/tests/test_interactive_fit.py
index <HASH>..<HASH> 100644
--- a/symfit/contrib/interactive_guess/tests/test_interactive_fit.py
+++ b/symfit/contrib/interactive_guess/tests/test_interactive_fit.py
@@ -4,6 +4,9 ... | Make interactive guess tests use Agg backend | py |
diff --git a/visidata/cmdlog.py b/visidata/cmdlog.py
index <HASH>..<HASH> 100644
--- a/visidata/cmdlog.py
+++ b/visidata/cmdlog.py
@@ -139,7 +139,7 @@ class _CommandLog:
self.afterExecSheet(sheet, False, '')
sheetname, colname, rowname = '', '', ''
- if sheet and cmd.longname != 'open-fil... | [cmdlog-] do not record sheet for all 'open-' cmds Fix for case where Shift+D CommandLogs for, e.g. open-plugins, would not be replayable. | py |
diff --git a/manticore/native/cpu/x86.py b/manticore/native/cpu/x86.py
index <HASH>..<HASH> 100644
--- a/manticore/native/cpu/x86.py
+++ b/manticore/native/cpu/x86.py
@@ -5572,6 +5572,35 @@ class X86Cpu(Cpu):
"""
@instruction
+ def ENDBR32(cpu):
+ """
+ The ENDBRANCH is a new instructio... | Split off ENDBR<I>/<I> from CHESS branch (#<I>) Seeing as they're fancy NOP's, I don't think there's any reason not to merge them into `master`, and thus avoid aggressively concretizing the state in order to emulate them under Unicorn. | py |
diff --git a/salt/states/nfs_export.py b/salt/states/nfs_export.py
index <HASH>..<HASH> 100644
--- a/salt/states/nfs_export.py
+++ b/salt/states/nfs_export.py
@@ -144,8 +144,9 @@ def present(name, clients=None, hosts=None, options=None, exports='/etc/exports'
ret['comment'] = 'Export {0} would be added'.f... | nfs_export: make changes output match, and cleanup | py |
diff --git a/tests/plugins/test_timedynamic_geo_json.py b/tests/plugins/test_timedynamic_geo_json.py
index <HASH>..<HASH> 100644
--- a/tests/plugins/test_timedynamic_geo_json.py
+++ b/tests/plugins/test_timedynamic_geo_json.py
@@ -70,4 +70,4 @@ def test_timedynamic_geo_json():
#assert expected_timestamps in out
... | Puts back in assertion of styledict | py |
diff --git a/kwargify.py b/kwargify.py
index <HASH>..<HASH> 100644
--- a/kwargify.py
+++ b/kwargify.py
@@ -7,8 +7,9 @@ class kwargify(object):
self._f = function
self._defaults = {}
self.func_defaults = tuple([])
- self._args = inspect.getargspec(self._f).args
- f_defaults = ins... | Minor change to construct ArgSpec instance only once | py |
diff --git a/website/py/allseq.py b/website/py/allseq.py
index <HASH>..<HASH> 100755
--- a/website/py/allseq.py
+++ b/website/py/allseq.py
@@ -102,9 +102,9 @@ class Sequence(list):
def __str__(self):
if self.well_formed():
- return "{:>6d} {:>5d}. sz {:>3d} {:s}\n".format(ali.seq, ... | Fix a crazy bug due to copy paste, revealed by previous refactoring reducing global variable count Lesson for the kiddies: global variables are bad. | py |
diff --git a/tests/type.py b/tests/type.py
index <HASH>..<HASH> 100644
--- a/tests/type.py
+++ b/tests/type.py
@@ -39,7 +39,9 @@ class SlowlyTypeTest(object):
self.browser.visit(EXAMPLE_APP + 'type')
num = 0
num_max = 6
- for key in self.browser.find_by_name('type-input').type('typing'... | tests/type.py is now pep8 certified | py |
diff --git a/fundamentals/mysql/insert_list_of_dictionaries_into_database_tables.py b/fundamentals/mysql/insert_list_of_dictionaries_into_database_tables.py
index <HASH>..<HASH> 100644
--- a/fundamentals/mysql/insert_list_of_dictionaries_into_database_tables.py
+++ b/fundamentals/mysql/insert_list_of_dictionaries_into_... | testing moving updates to insert into list of dictionaries into database | py |
diff --git a/geomdl/multi.py b/geomdl/multi.py
index <HASH>..<HASH> 100644
--- a/geomdl/multi.py
+++ b/geomdl/multi.py
@@ -693,9 +693,11 @@ class VolumeContainer(SurfaceContainer):
"""
def __init__(self, *args, **kwargs):
- self._instance = abstract.Volume
+ super(VolumeContainer, self).__init... | Temporary fix for the multi-volume constructor | py |
diff --git a/ovp_organizations/serializers.py b/ovp_organizations/serializers.py
index <HASH>..<HASH> 100644
--- a/ovp_organizations/serializers.py
+++ b/ovp_organizations/serializers.py
@@ -2,7 +2,6 @@ from django.core.exceptions import ValidationError
from ovp_uploads.serializers import UploadedImageSerializer
-... | Remove address_validate from GoogleAddressSerializer | py |
diff --git a/saltapi/version.py b/saltapi/version.py
index <HASH>..<HASH> 100644
--- a/saltapi/version.py
+++ b/saltapi/version.py
@@ -1,4 +1,4 @@
-__version_info__ = (0, 7, 5)
+__version_info__ = (0, 8, 0)
__version__ = '.'.join(map(str, __version_info__))
# If we can get a version from Git use that instead, other... | Bumped version number to <I> | py |
diff --git a/pyairtable/__init__.py b/pyairtable/__init__.py
index <HASH>..<HASH> 100644
--- a/pyairtable/__init__.py
+++ b/pyairtable/__init__.py
@@ -1,3 +1,3 @@
-__version__ = "1.0.0.rc7"
+__version__ = "1.0.0"
from .api import Api, Base, Table # noqa | Publish Version: <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
]
},
- long_description=open('docs/manual.rst').read(),
+ long_description=open('README.rst').read(),
install_requires=[
"argparse", #any version will do | Fixes to the main docx | py |
diff --git a/test/test.py b/test/test.py
index <HASH>..<HASH> 100755
--- a/test/test.py
+++ b/test/test.py
@@ -175,6 +175,7 @@ class TestTropoPython(unittest.TestCase):
url = "/receive_recording.py"
choices_obj = Choices("", terminator="#").json
tropo.record(say="Tell us about yourself", url=... | Add unittest for improvement/TROPO-<I>-record | py |
diff --git a/parsl/app/app.py b/parsl/app/app.py
index <HASH>..<HASH> 100644
--- a/parsl/app/app.py
+++ b/parsl/app/app.py
@@ -72,6 +72,9 @@ class BashApp(AppBase):
if self.exec_type != "bash":
raise NotImplemented
+ logger.debug("Before : %s", self.executable)
+ self.executable = ... | Updating for handling args and kwargs for cmd_line formatting by dfk. | py |
diff --git a/geoviews/plotting/bokeh/callbacks.py b/geoviews/plotting/bokeh/callbacks.py
index <HASH>..<HASH> 100644
--- a/geoviews/plotting/bokeh/callbacks.py
+++ b/geoviews/plotting/bokeh/callbacks.py
@@ -252,7 +252,7 @@ class GeoBoxEditCallback(BoxEditCallback):
return msg
boxes = msg['data']... | Ensure GeoBoxEditCallback retains vdims (#<I>) | py |
diff --git a/authomatic/core.py b/authomatic/core.py
index <HASH>..<HASH> 100644
--- a/authomatic/core.py
+++ b/authomatic/core.py
@@ -10,7 +10,6 @@ import hmac
import logging
import json
import pickle
-import six
import threading
import time
import six
@@ -41,7 +40,7 @@ def normalize_dict(dict_):
Normal... | Correct type str checking in core.py | py |
diff --git a/ykman/cli/util.py b/ykman/cli/util.py
index <HASH>..<HASH> 100644
--- a/ykman/cli/util.py
+++ b/ykman/cli/util.py
@@ -30,7 +30,8 @@ import click
import sys
from ..util import parse_b32_key
from yubikit.core import USB_INTERFACE
-from collections import OrderedDict, MutableMapping
+from collections impor... | Use updated location for MutableMapping. | py |
diff --git a/online_monitor/converter/converter_manager.py b/online_monitor/converter/converter_manager.py
index <HASH>..<HASH> 100644
--- a/online_monitor/converter/converter_manager.py
+++ b/online_monitor/converter/converter_manager.py
@@ -1,8 +1,8 @@
-import argparse
import logging
import yaml
import time
-
+imp... | ENH: show CPU usage and more info outputs | py |
diff --git a/atlassian/jira.py b/atlassian/jira.py
index <HASH>..<HASH> 100644
--- a/atlassian/jira.py
+++ b/atlassian/jira.py
@@ -28,25 +28,32 @@ class Jira(AtlassianRestAPI):
"""
return self.post('rest/api/2/reindex?type={}'.format(indexing_type))
- def jql(self, jql, fields='*all', start=0, li... | Jira.jql() api changes * As of limit is by default <I> set in Jira, I removed None value and used <I> as a default argument * Allowed fields to be passed as a list, in that case it will convert it into comma separated values | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.