diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/mpyq.py b/mpyq.py
index <HASH>..<HASH> 100755
--- a/mpyq.py
+++ b/mpyq.py
@@ -243,6 +243,12 @@ class MPQArchive(object):
for key, value in self.header['user_data_header'].iteritems():
print "{0:30} {1!r}".format(key, value)
+ def print_files(self):
+ for filename i... | Moved file listing code to own function print_files(). | py |
diff --git a/src/ossos-pipeline/ossos/gui/views.py b/src/ossos-pipeline/ossos/gui/views.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/gui/views.py
+++ b/src/ossos-pipeline/ossos/gui/views.py
@@ -155,7 +155,8 @@ class ApplicationView(object):
@guithread
def close_accept_source_dialog(self):
... | Closing accept and reject source dialogs is now done via a call to Close instead of Destroy. | py |
diff --git a/salt/client/mixins.py b/salt/client/mixins.py
index <HASH>..<HASH> 100644
--- a/salt/client/mixins.py
+++ b/salt/client/mixins.py
@@ -98,7 +98,7 @@ class SyncClientMixin(object):
# TODO: either require them to be parsed or not, this is a hack
# format call, in case it wasn't passe... | replace l_fun with self.function[fun], since the local no longer exists | py |
diff --git a/nodeconductor/structure/models.py b/nodeconductor/structure/models.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/structure/models.py
+++ b/nodeconductor/structure/models.py
@@ -1300,8 +1300,6 @@ class PublishableResource(PublishableMixin, Resource):
class PrivateCloud(quotas_models.QuotaModelMixin,... | Delete Private cloud reverse relationships - sentry-<I> | py |
diff --git a/openstack_dashboard/dashboards/admin/networks/ports/views.py b/openstack_dashboard/dashboards/admin/networks/ports/views.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/admin/networks/ports/views.py
+++ b/openstack_dashboard/dashboards/admin/networks/ports/views.py
@@ -84,7 +84,6 @@ cla... | Remove the extra Networks url in ports details page's breadcrumb There are two Networks url in ports details page's breadcrumb, This patch remove the extra one. Change-Id: I8ce<I>da8f<I>eb<I>e<I>eecda<I>db<I>a | py |
diff --git a/did/plugins/bugzilla.py b/did/plugins/bugzilla.py
index <HASH>..<HASH> 100644
--- a/did/plugins/bugzilla.py
+++ b/did/plugins/bugzilla.py
@@ -490,6 +490,38 @@ class PatchedBugs(Stats):
query, options=self.options)
if bug.patched(self.user)]
+ # When user adds the Patc... | Report bugs created with Patch keyword as patched Currently, PatchedBugs only reports previously existing bugs to which the Patch keyword was added. Bugs to which the reporter added the keyword during their creation are not reported. By applying this commit, PatchedBugs will report such bugs as well. | py |
diff --git a/librosa/core.py b/librosa/core.py
index <HASH>..<HASH> 100644
--- a/librosa/core.py
+++ b/librosa/core.py
@@ -507,7 +507,7 @@ def cqt(y, sr=22050, hop_length=512, fmin=None, n_bins=96, bins_per_octave=12, t
if fmin is None:
# C1 by default
- fmin = midi_to_hz(12)
+ fmin = midi... | fixed a derp bug in cqt | py |
diff --git a/can/interfaces/ixxat/canlib.py b/can/interfaces/ixxat/canlib.py
index <HASH>..<HASH> 100644
--- a/can/interfaces/ixxat/canlib.py
+++ b/can/interfaces/ixxat/canlib.py
@@ -368,6 +368,8 @@ class IXXATBus(BusABC):
# TODO: handling CAN error messages?
if timeout is None:
timeout =... | Fixes for IXXAT recv() timeout is given in seconds Fix sending of remote messages | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -116,7 +116,7 @@ html_logo = 'spyder_bbg.png'
# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
# pixels... | Fix error while building docs Fixes issue <I> Thanks to Arfrever.FTA for the patch | py |
diff --git a/jira/client.py b/jira/client.py
index <HASH>..<HASH> 100755
--- a/jira/client.py
+++ b/jira/client.py
@@ -904,6 +904,31 @@ class JIRA(object):
self._options, self._session, raw=json_loads(r))
return remote_link
+ def add_simple_link(self, issue, object):
+ """
+ Add ... | adding add_simple_link() adding new method 'add_simple_link()' to short-circuit problems with issue / app links, and just give simpler webby-style links. this avoids the issue with calling listApplicationlinks from a non-admin account. | py |
diff --git a/docs/src/conf.py b/docs/src/conf.py
index <HASH>..<HASH> 100644
--- a/docs/src/conf.py
+++ b/docs/src/conf.py
@@ -24,6 +24,7 @@ master_doc = 'index'
autosummary_generate = True
# -- Options for HTML output -------------------------------------------------
+pygments_style = 'sphinx'
html_theme = 'sphin... | changed code-block color to sphinx's | py |
diff --git a/soft.py b/soft.py
index <HASH>..<HASH> 100644
--- a/soft.py
+++ b/soft.py
@@ -80,15 +80,16 @@ class SoftOptions(SoftObject):
"""
Initialize from a list of options with random weights.
+ The weights assigned to each object are uniformally random
+ integers between ``1`` and... | Update docs to with_random_weights change | py |
diff --git a/master/buildbot/changes/svnpoller.py b/master/buildbot/changes/svnpoller.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/changes/svnpoller.py
+++ b/master/buildbot/changes/svnpoller.py
@@ -55,7 +55,7 @@ class SVNPoller(base.ChangeSource, util.ComparableMixin):
svnuser=None, svnpasswd... | make project='' by default in SVNPoller | py |
diff --git a/tsfresh/feature_extraction/feature_calculators.py b/tsfresh/feature_extraction/feature_calculators.py
index <HASH>..<HASH> 100644
--- a/tsfresh/feature_extraction/feature_calculators.py
+++ b/tsfresh/feature_extraction/feature_calculators.py
@@ -476,7 +476,7 @@ def cid_ce(x, normalize):
.. math::
... | fix starting index of sum (#<I>) | py |
diff --git a/astropy_helpers/version_helpers.py b/astropy_helpers/version_helpers.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/version_helpers.py
+++ b/astropy_helpers/version_helpers.py
@@ -88,6 +88,7 @@ def _version_split(version):
# by affiliated packages.
_FROZEN_VERSION_PY_TEMPLATE = """
# Autogenerated... | Don't use repr mode when putting strings into the template--literal quotes should be fine for version strings and git hashes at least. But do use unicode_literals so that these strings are consistently unicode between Python 2 and 3. | py |
diff --git a/txnserver/validator.py b/txnserver/validator.py
index <HASH>..<HASH> 100644
--- a/txnserver/validator.py
+++ b/txnserver/validator.py
@@ -132,7 +132,7 @@ class Validator(object):
nd = node.Node(address=addr,
identifier=nodedata["Identifier"],
... | Use Node disable() method instead of setting bool to False This commit is dependent on the merging of sawtooth-core NML-<I>-nodeenable. | py |
diff --git a/livebridge/base/sources.py b/livebridge/base/sources.py
index <HASH>..<HASH> 100644
--- a/livebridge/base/sources.py
+++ b/livebridge/base/sources.py
@@ -88,6 +88,11 @@ class PollingSource(BaseSource):
:return: list of new posts"""
raise NotImplementedError("Method 'poll' not implemented.... | Add abstract method stop() to polling sources. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -69,5 +69,4 @@ setup(
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.5"
- ],
- zip_safe=True)
+ ]) | MAINT: removed `zip_safe` | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -58,9 +58,9 @@ copyright = u'2014, Taurus Olson'
# built documents.
#
# The short X.Y version.
-version = '1.0'
+version = '1.1.2'
# The full version, including alpha/beta/rc tags.
-release = '1.0'
+release... | Use default theme and update version in conf.py | py |
diff --git a/src/bcrypt/__init__.py b/src/bcrypt/__init__.py
index <HASH>..<HASH> 100644
--- a/src/bcrypt/__init__.py
+++ b/src/bcrypt/__init__.py
@@ -134,7 +134,9 @@ def kdf(password, salt, desired_key_bytes, rounds, ignore_few_rounds=False):
"Warning: bcrypt.kdf() called with only {0} round(s). "
... | put a stacklevel on this warning (#<I>) | py |
diff --git a/dop/client.py b/dop/client.py
index <HASH>..<HASH> 100644
--- a/dop/client.py
+++ b/dop/client.py
@@ -18,7 +18,7 @@ API_PORT = 80
class Droplet(object):
def __init__(self, id, name, size_id, image_id, region_id, event_id,
- backups_active, status):
+ backups_active, status, ip_address... | Added ip_address field to json response for Droplets | py |
diff --git a/test/test_motor_client.py b/test/test_motor_client.py
index <HASH>..<HASH> 100644
--- a/test/test_motor_client.py
+++ b/test/test_motor_client.py
@@ -170,6 +170,7 @@ class MotorClientTest(MotorTest):
collection = cx.motor_test.test_collection
insert_collection = cx.motor_test.insert_col... | More reliable test_high_concurrency. | py |
diff --git a/edx_rest_api_client/tests/mixins.py b/edx_rest_api_client/tests/mixins.py
index <HASH>..<HASH> 100644
--- a/edx_rest_api_client/tests/mixins.py
+++ b/edx_rest_api_client/tests/mixins.py
@@ -1,7 +1,7 @@
import responses
-class AuthenticationTestMixin(object):
+class AuthenticationTestMixin:
""" Mi... | Fix new lint errors now that we've dropped python 2 support. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(
packages=find_packages(),
zip_safe=False,
tests_require=[
- 'django',
+ 'Django',
],
test_suite = 'runtests.runtests',
include_package_data=True, | Proper package name for Django | py |
diff --git a/km3pipe/io/hdf5.py b/km3pipe/io/hdf5.py
index <HASH>..<HASH> 100644
--- a/km3pipe/io/hdf5.py
+++ b/km3pipe/io/hdf5.py
@@ -279,7 +279,7 @@ class HDF5Sink(Module):
self.h5file.set_node_attr("/", name, value)
self.h5file.close()
- self.log.info("HDF5 file written to: {}".for... | Add message when hdf5 file is written | py |
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py
index <HASH>..<HASH> 100644
--- a/spyder/app/mainwindow.py
+++ b/spyder/app/mainwindow.py
@@ -842,7 +842,7 @@ class MainWindow(QMainWindow):
# History log widget
if CONF.get('historylog', 'enable'):
self.set_splash(_("Load... | Change import after moving history to a module. | py |
diff --git a/dmf_control_board_firmware/__init__.py b/dmf_control_board_firmware/__init__.py
index <HASH>..<HASH> 100755
--- a/dmf_control_board_firmware/__init__.py
+++ b/dmf_control_board_firmware/__init__.py
@@ -71,6 +71,8 @@ def serial_ports():
df_mega2560_comports = \
df_comports.loc[df_compo... | Detect Genuino Mega <I> Detect Genuino Mega <I>. Fixes #4. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -682,7 +682,7 @@ class TestAttrDict(unittest.TestCase):
self.assertEqual(adict['foo'], ('foo', 'bar', 'baz'))
self.assertEqual(adict('bar'), ('foo', 'bar', 'baz'))
self.assertEqual(adict.baz, ('foo',... | bugfix: tests under <I> | py |
diff --git a/mautrix/bridge/custom_puppet.py b/mautrix/bridge/custom_puppet.py
index <HASH>..<HASH> 100644
--- a/mautrix/bridge/custom_puppet.py
+++ b/mautrix/bridge/custom_puppet.py
@@ -134,12 +134,12 @@ class CustomPuppetMixin(ABC):
secret = cls.login_shared_secret_map[server]
except KeyError:
... | Prefer homeserver_url_map over appservice homeserver url | py |
diff --git a/eth_utils/currency.py b/eth_utils/currency.py
index <HASH>..<HASH> 100644
--- a/eth_utils/currency.py
+++ b/eth_utils/currency.py
@@ -1,5 +1,5 @@
import decimal
-from _decimal import localcontext
+from decimal import localcontext
# Set the decimal precision | Removed underline in localcontext import. | py |
diff --git a/openquake/server/views.py b/openquake/server/views.py
index <HASH>..<HASH> 100644
--- a/openquake/server/views.py
+++ b/openquake/server/views.py
@@ -34,7 +34,10 @@ from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_http_methods
from django.shortcuts imp... | Supported Django <I> | py |
diff --git a/psamm/commands/excelexport.py b/psamm/commands/excelexport.py
index <HASH>..<HASH> 100644
--- a/psamm/commands/excelexport.py
+++ b/psamm/commands/excelexport.py
@@ -101,12 +101,11 @@ class ExcelExportCommand(Command):
text_type(i.id in model_compounds))
gene_sheet = workbook.ad... | formatted excelexport for pep8 | py |
diff --git a/tools/run_tests/run_tests_matrix.py b/tools/run_tests/run_tests_matrix.py
index <HASH>..<HASH> 100755
--- a/tools/run_tests/run_tests_matrix.py
+++ b/tools/run_tests/run_tests_matrix.py
@@ -52,14 +52,14 @@ def _safe_report_name(name):
def _report_filename(name):
"""Generates report file name with dir... | include run_tests in target name | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -160,6 +160,7 @@ html_sidebars = {
}
html_context = {
+ 'html_default_sidebars': html_default_sidebars,
'github_base': 'https://github.com/saltstack/salt',
'github_issues': 'https://github.com/salt... | Add html_default_sidebars to context dict Omitted from f<I>e<I>. | py |
diff --git a/ezibpy/ezibpy.py b/ezibpy/ezibpy.py
index <HASH>..<HASH> 100644
--- a/ezibpy/ezibpy.py
+++ b/ezibpy/ezibpy.py
@@ -961,6 +961,10 @@ class ezIBpy():
returns the tickerId for the symbol or
sets one if it doesn't exits
"""
+ # contract passed instead of symbol?
+ if not... | find tickerId by symbol or contract | py |
diff --git a/belpy/bel/bel_api.py b/belpy/bel/bel_api.py
index <HASH>..<HASH> 100644
--- a/belpy/bel/bel_api.py
+++ b/belpy/bel/bel_api.py
@@ -3,8 +3,12 @@ import rdflib
from BelProcessor import BelProcessor
def process_ndex_neighborhood(gene_names):
- pass
-
+ from ndex-python-client import query_to_bel
+ ... | Start imlementing API for NDEx client | py |
diff --git a/enterprise/admin/__init__.py b/enterprise/admin/__init__.py
index <HASH>..<HASH> 100644
--- a/enterprise/admin/__init__.py
+++ b/enterprise/admin/__init__.py
@@ -278,7 +278,7 @@ class EnterpriseCustomerAdmin(DjangoObjectActions, SimpleHistoryAdmin):
Arguments:
instance (enterprise.mod... | fix: change function to check if enterprise customer has identity provider in admin | py |
diff --git a/airflow/operators/sensors.py b/airflow/operators/sensors.py
index <HASH>..<HASH> 100644
--- a/airflow/operators/sensors.py
+++ b/airflow/operators/sensors.py
@@ -278,7 +278,7 @@ class S3KeySensor(BaseSensorOperator):
def poke(self, context):
hook = hooks.S3Hook(s3_conn_id=self.s3_conn_id)
-... | fixing s3 sensor missing '/' | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -33,3 +33,4 @@ import _fit as fit ; fit._settings = settings
plot.tweaks._pylab_colormap._settings = settings
+printer = tweaks.printer | I think just one change by Jack, adding printer = tweaks.printer to init. - AMJ | py |
diff --git a/trimesh/io/wavefront.py b/trimesh/io/wavefront.py
index <HASH>..<HASH> 100644
--- a/trimesh/io/wavefront.py
+++ b/trimesh/io/wavefront.py
@@ -1,5 +1,6 @@
import numpy as np
+from ..constants import log
from .. import util
@@ -86,9 +87,14 @@ def load_wavefront(file_obj, **kwargs):
t... | Skip loading texture information which trimesh cannot handle | py |
diff --git a/pyroSAR/sqlite_util.py b/pyroSAR/sqlite_util.py
index <HASH>..<HASH> 100644
--- a/pyroSAR/sqlite_util.py
+++ b/pyroSAR/sqlite_util.py
@@ -61,8 +61,4 @@ class __Handler(object):
if ext_mod is None:
raise RuntimeError('no library found for extension {}'.format(extension))
... | modified error handling for sqlite extension loading | py |
diff --git a/secedgar/filings/_base.py b/secedgar/filings/_base.py
index <HASH>..<HASH> 100644
--- a/secedgar/filings/_base.py
+++ b/secedgar/filings/_base.py
@@ -13,12 +13,6 @@ class AbstractFiling(ABC):
"""``secedgar.client.base``: Client to use to make requests."""
pass # pragma: no cover
- @... | STRUCT: Get rid of filing types property from ABC | py |
diff --git a/splinter/driver/webdriver/__init__.py b/splinter/driver/webdriver/__init__.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/webdriver/__init__.py
+++ b/splinter/driver/webdriver/__init__.py
@@ -160,6 +160,11 @@ class BaseWebDriver(DriverAPI):
return True
except ValueError:... | Handle case where body tag is not yet present Occasionally, when calling is_text_present or is_text_not_present, it will throw an exception because the body tag isn't present. Assuming that this is because the page hasn't fully loaded yet, handle this acception by simply iterating through the while loop again. | py |
diff --git a/groundwork/recipes/gw_package/{{cookiecutter.project_name}}/setup.py b/groundwork/recipes/gw_package/{{cookiecutter.project_name}}/setup.py
index <HASH>..<HASH> 100644
--- a/groundwork/recipes/gw_package/{{cookiecutter.project_name}}/setup.py
+++ b/groundwork/recipes/gw_package/{{cookiecutter.project_name}... | Moved pytest and sphinx dependencies out of setup.py in recipe gw_package. | py |
diff --git a/dwave_virtual_graph/embedding.py b/dwave_virtual_graph/embedding.py
index <HASH>..<HASH> 100644
--- a/dwave_virtual_graph/embedding.py
+++ b/dwave_virtual_graph/embedding.py
@@ -19,7 +19,8 @@ def get_embedding(source_edges, target_edges):
"""
- embedding = select_embedding(source_edges, target_... | Remove call to embedding database for now | py |
diff --git a/subliminal/providers/tvsubtitles.py b/subliminal/providers/tvsubtitles.py
index <HASH>..<HASH> 100644
--- a/subliminal/providers/tvsubtitles.py
+++ b/subliminal/providers/tvsubtitles.py
@@ -64,11 +64,11 @@ class TVsubtitlesSubtitle(Subtitle):
"""
# we don't have the complete filename, so ... | Fixed guess properties for tvsubtitles | py |
diff --git a/ocrd_validators/ocrd_validators/page_validator.py b/ocrd_validators/ocrd_validators/page_validator.py
index <HASH>..<HASH> 100644
--- a/ocrd_validators/ocrd_validators/page_validator.py
+++ b/ocrd_validators/ocrd_validators/page_validator.py
@@ -56,7 +56,7 @@ _HIERARCHY = [
(RegionType, 'get_Custo... | page_validator: MapRegion is only top level in PAGE <I> | py |
diff --git a/pypump/models/activity.py b/pypump/models/activity.py
index <HASH>..<HASH> 100644
--- a/pypump/models/activity.py
+++ b/pypump/models/activity.py
@@ -54,7 +54,7 @@ class Mapper(object):
elif key in self.dates:
self.set_date(obj, key, data, from_json)
else:
- _log.i... | lstrip is bad, mmkay? also reduce log output a bit | py |
diff --git a/pyhomematic/devicetypes/thermostats.py b/pyhomematic/devicetypes/thermostats.py
index <HASH>..<HASH> 100644
--- a/pyhomematic/devicetypes/thermostats.py
+++ b/pyhomematic/devicetypes/thermostats.py
@@ -153,7 +153,7 @@ class ThermostatWall2(HMThermostat, AreaThermostat, HelperBatteryState):
self.WR... | Add valve state as sensor to MAXThermostat Extend the ability of MAXThermostat to now report valve state as a sensor output | py |
diff --git a/CGRtools/algorithms/aromatics.py b/CGRtools/algorithms/aromatics.py
index <HASH>..<HASH> 100644
--- a/CGRtools/algorithms/aromatics.py
+++ b/CGRtools/algorithms/aromatics.py
@@ -148,7 +148,19 @@ class Aromatize:
return rings, pyroles, set()
elif not triple_bonded.isdisjoint(rings):
... | kekule now can work with broken rings. | py |
diff --git a/alot/message.py b/alot/message.py
index <HASH>..<HASH> 100644
--- a/alot/message.py
+++ b/alot/message.py
@@ -20,6 +20,7 @@ import os
import email
import tempfile
import re
+import mimetypes
from datetime import datetime
from email.header import Header
@@ -263,7 +264,10 @@ class Attachment:
d... | issue #5: guess mimetype if its 'octet/stream' | py |
diff --git a/ores/feature_lists/enwiki.py b/ores/feature_lists/enwiki.py
index <HASH>..<HASH> 100644
--- a/ores/feature_lists/enwiki.py
+++ b/ores/feature_lists/enwiki.py
@@ -75,6 +75,7 @@ wp10 = [
log(revision.content_chars + 1),
log(revision.image_links + 1),
log(revision.cite_templates + 1),
+ log(... | Adds missing feature to wp<I> | py |
diff --git a/ddmrp_history/models/stock_warehouse_orderpoint.py b/ddmrp_history/models/stock_warehouse_orderpoint.py
index <HASH>..<HASH> 100644
--- a/ddmrp_history/models/stock_warehouse_orderpoint.py
+++ b/ddmrp_history/models/stock_warehouse_orderpoint.py
@@ -69,8 +69,10 @@ class StockWarehouseOrderpoint(models.Mode... | [FIX] ddmrp_history: wrong depiction | py |
diff --git a/llvmlite/binding/targets.py b/llvmlite/binding/targets.py
index <HASH>..<HASH> 100644
--- a/llvmlite/binding/targets.py
+++ b/llvmlite/binding/targets.py
@@ -25,15 +25,23 @@ class CpuFeatures(dict):
"""
Extends ``dict`` to add `.flatten()` method.
"""
- def flatten(self):
+ def flatten... | Sort feature string for stable ordering between python session | py |
diff --git a/pymongo/collection.py b/pymongo/collection.py
index <HASH>..<HASH> 100644
--- a/pymongo/collection.py
+++ b/pymongo/collection.py
@@ -856,14 +856,14 @@ class Collection(common.BaseObject):
apply any outgoing SON manipulators before returning.
.. note:: There are a number of caveats ... | Fix formatting in find() docs. | py |
diff --git a/coconut/compiler.py b/coconut/compiler.py
index <HASH>..<HASH> 100644
--- a/coconut/compiler.py
+++ b/coconut/compiler.py
@@ -389,7 +389,7 @@ class __coconut__(object):
def igetitem(iterable, index):
"""Performs slicing on any iterable."""
if __coconut__.isinstance(iterable, __coconu... | Further fixes iterator slicing of maps | py |
diff --git a/pymatbridge/matlab_magic.py b/pymatbridge/matlab_magic.py
index <HASH>..<HASH> 100644
--- a/pymatbridge/matlab_magic.py
+++ b/pymatbridge/matlab_magic.py
@@ -67,7 +67,7 @@ class MatlabMagics(Magics):
"""
def __init__(self, shell,
matlab='matlab',
- maxtime=10,
+ ... | Increase the default wait time for the magic to start. | py |
diff --git a/src/jump/__init__.py b/src/jump/__init__.py
index <HASH>..<HASH> 100644
--- a/src/jump/__init__.py
+++ b/src/jump/__init__.py
@@ -28,7 +28,7 @@ def py_hash(key, num_buckets):
Raises:
ValueError: If `num_buckets` is not a positive number.
"""
- b, j = -1, 0
+ b, j = -1, 0.0
i... | ci(mypy): fix incompatible types in assignment src/jump/__init__.py:<I>:<I>: error: Incompatible types in assignment (expression has type "float", variable has type "int") j = float(b + 1) * (float(1 << <I>) / float((key >> <I>) + 1)) ^ | py |
diff --git a/salt/modules/rabbitmq.py b/salt/modules/rabbitmq.py
index <HASH>..<HASH> 100644
--- a/salt/modules/rabbitmq.py
+++ b/salt/modules/rabbitmq.py
@@ -574,7 +574,7 @@ def enable_plugin(name, runas=None):
salt '*' rabbitmq.enable_plugin foo
'''
- ret = __salt__['cmd.run'](
+ ret = __salt__[... | Changed rabbitmq module to check retcode from enable/disable plugin | py |
diff --git a/xym/xym.py b/xym/xym.py
index <HASH>..<HASH> 100644
--- a/xym/xym.py
+++ b/xym/xym.py
@@ -494,7 +494,7 @@ class YangModuleExtractor:
# when "example" is matched in strict-examples mode, level is set to 1;
# this enables to make example module in strict-e... | get rid of quotes variable when setting level | py |
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/base.py
+++ b/openquake/calculators/base.py
@@ -112,7 +112,8 @@ class BaseCalculator(with_metaclass(abc.ABCMeta)):
Run the calculation and return the exported outputs.
"""... | Fixed a small bug with concurrent_tasks | py |
diff --git a/zipline/pipeline/classifiers/classifier.py b/zipline/pipeline/classifiers/classifier.py
index <HASH>..<HASH> 100644
--- a/zipline/pipeline/classifiers/classifier.py
+++ b/zipline/pipeline/classifiers/classifier.py
@@ -211,7 +211,7 @@ class Classifier(RestrictedDTypeMixin, ComputableTerm):
See Al... | DOC: Link directly to the ``re`` module. | py |
diff --git a/elasticsearch_dsl/query.py b/elasticsearch_dsl/query.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/query.py
+++ b/elasticsearch_dsl/query.py
@@ -59,6 +59,7 @@ class Bool(BoolMixin, Query):
'must': {'type': 'query', 'multi': True},
'should': {'type': 'query', 'multi': True},
... | Adding a new filter param to bool query | py |
diff --git a/client/deis.py b/client/deis.py
index <HASH>..<HASH> 100755
--- a/client/deis.py
+++ b/client/deis.py
@@ -658,10 +658,13 @@ class DeisClient(object):
-a --app=<app>
the uniquely identifiable name for the application.
"""
+ command = ' '.join(args.get('<command>'))
+ ... | feat(client): add loading info msg to run command | py |
diff --git a/salt/states/mysql_user.py b/salt/states/mysql_user.py
index <HASH>..<HASH> 100644
--- a/salt/states/mysql_user.py
+++ b/salt/states/mysql_user.py
@@ -241,6 +241,7 @@ def absent(name,
ret['changes'][name] = 'Absent'
return ret
else:
+ err = _get_mysql_error()
... | The value of `err` needs to be "fetched" first. | py |
diff --git a/appuser_models.py b/appuser_models.py
index <HASH>..<HASH> 100755
--- a/appuser_models.py
+++ b/appuser_models.py
@@ -243,7 +243,7 @@ class AbstractEmail(OverridableChoicesMixin, models.Model):
# ... more in-progress unverified states
)
- address = models.CharField(max_length ... | Extend base Email model to allow full email addresses. | py |
diff --git a/ncluster/aws_util.py b/ncluster/aws_util.py
index <HASH>..<HASH> 100644
--- a/ncluster/aws_util.py
+++ b/ncluster/aws_util.py
@@ -172,7 +172,12 @@ def get_prefix():
def get_account_number():
- return str(boto3.client('sts').get_caller_identity()['Account'])
+ while True:
+ try:
+ return str(... | Add retry on getting account number Fixes #1 | py |
diff --git a/foyer/tests/test_forcefield.py b/foyer/tests/test_forcefield.py
index <HASH>..<HASH> 100644
--- a/foyer/tests/test_forcefield.py
+++ b/foyer/tests/test_forcefield.py
@@ -258,10 +258,10 @@ def test_residue_map():
ethane *= 2
oplsaa = Forcefield(name='oplsaa')
topo, NULL = generate_topology(et... | Check that all atoms have types, not just the 0th | py |
diff --git a/alot/commands/globals.py b/alot/commands/globals.py
index <HASH>..<HASH> 100644
--- a/alot/commands/globals.py
+++ b/alot/commands/globals.py
@@ -216,14 +216,20 @@ class ExternalCommand(Command):
def thread_code(*args):
try:
if stdin == None:
- ret ... | fix shellescape --spawn return codes we used subprocess.call, which in an error case just returns the int-return value and does not raise OSError if shell==True. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ REQUIREMENTS = [
'lunardate',
'pytz',
'pyCalverter',
- 'setuptools==0.6c11',
+ 'setuptools==1.0',
]
version = '1.3.0.dev0'
__VERSION__ = version | refs #<I> -- a version of setuptools supposed to work and won't throw an error | py |
diff --git a/dwave/system/package_info.py b/dwave/system/package_info.py
index <HASH>..<HASH> 100644
--- a/dwave/system/package_info.py
+++ b/dwave/system/package_info.py
@@ -15,7 +15,7 @@
# =============================================================================
__all__ = ['__version__', '__author__', '__author... | Update version <I> -> <I> New Features ------------ * Embedding composites no longer block Fixes ----- * `MockDWaveSampler` now has the correct topology * Fix rounding in anneal schedule validation | py |
diff --git a/src/scriptworker/constants.py b/src/scriptworker/constants.py
index <HASH>..<HASH> 100644
--- a/src/scriptworker/constants.py
+++ b/src/scriptworker/constants.py
@@ -84,7 +84,14 @@ DEFAULT_CONFIG: immutabledict[str, Any] = immutabledict(
"ed25519_public_keys": immutabledict(
{
... | RELENG-<I> - add the <I> generic-worker trusted CoT public key (#<I>) | py |
diff --git a/asks/base_funcs.py b/asks/base_funcs.py
index <HASH>..<HASH> 100644
--- a/asks/base_funcs.py
+++ b/asks/base_funcs.py
@@ -1,4 +1,3 @@
-from urllib.parse import urlparse, urlunparse
from functools import partial
from asks.sessions import DSession | little bitta linting | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -93,7 +93,9 @@ class Protobuf(Dependency):
super(Protobuf, self).__init__()
# TODO: allow user specify protobuf include_dirs libraries with flags
# and environment variables
- self.libraries =... | read protobuf lib from environment variable and add compile option /MT to use static compilation | py |
diff --git a/graphql_compiler/schema/__init__.py b/graphql_compiler/schema/__init__.py
index <HASH>..<HASH> 100644
--- a/graphql_compiler/schema/__init__.py
+++ b/graphql_compiler/schema/__init__.py
@@ -296,7 +296,7 @@ def _serialize_date(value: Any) -> str:
return value.isoformat()
-def _parse_date_value(valu... | Change parse function type hint for consistency. (#<I>) The GraphQL library adopts `Any` as the type hint for the value-parsing functions on types, so we'll follow suit. | py |
diff --git a/pyquil/quil.py b/pyquil/quil.py
index <HASH>..<HASH> 100644
--- a/pyquil/quil.py
+++ b/pyquil/quil.py
@@ -499,6 +499,16 @@ class Program(object):
p.inst(other)
return p
+ def __iadd__(self, other):
+ """
+ Concatenate two programs together using +=, returning a new one.... | Make Program += gate more efficient than the original implementation (#<I>) * Clarify that repo needs to be clone in order to execute run_quil.py * implement __iadd__ and that calls inst() to make += more efficient than the original implementation * Remove whitespace | py |
diff --git a/src/vimpdb/proxy.py b/src/vimpdb/proxy.py
index <HASH>..<HASH> 100755
--- a/src/vimpdb/proxy.py
+++ b/src/vimpdb/proxy.py
@@ -17,10 +17,10 @@ def getPackagePath(instance):
class ProxyToVim(object):
def __init__(self):
- self.setupRemote()
self.comm_init()
def comm_init(self):... | setupRemote before call to PDB functions in Vim | py |
diff --git a/visidata/vdtui.py b/visidata/vdtui.py
index <HASH>..<HASH> 100755
--- a/visidata/vdtui.py
+++ b/visidata/vdtui.py
@@ -1804,9 +1804,9 @@ class Column:
# be possible to stringify them with a forcibly str-typed column. Hopefully
# this is a good compromise.
if isinstance(typedval, ... | [vdtui] properly show lists and dicts again | py |
diff --git a/python_modules/libraries/dagster-airbyte/setup.py b/python_modules/libraries/dagster-airbyte/setup.py
index <HASH>..<HASH> 100644
--- a/python_modules/libraries/dagster-airbyte/setup.py
+++ b/python_modules/libraries/dagster-airbyte/setup.py
@@ -31,6 +31,9 @@ if __name__ == "__main__":
"Operat... | [airbyte] add requests dependency (#<I>) | py |
diff --git a/simuvex/procedures/libc___so___6/recvfrom.py b/simuvex/procedures/libc___so___6/recvfrom.py
index <HASH>..<HASH> 100644
--- a/simuvex/procedures/libc___so___6/recvfrom.py
+++ b/simuvex/procedures/libc___so___6/recvfrom.py
@@ -8,6 +8,5 @@ class recvfrom(simuvex.SimProcedure):
#pylint:disable=arguments-... | Fix recvfrom posix.read() takes exactly 4 arguments original fix was proposed by Yiming Jing | py |
diff --git a/tests/jenkins.py b/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins.py
+++ b/tests/jenkins.py
@@ -369,15 +369,16 @@ def run(opts):
print('Running CMD: {0}'.format(cmd))
sys.stdout.flush()
- proc = NonBlockingPopen(
+ proc = subprocess.Popen(
cmd,
shell=Tr... | Prefer `subprocess.Popen` for now | py |
diff --git a/plotypus.py b/plotypus.py
index <HASH>..<HASH> 100644
--- a/plotypus.py
+++ b/plotypus.py
@@ -25,15 +25,6 @@ def main():
stars = options.cache.get('stars') or map_reduce(lightcurve, files, options)
if options.plot_parameters:
trig_param_plot(stars, options.output)
-# For un-normalizing... | Cleaning up stuff that shouldn't be there | py |
diff --git a/pysdmx.py b/pysdmx.py
index <HASH>..<HASH> 100644
--- a/pysdmx.py
+++ b/pysdmx.py
@@ -13,11 +13,11 @@ def date_parser(date, frequency):
if frequency == 'A':
return datetime.datetime.strptime(date, '%Y')
if frequency == 'Q':
- date = date.split('Q')
+ date = date.split('-Q')... | Date handling - format for quarterly data | py |
diff --git a/hamster/applet.py b/hamster/applet.py
index <HASH>..<HASH> 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -590,12 +590,11 @@ class HamsterApplet(object):
(model, iter) = selection.get_selected()
next_row = model.iter_next(iter)
-
(cur, col) = self.treeview.get_cursor... | try to go to next row only if there is one. fixes a warning. | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -119,7 +119,10 @@ class BaseCard(Entity):
@property
def cost(self):
- return max(0, self.getIntProperty(GameTag.COST))
+ ret = self.getIntProperty(GameTag.COST)
+ if hasattr(self.da... | Implement cost() script in card definitions | py |
diff --git a/pyqode/core/api/code_edit.py b/pyqode/core/api/code_edit.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/api/code_edit.py
+++ b/pyqode/core/api/code_edit.py
@@ -1034,7 +1034,10 @@ class CodeEdit(QtWidgets.QPlainTextEdit):
def _show_context_menu(self, point):
""" Shows the context menu """
... | Prevent loosing cursor selection when showing context menu | py |
diff --git a/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py b/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
index <HASH>..<HASH> 100755
--- a/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
+++ b/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
@... | Fix additional DataTrainingArguments documentation (#<I>) (This is an editorial change only) | py |
diff --git a/scout/__version__.py b/scout/__version__.py
index <HASH>..<HASH> 100644
--- a/scout/__version__.py
+++ b/scout/__version__.py
@@ -1 +1 @@
-__version__ = '4.2.1'
+__version__ = '4.2.2' | Bumped version to <I> | py |
diff --git a/flatpages_i18n/models.py b/flatpages_i18n/models.py
index <HASH>..<HASH> 100644
--- a/flatpages_i18n/models.py
+++ b/flatpages_i18n/models.py
@@ -21,7 +21,7 @@ class FlatPage_i18n(MPTTModel):
help_text=_(u"Example: 'flatpages_i18n/contact_page.html'. If this isn't \
provided, the system w... | Add BooleanField default value Django <I> changed the default value of BooleanField from False to None. This patch avoids warnings in django master branche | py |
diff --git a/netpyne/conversion/neuromlFormat.py b/netpyne/conversion/neuromlFormat.py
index <HASH>..<HASH> 100644
--- a/netpyne/conversion/neuromlFormat.py
+++ b/netpyne/conversion/neuromlFormat.py
@@ -32,13 +32,13 @@ except ImportError:
from neuron import h
pc = h.ParallelContext() # MPI: Initialize the Par... | made neuroml warning appear only with verbose | py |
diff --git a/mcash/mapi_client/mapi_client.py b/mcash/mapi_client/mapi_client.py
index <HASH>..<HASH> 100644
--- a/mcash/mapi_client/mapi_client.py
+++ b/mcash/mapi_client/mapi_client.py
@@ -80,8 +80,12 @@ class MapiClient(object):
auth=self.auth)
if not isinstance(... | Fixed bug in do_req and upload_attachment | py |
diff --git a/harvestingkit/aps_package.py b/harvestingkit/aps_package.py
index <HASH>..<HASH> 100644
--- a/harvestingkit/aps_package.py
+++ b/harvestingkit/aps_package.py
@@ -194,7 +194,7 @@ class ApsPackage(object):
doi = ''
for tag in innerref.getElementsByTagName('pub-id'):
... | aps_package: DOI harvesting in references fix | py |
diff --git a/pydeconz/models/sensor/air_quality.py b/pydeconz/models/sensor/air_quality.py
index <HASH>..<HASH> 100644
--- a/pydeconz/models/sensor/air_quality.py
+++ b/pydeconz/models/sensor/air_quality.py
@@ -56,7 +56,7 @@ class AirQualityValue(enum.Enum):
@classmethod
def _missing_(cls, value: object) -> "... | Fix faulty unexpected air quality value warning (#<I>) | py |
diff --git a/green/djangorunner.py b/green/djangorunner.py
index <HASH>..<HASH> 100644
--- a/green/djangorunner.py
+++ b/green/djangorunner.py
@@ -73,6 +73,19 @@ try:
class DjangoRunner(DiscoverRunner):
+ def __init__(self, verbose=1, **kwargs):
+
+ super ().__init__ ()
+ self.verb... | [FEATURE] Added --green-verbosity flag for Django test runner * Makes it possible to pass verbosity for Django tests using command line arguments to `python manage.py test` * The flag is optional and defaults to verbose=1 * The passed value of verbosity overrides value provided in the .green file or an... | py |
diff --git a/frigg_worker/fetcher.py b/frigg_worker/fetcher.py
index <HASH>..<HASH> 100644
--- a/frigg_worker/fetcher.py
+++ b/frigg_worker/fetcher.py
@@ -5,9 +5,15 @@ import random
import socket
import time
+import docker
+import frigg_coverage
+import frigg_settings
+import frigg_test_discovery
import requests
... | feat(fetcher): Add version header to requests | py |
diff --git a/dark/graphics.py b/dark/graphics.py
index <HASH>..<HASH> 100644
--- a/dark/graphics.py
+++ b/dark/graphics.py
@@ -308,8 +308,8 @@ def alignmentGraph(blastHits, title, addQueryLines=True, showFeatures=True,
for color, reads in idList.iteritems():
for read in reads:
... | removed \ from the end of line, line <I> | py |
diff --git a/registrasion/views.py b/registrasion/views.py
index <HASH>..<HASH> 100644
--- a/registrasion/views.py
+++ b/registrasion/views.py
@@ -236,7 +236,7 @@ def review(request):
return render(
request,
- "registrasion/guided_registration_complete.html",
+ "registrasion/review.html",
... | Renames guided_registration_complete to review | py |
diff --git a/test-upload.py b/test-upload.py
index <HASH>..<HASH> 100755
--- a/test-upload.py
+++ b/test-upload.py
@@ -31,6 +31,6 @@ datagen, headers = poster.encode.multipart_encode(MultipartParam.from_params(par
# Create the Request object
vehicle = str(uuid.uuid1(clock_seq = 0))
-request = urllib2.Request("http:... | use ssl links for connection to server | py |
diff --git a/categories/editor/tree_editor.py b/categories/editor/tree_editor.py
index <HASH>..<HASH> 100644
--- a/categories/editor/tree_editor.py
+++ b/categories/editor/tree_editor.py
@@ -148,6 +148,13 @@ class TreeEditor(admin.ModelAdmin):
self.list_display_links, self.list_filter, self.date_hi... | Django <I> support in Admin TypeError at /admin/categories/category/ __init__() missing 1 required positional argument: 'sortable_by' | py |
diff --git a/malcolm/imalcolm.py b/malcolm/imalcolm.py
index <HASH>..<HASH> 100755
--- a/malcolm/imalcolm.py
+++ b/malcolm/imalcolm.py
@@ -282,7 +282,7 @@ block = self.block_view("<mri>")
if profiler.running and not profiler.stopping:
profiler.stop()
- cothread.CallbackResult(process.stop)
+ cothr... | Don't wait for too long to stop imalcolm | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.