diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pdfwatermarker/utils/write.py b/pdfwatermarker/utils/write.py
index <HASH>..<HASH> 100644
--- a/pdfwatermarker/utils/write.py
+++ b/pdfwatermarker/utils/write.py
@@ -10,7 +10,7 @@ def write_pdf(top_pdf, bottom_pdf, destination):
:param destination: Desintation path
"""
drawing = PdfFileReade... | Removed file opening from PdfFileReader and PdfFileWriter object args | py |
diff --git a/paper/scripts/k2sc_cdpp.py b/paper/scripts/k2sc_cdpp.py
index <HASH>..<HASH> 100755
--- a/paper/scripts/k2sc_cdpp.py
+++ b/paper/scripts/k2sc_cdpp.py
@@ -22,7 +22,7 @@ import warnings
from urllib.error import HTTPError
from scipy.signal import savgol_filter
-for campaign in range(4,7):
+for campaign in... | add c3 to k2sc | py |
diff --git a/tests/test_formatter.py b/tests/test_formatter.py
index <HASH>..<HASH> 100644
--- a/tests/test_formatter.py
+++ b/tests/test_formatter.py
@@ -62,6 +62,11 @@ class CommandTestCase(unittest.TestCase):
help='A sample option with numeric choices',
type=click.Choice([1, 2, 3]),
... | tests: Add test for boolean options This was missing, weirdly. Make sure we don't regress. | py |
diff --git a/contrib/buildgen/src/python/pants/contrib/buildgen/build_file_manipulator.py b/contrib/buildgen/src/python/pants/contrib/buildgen/build_file_manipulator.py
index <HASH>..<HASH> 100644
--- a/contrib/buildgen/src/python/pants/contrib/buildgen/build_file_manipulator.py
+++ b/contrib/buildgen/src/python/pants/... | Port buildgen to py3 (#<I>) ### Problem Porting buildgen to py3. Needs references to str and object. ### Solution added builtins import for str and object | py |
diff --git a/profiling/remote/select.py b/profiling/remote/select.py
index <HASH>..<HASH> 100644
--- a/profiling/remote/select.py
+++ b/profiling/remote/select.py
@@ -13,7 +13,7 @@
"""
from __future__ import absolute_import
-from errno import EINTR
+from errno import ECONNRESET, EINTR
import select
import socket
... | Ignore ECONNRESET when handling client disconnection | py |
diff --git a/vcr/stubs/__init__.py b/vcr/stubs/__init__.py
index <HASH>..<HASH> 100644
--- a/vcr/stubs/__init__.py
+++ b/vcr/stubs/__init__.py
@@ -6,6 +6,10 @@ from cStringIO import StringIO
from vcr.request import Request
+class CannotOverwriteExistingCassetteException(Exception):
+ pass
+
+
def parse_headers... | Nicer error for can't overwrite existing cassette Raise CannotOverwriteExistingCassetteException rather than Exception. Include cassette filename and record mode in error message. | 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, find_packages
-version = '0.3.0'
+version = '0.4.0'
if sys.argv[-1] == 'tag':
print("Tagging the version on github:") | Bump to version '<I>' | py |
diff --git a/pmagpy/new_builder.py b/pmagpy/new_builder.py
index <HASH>..<HASH> 100644
--- a/pmagpy/new_builder.py
+++ b/pmagpy/new_builder.py
@@ -129,15 +129,20 @@ class Contribution(object):
names_list = ['specimen', 'sample', 'site', 'location']
# add in any tables that you can
for num, na... | fix up propagate_measurement_info | py |
diff --git a/paypal/standard/models.py b/paypal/standard/models.py
index <HASH>..<HASH> 100644
--- a/paypal/standard/models.py
+++ b/paypal/standard/models.py
@@ -266,6 +266,12 @@ class PayPalStandardBase(Model):
def is_recurring_failed(self):
return self.txn_type == "recurring_payment_failed"
+ def ... | Improved support for suspended transaction types. From henriquebastos, thank you! | py |
diff --git a/tornado/gen.py b/tornado/gen.py
index <HASH>..<HASH> 100644
--- a/tornado/gen.py
+++ b/tornado/gen.py
@@ -91,7 +91,7 @@ from tornado.log import app_log
from tornado.util import TimeoutError
import typing
-from typing import Union, Any, Callable, List, Type, Tuple, Awaitable, Dict
+from typing import Un... | Allow non-yielding functions in `tornado.gen.coroutine`'s type hint (#<I>) `@gen.coroutine` deco allows non-yielding functions, so I reflected that in the type hint. Requires usage of `@typing.overload` due to python/mypy#<I> | py |
diff --git a/photonpump/connection.py b/photonpump/connection.py
index <HASH>..<HASH> 100644
--- a/photonpump/connection.py
+++ b/photonpump/connection.py
@@ -943,8 +943,11 @@ class PhotonPumpProtocol(asyncio.streams.FlowControlMixin):
async def dispatch(self):
while True:
- next_msg = await ... | Add try/except around dispatch loop. | py |
diff --git a/uber_rides/utils/handlers.py b/uber_rides/utils/handlers.py
index <HASH>..<HASH> 100644
--- a/uber_rides/utils/handlers.py
+++ b/uber_rides/utils/handlers.py
@@ -26,8 +26,6 @@ from __future__ import unicode_literals
from uber_rides.errors import ClientError
from uber_rides.errors import ServerError
-fr... | Added better support for python 2/3 to support simplejson/json | py |
diff --git a/openid/extensions/pape.py b/openid/extensions/pape.py
index <HASH>..<HASH> 100644
--- a/openid/extensions/pape.py
+++ b/openid/extensions/pape.py
@@ -254,4 +254,4 @@ class Response(Extension):
return ns_args
-Response.ns_uri = ns_uri
+Request.ns_uri = ns_uri | [project @ Fix the ns_uri assignment to the PAPE response] | py |
diff --git a/parsl/providers/provider_base.py b/parsl/providers/provider_base.py
index <HASH>..<HASH> 100644
--- a/parsl/providers/provider_base.py
+++ b/parsl/providers/provider_base.py
@@ -29,7 +29,15 @@ class JobState(bytes, Enum):
class JobStatus(object):
- """Encapsulates a job state together with other de... | Elaborate JobStatus docstring to include stdout/err/state info (#<I>) | py |
diff --git a/allauth/account/views.py b/allauth/account/views.py
index <HASH>..<HASH> 100644
--- a/allauth/account/views.py
+++ b/allauth/account/views.py
@@ -94,10 +94,10 @@ class ConfirmEmailView(TemplateResponseMixin, View):
}
def get_template_names(self):
- return {
- "GET": ["acco... | Confirm e-mail crashes on HEAD request, fixed (closes #<I>) | py |
diff --git a/angr/sim_options.py b/angr/sim_options.py
index <HASH>..<HASH> 100644
--- a/angr/sim_options.py
+++ b/angr/sim_options.py
@@ -217,8 +217,8 @@ BEST_EFFORT_MEMORY_STORING = 'BEST_EFFORT_MEMORY_STORING'
# Approximation options (to optimize symbolic execution)
APPROXIMATE_GUARDS = "APPROXIMATE_GUARDS"
APPRO... | Typo fix in sim_options.py. (#<I>) | py |
diff --git a/openhtf/util/measurements.py b/openhtf/util/measurements.py
index <HASH>..<HASH> 100644
--- a/openhtf/util/measurements.py
+++ b/openhtf/util/measurements.py
@@ -63,7 +63,6 @@ Examples:
import collections
-import itertools
import logging
from enum import Enum
@@ -350,10 +349,8 @@ class Collection(... | Cleanup measurements.Collection.__iter__ Replaced a function and itertools.imap() call with a simpler generator expression | py |
diff --git a/examples/plotting/file/custom_datetime_axis.py b/examples/plotting/file/custom_datetime_axis.py
index <HASH>..<HASH> 100644
--- a/examples/plotting/file/custom_datetime_axis.py
+++ b/examples/plotting/file/custom_datetime_axis.py
@@ -1,4 +1,3 @@
-from pdb import set_trace as bp
from math import pi
impo... | Stylistic improvements Fixed indentation and improved coffeescript for loop using one-liner syntax | py |
diff --git a/packages/vaex-core/vaex/core/_version.py b/packages/vaex-core/vaex/core/_version.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/core/_version.py
+++ b/packages/vaex-core/vaex/core/_version.py
@@ -1,2 +1,2 @@
-__version_tuple__ = (0, 5, 0)
-__version__ = '0.5.0'
+__version_tuple__ = (0, 5, 1)
... | Release <I> of vaex-core | py |
diff --git a/quart/serving.py b/quart/serving.py
index <HASH>..<HASH> 100644
--- a/quart/serving.py
+++ b/quart/serving.py
@@ -140,7 +140,8 @@ class HTTPProtocol:
)
finally:
del self.streams[stream_id]
- self._timeout_handle = self.loop.call_later(self._timeout, self._h... | Don't trigger an idle timeout, if not idle If there are streams in existance, they are being processed and hence the connection is not idle. | py |
diff --git a/aiostream/manager.py b/aiostream/manager.py
index <HASH>..<HASH> 100644
--- a/aiostream/manager.py
+++ b/aiostream/manager.py
@@ -48,6 +48,8 @@ class TaskGroup:
# This makes sense since we don't know in which context the exception
# was meant to be processed. For instance, a `StopAsyncIte... | Consume all exceptions for non-cancelled tasks Calling `.exception()` makes sure we do not get `Task exception was never retrieved` if two tasks fail in the same tick. This fixes vxgmichel/aiostream#<I> | py |
diff --git a/singularity/hub/registry/utils/recipes.py b/singularity/hub/registry/utils/recipes.py
index <HASH>..<HASH> 100644
--- a/singularity/hub/registry/utils/recipes.py
+++ b/singularity/hub/registry/utils/recipes.py
@@ -37,8 +37,7 @@ def find_recipes(folders,pattern=None, base=None):
(indicated by Starting ... | modified: singularity/hub/registry/utils/recipes.py | py |
diff --git a/gwpy/timeseries/io/losc.py b/gwpy/timeseries/io/losc.py
index <HASH>..<HASH> 100644
--- a/gwpy/timeseries/io/losc.py
+++ b/gwpy/timeseries/io/losc.py
@@ -200,7 +200,7 @@ def read_losc_hdf5(h5f, path='strain/Strain',
"""
dataset = io_hdf5.find_dataset(h5f, path)
# read data
- nddata = data... | gwpy.timeseries: fixed HDF5 DeprecationWarning | py |
diff --git a/billy/models/events.py b/billy/models/events.py
index <HASH>..<HASH> 100644
--- a/billy/models/events.py
+++ b/billy/models/events.py
@@ -25,8 +25,8 @@ class Event(Document):
'''
bills = []
for bill in self['related_bills']:
- if 'bill_id' in bill:
- bil... | Use the new correct key for mongo ids | py |
diff --git a/pyout.py b/pyout.py
index <HASH>..<HASH> 100644
--- a/pyout.py
+++ b/pyout.py
@@ -459,7 +459,7 @@ class Tabular(object):
self._fields[column] = field
- _preformat_method = lambda self, x: x
+ _transform_method = lambda self, x: x
def _seq_to_dict(self, row):
return di... | Rename Tabular._{preformat => transform}_method This name better reflects the purpose of this method: it transforms the row into the expected {column: value} form, whereas "preformat" comes from the fact that the original code used this method to prepare the data for a format call. | py |
diff --git a/tests/test_pytumblr.py b/tests/test_pytumblr.py
index <HASH>..<HASH> 100644
--- a/tests/test_pytumblr.py
+++ b/tests/test_pytumblr.py
@@ -126,7 +126,7 @@ class TumblrRestClientTest(unittest.TestCase):
HTTPretty.register_uri(HTTPretty.POST, 'http://api.tumblr.com/v2/blog/seejohnrun.tumblr.com/post/... | Added a test for #<I> | py |
diff --git a/nodeconductor/sugarcrm/backend.py b/nodeconductor/sugarcrm/backend.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/sugarcrm/backend.py
+++ b/nodeconductor/sugarcrm/backend.py
@@ -23,8 +23,6 @@ class SugarCRMBackend(object):
def __getattr__(self, name):
return getattr(self.backend, name)
... | Remove TODO (leftover) - nc-<I> | py |
diff --git a/linguist/helpers.py b/linguist/helpers.py
index <HASH>..<HASH> 100644
--- a/linguist/helpers.py
+++ b/linguist/helpers.py
@@ -12,6 +12,9 @@ def prefetch_translations(instances, **kwargs):
"""
from .mixins import ModelMixin
+ if not isinstance(instances, collections.Iterable):
+ instan... | Fix prefetch_translations() -- be sure we only deal with iteratables. | py |
diff --git a/sdcclient/_scanning.py b/sdcclient/_scanning.py
index <HASH>..<HASH> 100644
--- a/sdcclient/_scanning.py
+++ b/sdcclient/_scanning.py
@@ -448,9 +448,15 @@ class SdScanningClient(_SdcCommon):
**Success Return Value**
A JSON object containing the policy description.
'''
- ... | Fix error while getting scanning policy (#<I>) | py |
diff --git a/src/guake.py b/src/guake.py
index <HASH>..<HASH> 100644
--- a/src/guake.py
+++ b/src/guake.py
@@ -1124,7 +1124,7 @@ def main():
remote_object.quit()
called_with_param = True
- if not called_with_param:
+ if not called_with_param and already_running:
# here we know that gu... | Making guake not be shown when running on first time. | py |
diff --git a/ci/lib/opsmgr.py b/ci/lib/opsmgr.py
index <HASH>..<HASH> 100644
--- a/ci/lib/opsmgr.py
+++ b/ci/lib/opsmgr.py
@@ -77,8 +77,8 @@ def delete(url, check_response=True):
check_response(response, check_response=check_response)
return response
-def check_response(response, check_response=True):
- if check_... | New method name collided with argument name | py |
diff --git a/src/validate.py b/src/validate.py
index <HASH>..<HASH> 100644
--- a/src/validate.py
+++ b/src/validate.py
@@ -139,8 +139,9 @@ def assert_xl_consistency(xl, mc):
def assert_xd_consistency(xd, mr, mc):
- assert len(xd) == len(mr["name_to_idx"])
- # is it rectangular?
+ # is number of row la... | fix logic when using xd: was using xd as if transposed | py |
diff --git a/tcex/services/services.py b/tcex/services/services.py
index <HASH>..<HASH> 100644
--- a/tcex/services/services.py
+++ b/tcex/services/services.py
@@ -558,7 +558,7 @@ class Services(object):
status_code, status = args[0].split(' ', 1)
response = {
'bodyVariable': '... | Update commond type for run service to Acknowledged | py |
diff --git a/src/SALib/util/__init__.py b/src/SALib/util/__init__.py
index <HASH>..<HASH> 100755
--- a/src/SALib/util/__init__.py
+++ b/src/SALib/util/__init__.py
@@ -348,4 +348,4 @@ def _compute_delta(num_levels: int) -> float:
-------
float
"""
- return num_levels / (2.0 * (num_levels - 1))
\ No new... | Small change to conform to PEP8 | py |
diff --git a/lib/svtplay/hds.py b/lib/svtplay/hds.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay/hds.py
+++ b/lib/svtplay/hds.py
@@ -253,9 +253,8 @@ def readasrtbox(data, pos):
def decode_f4f(fragID, fragData):
start = fragData.find("mdat") + 4
if (fragID > 1):
- for dummy in range(2):
- ... | download_hds: fix some decoding problems Saw some issues while downloading streams from urplay. | py |
diff --git a/pdfconduit/__init__.py b/pdfconduit/__init__.py
index <HASH>..<HASH> 100644
--- a/pdfconduit/__init__.py
+++ b/pdfconduit/__init__.py
@@ -1,5 +1,5 @@
__all__ = ["upscale", "rotate", "Encrypt", "Merge", "Watermark", "Label", "WatermarkAdd", "slicer",
- "GUI"]
+ "GUI", "Info"]
__version... | Added Info class to __all__ | py |
diff --git a/ravel.py b/ravel.py
index <HASH>..<HASH> 100644
--- a/ravel.py
+++ b/ravel.py
@@ -731,7 +731,7 @@ class Connection :
if reply != None :
result = reply.expect_return_objects(call_info["out_signature"])
else :
- result = None
+ raise dbus.DBusError(DBUS.ER... | raise timeout exception rather than return None method response | py |
diff --git a/forms_builder/forms/migrations/0003_auto__add_field_field_slug.py b/forms_builder/forms/migrations/0003_auto__add_field_field_slug.py
index <HASH>..<HASH> 100644
--- a/forms_builder/forms/migrations/0003_auto__add_field_field_slug.py
+++ b/forms_builder/forms/migrations/0003_auto__add_field_field_slug.py
@... | Add unique_together constract for form, field.slug | py |
diff --git a/src/dependencies/_package.py b/src/dependencies/_package.py
index <HASH>..<HASH> 100644
--- a/src/dependencies/_package.py
+++ b/src/dependencies/_package.py
@@ -5,15 +5,15 @@ from ._this import random_string
class Package(object):
def __init__(self, name):
- self.__name = name
+ self... | Dependencies package is using dunder names. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -17,7 +17,7 @@ import os
# If your extensions are in another directory, add it here. If the directory
# is relative to the documentation root, use os.path.abspath to make it
# absolute, like shown here.
-sys... | "../" not "../carrot" | py |
diff --git a/pykeyboard/base.py b/pykeyboard/base.py
index <HASH>..<HASH> 100644
--- a/pykeyboard/base.py
+++ b/pykeyboard/base.py
@@ -103,7 +103,7 @@ class PyKeyboardEventMeta(Thread):
#simpler, without digging a bunch of traps for incompatibilities between
#platforms.
- #Keeping track of the keyboard's... | Changed comment about state trackig being generally necessary for conversion, this may only be true for x<I> | py |
diff --git a/SpiffWorkflow/bpmn/specs/EndEvent.py b/SpiffWorkflow/bpmn/specs/EndEvent.py
index <HASH>..<HASH> 100644
--- a/SpiffWorkflow/bpmn/specs/EndEvent.py
+++ b/SpiffWorkflow/bpmn/specs/EndEvent.py
@@ -15,10 +15,9 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
from SpiffWor... | The EndEvent shouldn't be a subclass of ParallelGateway. In fact it doesn't need to be a Join at all. | py |
diff --git a/openquake/commands/plot.py b/openquake/commands/plot.py
index <HASH>..<HASH> 100644
--- a/openquake/commands/plot.py
+++ b/openquake/commands/plot.py
@@ -111,7 +111,9 @@ def make_figure_hmaps(extractors, what):
itime = oq1.investigation_time
assert oq2.investigation_time == itime
... | Fixed oq plot hmaps | py |
diff --git a/salt/utils/slack.py b/salt/utils/slack.py
index <HASH>..<HASH> 100644
--- a/salt/utils/slack.py
+++ b/salt/utils/slack.py
@@ -123,4 +123,3 @@ def query(function,
return ret
ret['message'] = _result.get(response)
return ret
- | Fixing empty line at the end of salt.utils.slack. | py |
diff --git a/menuinst/win32.py b/menuinst/win32.py
index <HASH>..<HASH> 100644
--- a/menuinst/win32.py
+++ b/menuinst/win32.py
@@ -74,12 +74,17 @@ class ShortCut(object):
cmd = join(self.prefix, 'pythonw.exe')
args = ['-m', 'webbrowser', '-t', self.shortcut['webbrowser']]
+ elif "scri... | Support 'script' key to shortcut to arbitrary executable | py |
diff --git a/salt/runners/manage.py b/salt/runners/manage.py
index <HASH>..<HASH> 100644
--- a/salt/runners/manage.py
+++ b/salt/runners/manage.py
@@ -5,7 +5,6 @@ and what hosts are down
# Import python libs
import os
-import shutil
# Import salt libs
import salt.key | runners.manage: rm unused import of shutil | py |
diff --git a/dddp/api.py b/dddp/api.py
index <HASH>..<HASH> 100644
--- a/dddp/api.py
+++ b/dddp/api.py
@@ -498,7 +498,10 @@ class DDP(APIMixin):
return
try:
result = handler(*params)
- this.send_msg({'msg': 'result', 'id': id_, 'result': result})
+ msg = {'msg': ... | Don't include null/None reply from method calls in message. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -563,15 +563,14 @@ hds = Extension('starlink.hds',
setup(name='starlink-hds',
version='0.1',
- description='Python interface to the Starlink HDS library'
- packages =['starlink'],
+ description='Python... | Fix typos in setup.py | py |
diff --git a/src/sos/step_executor.py b/src/sos/step_executor.py
index <HASH>..<HASH> 100755
--- a/src/sos/step_executor.py
+++ b/src/sos/step_executor.py
@@ -409,6 +409,7 @@ class Base_Step_Executor:
env.sos_dict.set('step_depends', sos_targets([]))
env.sos_dict.set('_depends', sos_targets([]))
+
... | Disallow the concurrent use options trunk_workers and nodes #<I> | py |
diff --git a/bypy.py b/bypy.py
index <HASH>..<HASH> 100755
--- a/bypy.py
+++ b/bypy.py
@@ -1500,13 +1500,15 @@ class ByPy(object):
return EFileWrite
def __store_json(self, r):
+ j = {}
try:
- r.json()
+ j = r.json()
except Exception:
perr("Failed to decode JSON:\n" \
"Exception:\n{}".format(... | Print auth/refresh web response on error | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,6 +20,7 @@ setup(name='universe',
'twisted',
'ujson',
],
+ package_data={'universe': 'runtimes.yml'},
tests_require=['pytest'],
extras_require={
'atari': 'gym[atar... | include runtimes.yml in pip package | py |
diff --git a/salt/modules/wordpress.py b/salt/modules/wordpress.py
index <HASH>..<HASH> 100644
--- a/salt/modules/wordpress.py
+++ b/salt/modules/wordpress.py
@@ -10,8 +10,8 @@ from __future__ import absolute_import
import collections
# Import Salt Modules
-from salt.ext.six.moves import map
import salt.utils.path... | Update reference to old salt.utils.which function | py |
diff --git a/salt/monitor.py b/salt/monitor.py
index <HASH>..<HASH> 100644
--- a/salt/monitor.py
+++ b/salt/monitor.py
@@ -149,21 +149,21 @@ class MonitorCommand(object):
'''
A single monitor command.
'''
- def __init__(self, name, src, context, sleeper=None):
- self.name = name
+ def __i... | Include the command id when trace logging each command's sleep | py |
diff --git a/payflowpro/classes.py b/payflowpro/classes.py
index <HASH>..<HASH> 100644
--- a/payflowpro/classes.py
+++ b/payflowpro/classes.py
@@ -50,7 +50,7 @@ class Field(object):
class CreditCardField(Field):
def clean(self, value):
if isinstance(value, basestring):
- return re.sub(r'\s', '... | Remove '-' from credit card numbers | py |
diff --git a/src/reap/commands/reports.py b/src/reap/commands/reports.py
index <HASH>..<HASH> 100644
--- a/src/reap/commands/reports.py
+++ b/src/reap/commands/reports.py
@@ -112,8 +112,10 @@ def hours(args):
else:
unbillable += proj_total
t... | Fixed a problem with the hours report. | py |
diff --git a/src/pycrunchbase/pycrunchbase.py b/src/pycrunchbase/pycrunchbase.py
index <HASH>..<HASH> 100755
--- a/src/pycrunchbase/pycrunchbase.py
+++ b/src/pycrunchbase/pycrunchbase.py
@@ -69,7 +69,7 @@ class CrunchBase(object):
Returns
FundingRound or None
"""
- node_data = self... | Update funding-round to funding-rounds | py |
diff --git a/source/rafcon/gui/mygaphas/items/state.py b/source/rafcon/gui/mygaphas/items/state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/mygaphas/items/state.py
+++ b/source/rafcon/gui/mygaphas/items/state.py
@@ -371,7 +371,7 @@ class StateView(Element):
self.update_minimum_size_of_children()
... | fix(state): Properly check for geometric info in outcome meta data Issue was introduced in old commit <I>e0d<I> | py |
diff --git a/testing/test_looponfail.py b/testing/test_looponfail.py
index <HASH>..<HASH> 100644
--- a/testing/test_looponfail.py
+++ b/testing/test_looponfail.py
@@ -193,6 +193,8 @@ class TestLooponFailing:
assert 'test_one' not in remotecontrol.failures[0]
assert 'test_two' in remotecontrol.failures... | mark looponfail tests broken by <I>+ as xfail | py |
diff --git a/jsonklog/lib.py b/jsonklog/lib.py
index <HASH>..<HASH> 100644
--- a/jsonklog/lib.py
+++ b/jsonklog/lib.py
@@ -14,7 +14,10 @@
# limitations under the License.
#
-# Originally borrowed from @Openstack/Nova
+# Originally borrowed from @Openstack/Nova (All licenses apply to below code as per openstack.or... | Updated lib.py, and added some more notes about OpenStack | py |
diff --git a/pyani/pyani_graphics.py b/pyani/pyani_graphics.py
index <HASH>..<HASH> 100644
--- a/pyani/pyani_graphics.py
+++ b/pyani/pyani_graphics.py
@@ -10,9 +10,9 @@
# Leighton Pritchard,
# Strathclyde Institute of Pharmaceutical and Biomedical Sciences
# The University of Strathclyde
-# Cathedral Street
+# Cath... | set lower bound on identity distribution graph x axis to <I> | py |
diff --git a/ftfy/__init__.py b/ftfy/__init__.py
index <HASH>..<HASH> 100644
--- a/ftfy/__init__.py
+++ b/ftfy/__init__.py
@@ -340,10 +340,8 @@ def guess_bytes(bstring):
return bstring.decode('utf-16'), 'utf-16'
byteset = set(bytes(bstring))
- byte_ed, byte_c0, byte_CR, byte_LF = b'\xed\xc0\r\n'
-
... | simplify how bytes are identified in guess_bytes | py |
diff --git a/lib/python/vdm/server/HTTPListener.py b/lib/python/vdm/server/HTTPListener.py
index <HASH>..<HASH> 100644
--- a/lib/python/vdm/server/HTTPListener.py
+++ b/lib/python/vdm/server/HTTPListener.py
@@ -1970,6 +1970,30 @@ class StopDatabaseAPI(MethodView):
500)
+class S... | VDM-<I>: Accidently removed StopServerAPI fixed | py |
diff --git a/mtools/mplotqueries/plottypes/scatter_type.py b/mtools/mplotqueries/plottypes/scatter_type.py
index <HASH>..<HASH> 100644
--- a/mtools/mplotqueries/plottypes/scatter_type.py
+++ b/mtools/mplotqueries/plottypes/scatter_type.py
@@ -7,6 +7,7 @@ import argparse
try:
import matplotlib.pyplot as plt
+ ... | checking for version before accessing dblclick event in matplotlib. | py |
diff --git a/simuvex/s_state.py b/simuvex/s_state.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_state.py
+++ b/simuvex/s_state.py
@@ -282,7 +282,10 @@ class SimState(object): # pylint: disable=R0904
# Returns a concretized value of the content in a register
def reg_concrete(self, *args, **kwargs):
- ... | fixed reg_concrete for Fish | py |
diff --git a/salt/modules/serverdensity_device.py b/salt/modules/serverdensity_device.py
index <HASH>..<HASH> 100644
--- a/salt/modules/serverdensity_device.py
+++ b/salt/modules/serverdensity_device.py
@@ -11,7 +11,7 @@ import requests
import json
import logging
-from six.moves import map
+from salt.utils.six.move... | Replaced module six in file /salt/modules/serverdensity_device.py | py |
diff --git a/scripts/build-property-graph.py b/scripts/build-property-graph.py
index <HASH>..<HASH> 100644
--- a/scripts/build-property-graph.py
+++ b/scripts/build-property-graph.py
@@ -17,7 +17,7 @@ def make_property_graph():
]
for ontology in ontologies:
- print(ontology)
+ print("parsing: ... | remove python reserved name (property) | py |
diff --git a/pyqode/core/widgets/errors_table.py b/pyqode/core/widgets/errors_table.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/widgets/errors_table.py
+++ b/pyqode/core/widgets/errors_table.py
@@ -157,6 +157,6 @@ class ErrorsTable(QtWidgets.QTableWidget):
QtWidgets.QMessageBox.information(
s... | Fix strange formatting of errors details Remove indentation and italic markup Indentation was not made on purpose and italic marks were wrongly placed. See OpenCobolIDE/OpenCobolIDE#<I> | py |
diff --git a/skyfield/chaining.py b/skyfield/chaining.py
index <HASH>..<HASH> 100644
--- a/skyfield/chaining.py
+++ b/skyfield/chaining.py
@@ -23,7 +23,7 @@ class Body(object):
def observe(self, body):
every = self.segments + body.segments
- segment_dict = {segment.target: segment for segment in ... | Repent of dict comprehensions for sake of <I> | py |
diff --git a/wandb/meta.py b/wandb/meta.py
index <HASH>..<HASH> 100644
--- a/wandb/meta.py
+++ b/wandb/meta.py
@@ -153,8 +153,8 @@ class Meta(object):
pass
# TODO: we should use the cuda library to collect this
if os.path.exists("/usr/local/cuda/version.txt"):
- self.data["cuda... | Remove ResourceWarning (#<I>) | py |
diff --git a/google/gax/__init__.py b/google/gax/__init__.py
index <HASH>..<HASH> 100644
--- a/google/gax/__init__.py
+++ b/google/gax/__init__.py
@@ -41,7 +41,7 @@ from google.gax.errors import GaxError
from google.gax.retry import retryable
-__version__ = '0.15.0'
+__version__ = '0.15.1'
_LOG = logging.getL... | Bump the version (#<I>) | py |
diff --git a/visidata/_types.py b/visidata/_types.py
index <HASH>..<HASH> 100644
--- a/visidata/_types.py
+++ b/visidata/_types.py
@@ -34,7 +34,7 @@ def currency(s=''):
class vlen(int):
def __new__(cls, v):
- if isinstance(v, vlen):
+ if isinstance(v, (vlen, int)):
return super(vlen, ... | [vlen] allow constructor to take int also | py |
diff --git a/visidata/join.py b/visidata/join.py
index <HASH>..<HASH> 100644
--- a/visidata/join.py
+++ b/visidata/join.py
@@ -17,7 +17,7 @@ def createJoinedSheet(sheets, jointype=''):
elif jointype == 'extend':
vs = copy(sheets[0])
vs.name = '+'.join(vs.name for vs in sheets)
- vs.reload ... | [join bugfix] extend passes source sheets as positional arg | py |
diff --git a/pyemma/coordinates/io/data_in_memory.py b/pyemma/coordinates/io/data_in_memory.py
index <HASH>..<HASH> 100644
--- a/pyemma/coordinates/io/data_in_memory.py
+++ b/pyemma/coordinates/io/data_in_memory.py
@@ -6,9 +6,6 @@ from scipy.spatial.distance import cdist
from pyemma.coordinates.transform.transformer i... | [DataInMemory] reset time if itraj is incremented. | py |
diff --git a/cleanerversion/__init__.py b/cleanerversion/__init__.py
index <HASH>..<HASH> 100644
--- a/cleanerversion/__init__.py
+++ b/cleanerversion/__init__.py
@@ -1,4 +1,4 @@
-VERSION = (2, 0, 1)
+VERSION = (2, 1, 0)
def get_version(positions=None): | Bumped version number to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,3 @@
-#!/usr/bin/env python3
-# -*- coding: utf-8 -*-
try:
from setuptools import setup
except ImportError: | Remove shebang and encoding from setup.py | py |
diff --git a/wfdb/processing/basic.py b/wfdb/processing/basic.py
index <HASH>..<HASH> 100644
--- a/wfdb/processing/basic.py
+++ b/wfdb/processing/basic.py
@@ -122,7 +122,7 @@ def resample_singlechan(x, ann, fs, fs_target):
assert ann.sample.shape == new_sample.shape
resampled_ann = Annotation(ann.record_nam... | resampling: ann.fs -> fs_target New Annotation object should be setting the frequency to fs_target instead of the previous fs | py |
diff --git a/git/test/test_git.py b/git/test/test_git.py
index <HASH>..<HASH> 100644
--- a/git/test/test_git.py
+++ b/git/test/test_git.py
@@ -210,7 +210,6 @@ class TestGit(TestBase):
assert err.status == 128
else:
assert 'FOO' in str(err)
- ... | fix(cmd): allow any kind of status message I see no need in verifying the status code. It's enough to just get the error. | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -204,7 +204,7 @@ def uname():
@task
-def reset():
+def reset(withPasswordReset=False):
check_config()
print green('Resetting '+ settings['name'] + "@" + current_config)
@@ -212,7 +212,8 @@ def reset():
... | reset password only when requested (reset:withPasswordReset=True) or after copyFrom | py |
diff --git a/seleniumbase/masterqa/master_qa.py b/seleniumbase/masterqa/master_qa.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/masterqa/master_qa.py
+++ b/seleniumbase/masterqa/master_qa.py
@@ -77,6 +77,11 @@ class __MasterQATestCase__(BaseCase):
text = self.execute_script(
'''if(conf... | Fix a bug that prevented masterqa tests from working in chrome | py |
diff --git a/pyregion/core.py b/pyregion/core.py
index <HASH>..<HASH> 100644
--- a/pyregion/core.py
+++ b/pyregion/core.py
@@ -255,7 +255,8 @@ def open(fname):
shapes : `ShapeList`
List of `~pyregion.Shape`
"""
- region_string = _builtin_open(fname).read()
+ with _builtin_open(fname) as fh:
+ ... | Use with open to avoid keeping filehandles open indefinitely | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,10 @@
-from distutils.core import setup
+from setuptools import setup, find_packages
setup(
name='pydirectory',
- packages=['pydirectory'], # this must be the same as the name above
+ packages=find_packa... | Uploaded the package to PyPI Test | py |
diff --git a/examples/commandline/sonoshell.py b/examples/commandline/sonoshell.py
index <HASH>..<HASH> 100644
--- a/examples/commandline/sonoshell.py
+++ b/examples/commandline/sonoshell.py
@@ -57,9 +57,17 @@ def print_current_track_info():
def print_queue():
queue = sonos.get_queue()
+ current = int(sonos.... | Color highlight the current track in the queue. | py |
diff --git a/openquake/hazardlib/probability_map.py b/openquake/hazardlib/probability_map.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/probability_map.py
+++ b/openquake/hazardlib/probability_map.py
@@ -16,6 +16,7 @@
# You should have received a copy of the GNU Affero General Public License
# along with... | Added ProbabilityMap.split | py |
diff --git a/tests/testmagics.py b/tests/testmagics.py
index <HASH>..<HASH> 100644
--- a/tests/testmagics.py
+++ b/tests/testmagics.py
@@ -131,6 +131,7 @@ class TestCompositorMagic(ExtensionTestCase):
assert len(Compositor.definitions) == 1, "Compositor definition not created"
self.assertEqual(Compo... | Improved unit tests of %compositor line magic | py |
diff --git a/payu/models/mom6.py b/payu/models/mom6.py
index <HASH>..<HASH> 100644
--- a/payu/models/mom6.py
+++ b/payu/models/mom6.py
@@ -67,7 +67,10 @@ class Mom6(Fms):
input_nml = f90nml.read(input_fpath)
- input_type = 'n' if self.expt.counter == 0 else 'r'
+ if self.expt.counter == 0 or ... | MOM6 repeat run support THis patch correctly patches the namelist for MOM6 repeat runs. | py |
diff --git a/ajax/endpoints.py b/ajax/endpoints.py
index <HASH>..<HASH> 100644
--- a/ajax/endpoints.py
+++ b/ajax/endpoints.py
@@ -37,7 +37,7 @@ class BaseEndpoint(object):
data = self._encode_data([record])[0]
for field, val in data.iteritems():
try:
- f = self.model._meta... | Use the record's __class__ rather than self.model, which isn't set in BaseEndpoint. | py |
diff --git a/odl/tomo/geometry/conebeam.py b/odl/tomo/geometry/conebeam.py
index <HASH>..<HASH> 100644
--- a/odl/tomo/geometry/conebeam.py
+++ b/odl/tomo/geometry/conebeam.py
@@ -184,7 +184,6 @@ class ConeBeamGeometry(with_metaclass(ABCMeta, Geometry)):
return cos_ang * id_mat + (1. - cos_ang) * dy_mat + sin... | MAINT: fix pep8 fails in conebeam | py |
diff --git a/gen_markdown.py b/gen_markdown.py
index <HASH>..<HASH> 100644
--- a/gen_markdown.py
+++ b/gen_markdown.py
@@ -38,7 +38,7 @@ Register Map
for f in sorted(reg.field, key=lambda x: x.bitOffset):
description = f.description
if f.enumeratedV... | replace <br> by <br/> | py |
diff --git a/angr/analyses/cfg/cfg_base.py b/angr/analyses/cfg/cfg_base.py
index <HASH>..<HASH> 100644
--- a/angr/analyses/cfg/cfg_base.py
+++ b/angr/analyses/cfg/cfg_base.py
@@ -1663,9 +1663,10 @@ class CFGBase(Analysis):
:return: True if it is a tail-call optimization. False otherwise.
:rtype: ... | Don't consider FakeRets during tail call optimization detection (#<I>) | py |
diff --git a/maintain/config.py b/maintain/config.py
index <HASH>..<HASH> 100644
--- a/maintain/config.py
+++ b/maintain/config.py
@@ -54,7 +54,7 @@ class Configuration(object):
def fromfile(cls, path):
with open(path) as fp:
content = fp.read()
- content = yaml.load(content)
+ ... | fix: use yaml.safe_load | py |
diff --git a/sharepoint/lists/types.py b/sharepoint/lists/types.py
index <HASH>..<HASH> 100644
--- a/sharepoint/lists/types.py
+++ b/sharepoint/lists/types.py
@@ -1,4 +1,5 @@
import datetime
+import warnings
from lxml.builder import E
@@ -52,7 +53,10 @@ class Field(object):
values.append(value[st... | Be a bit more forgiving of weird lists in fields | py |
diff --git a/mapboxcli/scripts/uploads.py b/mapboxcli/scripts/uploads.py
index <HASH>..<HASH> 100644
--- a/mapboxcli/scripts/uploads.py
+++ b/mapboxcli/scripts/uploads.py
@@ -43,7 +43,7 @@ def upload(ctx, args, name):
infile = click.File("rb")(args[0])
except click.ClickException:
rai... | appease python <I> | py |
diff --git a/tests/runtests.py b/tests/runtests.py
index <HASH>..<HASH> 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -135,7 +135,6 @@ class SaltTestsuiteParser(SaltCoverageTestingParser):
self.start_coverage(
branch=True,
source=[os.path.join(SALT_ROOT, 'salt')],
- ... | `track_processes` is no longer a valid `kwarg'. | py |
diff --git a/django_webpack/settings.py b/django_webpack/settings.py
index <HASH>..<HASH> 100644
--- a/django_webpack/settings.py
+++ b/django_webpack/settings.py
@@ -35,7 +35,8 @@ DEBUG = setting_overrides.get(
CACHE = setting_overrides.get(
'CACHE',
- not settings.DEBUG,
+ not DEBUG,
+)
DEVTOOL = set... | The default value for the `DJANGO_WEBPACK['CACHE']` setting is now toggled by `DJANGO_WEBPACK['DEBUG']`, rather than `django.conf.settings.DEBUG`. | py |
diff --git a/simuvex/s_run.py b/simuvex/s_run.py
index <HASH>..<HASH> 100644
--- a/simuvex/s_run.py
+++ b/simuvex/s_run.py
@@ -76,7 +76,7 @@ class SimRun(object):
self.all_successors.append(state)
# categorize the state
- if o.APPROXIMATE_GUARDS and state.se.is_false(state.scratch.guard):
+ ... | *actually* check for APPROXIMATE_GUARDS in the state | py |
diff --git a/spacy/about.py b/spacy/about.py
index <HASH>..<HASH> 100644
--- a/spacy/about.py
+++ b/spacy/about.py
@@ -4,7 +4,7 @@
# fmt: off
__title__ = "spacy-nightly"
-__version__ = "2.1.0a9.dev1"
+__version__ = "2.1.0a9.dev2"
__summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and ... | Set version to <I>a9.dev2 | py |
diff --git a/tornado/gen.py b/tornado/gen.py
index <HASH>..<HASH> 100644
--- a/tornado/gen.py
+++ b/tornado/gen.py
@@ -1215,7 +1215,9 @@ def convert_yielded(yielded):
.. versionadded:: 4.1
"""
# Lists and dicts containing YieldPoints were handled earlier.
- if isinstance(yielded, (list, dict)):
+ i... | gen: handle None in convert_yielded | py |
diff --git a/openquake/engine/calculators/risk/event_based_risk/core.py b/openquake/engine/calculators/risk/event_based_risk/core.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/risk/event_based_risk/core.py
+++ b/openquake/engine/calculators/risk/event_based_risk/core.py
@@ -86,7 +86,7 @@ def event_b... | Fixed a bug found by Chris Schneider | py |
diff --git a/peewee.py b/peewee.py
index <HASH>..<HASH> 100644
--- a/peewee.py
+++ b/peewee.py
@@ -4540,8 +4540,8 @@ class SchemaManager(object):
self.create_table(safe, **table_options)
self.create_indexes(safe=safe)
- def drop_all(self, safe=True):
- self.drop_table(safe)
+ def drop_a... | Fix signature to support cascade parameter. Fixes #<I>. | py |
diff --git a/salt/modules/aptpkg.py b/salt/modules/aptpkg.py
index <HASH>..<HASH> 100644
--- a/salt/modules/aptpkg.py
+++ b/salt/modules/aptpkg.py
@@ -704,7 +704,7 @@ def purge(name=None, pkgs=None, **kwargs):
return _uninstall(action='purge', name=name, pkgs=pkgs, **kwargs)
-def upgrade(refresh=True, dist_upg... | aptpkg.upgrade should default to upgrade instead of dist_upgrade. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.