diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/dpark/utils/frame.py b/dpark/utils/frame.py
index <HASH>..<HASH> 100644
--- a/dpark/utils/frame.py
+++ b/dpark/utils/frame.py
@@ -30,8 +30,11 @@ def frame_tuple(f):
def func_info(f):
- c = f.__code__
- return "{}@{}:{}".format(c.co_name, c.co_filename, c.co_firstlineno)
+ co = getattr(f, "__c... | Fix UI: buitin method has no attr __code__. | py |
diff --git a/numina/instrument/detector.py b/numina/instrument/detector.py
index <HASH>..<HASH> 100644
--- a/numina/instrument/detector.py
+++ b/numina/instrument/detector.py
@@ -54,9 +54,12 @@ class Das(object):
now = datetime.now()
self._meta['dateobs'] = now.isoformat()
self._meta['mjdobs'... | Detector resets before doing anything | py |
diff --git a/Lib/glyphsLib/classes.py b/Lib/glyphsLib/classes.py
index <HASH>..<HASH> 100755
--- a/Lib/glyphsLib/classes.py
+++ b/Lib/glyphsLib/classes.py
@@ -1376,6 +1376,8 @@ class GSNode(GSBase):
def makeNodeFirst(self):
assert self.parent
+ if self.type == 'offcurve':
+ raise Value... | Added node type check to GSNode.makeNodeFirst() | py |
diff --git a/asyncpg/pool.py b/asyncpg/pool.py
index <HASH>..<HASH> 100644
--- a/asyncpg/pool.py
+++ b/asyncpg/pool.py
@@ -802,10 +802,23 @@ def create_pool(dsn=None, *,
async with asyncpg.create_pool(user='postgres',
command_timeout=60) as pool:
+ await poo... | Improve pool documentation examples (#<I>) I think pool documentation should recommend the safest approaches first (i.e. with the fewest possible mistakes), and discourage lower-level approach. | py |
diff --git a/fuel/datasets/cache.py b/fuel/datasets/cache.py
index <HASH>..<HASH> 100644
--- a/fuel/datasets/cache.py
+++ b/fuel/datasets/cache.py
@@ -18,6 +18,7 @@ import logging
import os
import stat
import time
+import shutil
import theano.gof.compilelock as compilelock
@@ -25,7 +26,7 @@ from fuel.utils impo... | Updated to new class style. Switched copy from system call to shutil | py |
diff --git a/openstack_dashboard/dashboards/project/stacks/resource_types/tables.py b/openstack_dashboard/dashboards/project/stacks/resource_types/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/stacks/resource_types/tables.py
+++ b/openstack_dashboard/dashboards/project/stacks/resour... | Add filter function on resource type table Resource Types panel in Orchestration panel group has a resources type table. This table does not have a filter function even though the number of colums is over <I>. This patch add a filter function to this table. Change-Id: I<I>e<I>b1acc3d9ea<I>fff<I>cc0cc7fce6fa<I> Closes... | py |
diff --git a/jinja2cli/cli.py b/jinja2cli/cli.py
index <HASH>..<HASH> 100644
--- a/jinja2cli/cli.py
+++ b/jinja2cli/cli.py
@@ -5,9 +5,6 @@ jinja2-cli
License: BSD, see LICENSE for more details.
"""
-from __future__ import absolute_import
-
-
class InvalidDataFormat(Exception): pass
class InvalidInputData(Exceptio... | absolute_import isn't needed. | py |
diff --git a/flask_sqlalchemy/__init__.py b/flask_sqlalchemy/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_sqlalchemy/__init__.py
+++ b/flask_sqlalchemy/__init__.py
@@ -153,7 +153,7 @@ class SignallingSession(SessionBase):
self.app = app = db.get_app()
track_modifications = app.config['SQLALCHEM... | fixes #<I>, which prevents an empty dict being specified for the binds option | py |
diff --git a/lib/access_control_config.py b/lib/access_control_config.py
index <HASH>..<HASH> 100644
--- a/lib/access_control_config.py
+++ b/lib/access_control_config.py
@@ -246,7 +246,8 @@ CFG_ACC_ACTIVITIES_URLS = {
'cfgwebsearch' : (_("Configure WebSearch"), "%s/admin/websearch/websearchadmin.py?ln=%%s" % CFG_... | BibUpload: added Run Batch Uploader to admin menu * Run Batch Uploader action item added to admin menu. (fixes #<I>) | py |
diff --git a/examples/confirm_amazed.py b/examples/confirm_amazed.py
index <HASH>..<HASH> 100644
--- a/examples/confirm_amazed.py
+++ b/examples/confirm_amazed.py
@@ -6,4 +6,4 @@ if __name__ == "__main__":
if confirmation:
print("That is amazing! 💥🚀")
else:
- print("Tha is unfortunate 🐡.")
... | Small typo, a missing `t` in the word `That` (#<I>) | py |
diff --git a/distutils/unixccompiler.py b/distutils/unixccompiler.py
index <HASH>..<HASH> 100644
--- a/distutils/unixccompiler.py
+++ b/distutils/unixccompiler.py
@@ -345,20 +345,16 @@ class UnixCCompiler(CCompiler):
vs
/usr/lib/libedit.dylib
"""
- if sys.platform != 'darwin' or not ... | Calculate the CFLAGS match early and simply include that in the choice on whether to change the root. | py |
diff --git a/gns3server/version.py b/gns3server/version.py
index <HASH>..<HASH> 100644
--- a/gns3server/version.py
+++ b/gns3server/version.py
@@ -23,5 +23,5 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
-__version__ = "1.0a5"
+__version__ = "1.0a6.dev1"
__... | Bump to version <I>a6.dev1 | py |
diff --git a/tests/test_reusable_executor.py b/tests/test_reusable_executor.py
index <HASH>..<HASH> 100644
--- a/tests/test_reusable_executor.py
+++ b/tests/test_reusable_executor.py
@@ -433,18 +433,19 @@ class TestResizeExecutor(ReusableExecutorMixin):
assert len(executor._processes) == 2
assert old_... | TST check with kill_workers=True | py |
diff --git a/salt/cli/__init__.py b/salt/cli/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/cli/__init__.py
+++ b/salt/cli/__init__.py
@@ -408,6 +408,7 @@ class SaltKey(object):
parser.add_option('--keysize',
dest='keysize',
default=256,
+ type=int,
... | Add type to salt-key keysize option | py |
diff --git a/glymur/jp2box.py b/glymur/jp2box.py
index <HASH>..<HASH> 100644
--- a/glymur/jp2box.py
+++ b/glymur/jp2box.py
@@ -1556,8 +1556,9 @@ class UUIDBox(Jp2kBox):
more verbose description of the box.
uuid : uuid.UUID
16-byte UUID
- data : bytes or ElementTree.Element
- Vendor-spec... | Added description of data field in case of Exif. Fixes #<I>. | py |
diff --git a/recordlinkage/base.py b/recordlinkage/base.py
index <HASH>..<HASH> 100644
--- a/recordlinkage/base.py
+++ b/recordlinkage/base.py
@@ -359,9 +359,9 @@ class BaseCompareFeature(object):
raise NotImplementedError()
- def _compute(self, *args):
+ def _compute(self, left_on, right_on):
- ... | Separate left and right data in compute method | py |
diff --git a/roadmaptools/road_structures.py b/roadmaptools/road_structures.py
index <HASH>..<HASH> 100644
--- a/roadmaptools/road_structures.py
+++ b/roadmaptools/road_structures.py
@@ -20,8 +20,8 @@ def get_node_id(lat: T, lon: T) -> int:
lat = float(lat)
lon = float(lon)
if isinstance(lat, float):
- lat =... | id generation precision increased to <I> digits | py |
diff --git a/tests/test_PGPKeyCollection.py b/tests/test_PGPKeyCollection.py
index <HASH>..<HASH> 100644
--- a/tests/test_PGPKeyCollection.py
+++ b/tests/test_PGPKeyCollection.py
@@ -1 +1,20 @@
import pytest
+from pgpy.key import PGPKeyCollection
+
+keys = [
+ "tests/testdata/debutils.key",
+ "tests/testdata/deb... | added some skeleton to test_PGPKeyCollection, for later | py |
diff --git a/pyvisa-py/serial.py b/pyvisa-py/serial.py
index <HASH>..<HASH> 100644
--- a/pyvisa-py/serial.py
+++ b/pyvisa-py/serial.py
@@ -163,6 +163,21 @@ class SerialSession(Session):
except serial.SerialTimeoutException:
return 0, StatusCode.error_timeout
+ def flush(self, mask):
+ ... | Add implementation of flush for a serial device | py |
diff --git a/coral/analysis/_sequence/melting_temp.py b/coral/analysis/_sequence/melting_temp.py
index <HASH>..<HASH> 100644
--- a/coral/analysis/_sequence/melting_temp.py
+++ b/coral/analysis/_sequence/melting_temp.py
@@ -76,6 +76,9 @@ def tm(seq, dna_conc=50, salt_conc=50, parameters='cloning'):
# Sum up the nea... | Added alphabet check to tm function - can't calculate Tms of ambiguous sequences (N). | py |
diff --git a/objectpath/shell.py b/objectpath/shell.py
index <HASH>..<HASH> 100644
--- a/objectpath/shell.py
+++ b/objectpath/shell.py
@@ -5,6 +5,7 @@
# Copyright (C) 2010-2014 Adrian Kalbarczyk
import argparse
+import os
import sys
try:
import readline | Add missing "os" import in shell.py If pytz is not installed, the call to os.isatty raises an exception because os is never imported. This PR adds the os package to the imports. | py |
diff --git a/docstamp/config.py b/docstamp/config.py
index <HASH>..<HASH> 100644
--- a/docstamp/config.py
+++ b/docstamp/config.py
@@ -46,6 +46,7 @@ def find_file_match(folder_path, regex=''):
return outlist
+
def get_system_path():
if _platform == "linux" or _platform == "linux2":
return os.env... | config.py: linux tmp folder set to '/tmp' | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
'setuptools',
'Mopidy >= 0.18',
'Pykka >= 1.1',
- 'pyspotify >= 2.0.0b4',
+ 'pyspotify >= 2.0.0b3',
],
test_suite='nose.collector',
tests_require=[ | Use a pyspotify version that exists | py |
diff --git a/wal_e/tar_partition.py b/wal_e/tar_partition.py
index <HASH>..<HASH> 100644
--- a/wal_e/tar_partition.py
+++ b/wal_e/tar_partition.py
@@ -58,6 +58,7 @@ logger = log_help.WalELogger(__name__)
PG_CONF = ('postgresql.conf',
'pg_hba.conf',
'recovery.conf',
+ 'recovery.done',
... | Don't backup recovery.done The recovery.done file is not necessary to restore a backup and it might contain a sensitive replication password from the former leader of the cluster that is being backed up. This commit adds recovery.done to PG_CONF so that it may be ignored when excuting a backup-push. | py |
diff --git a/cohorts/load.py b/cohorts/load.py
index <HASH>..<HASH> 100644
--- a/cohorts/load.py
+++ b/cohorts/load.py
@@ -273,7 +273,7 @@ class Cohort(object):
def plot_benefit(self, on, col=None, col_equals=None):
plot_col, df = self.plot_init(on, col, col_equals)
original_len = len(df)
- ... | not isnull to notnull | py |
diff --git a/fiobank.py b/fiobank.py
index <HASH>..<HASH> 100644
--- a/fiobank.py
+++ b/fiobank.py
@@ -18,14 +18,6 @@ def coerce_date(value):
return datetime.strptime(value[:10], '%Y-%m-%d').date()
-def sort_person_names(value):
- if ',' in value:
- parts = value.split(',')
- parts.reverse... | Leaving person names as they are. | py |
diff --git a/internetarchive/utils.py b/internetarchive/utils.py
index <HASH>..<HASH> 100644
--- a/internetarchive/utils.py
+++ b/internetarchive/utils.py
@@ -313,7 +313,7 @@ def reraise_modify(caught_exc, append_msg, prepend=False):
def remove_none(obj):
if isinstance(obj, (list, tuple, set)):
l = type(... | more metadata write-many/arbitrary targets updates | py |
diff --git a/i3pystatus/mem.py b/i3pystatus/mem.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/mem.py
+++ b/i3pystatus/mem.py
@@ -11,7 +11,7 @@ class Mem(IntervalModule):
{total_mem}
"""
- format = "{avail_mem} MB, {used_mem}"
+ format = "{avail_mem} MB"
settings = (
("format", "format ... | small change to mem.py | py |
diff --git a/hotdoc/core/extension.py b/hotdoc/core/extension.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/extension.py
+++ b/hotdoc/core/extension.py
@@ -392,6 +392,8 @@ class Extension(Configurable):
for source_file, symbols in list(self._created_symbols.items()):
gen_symbols = symbols - u... | extension: no need to generate a page with no symbols | py |
diff --git a/km3pipe/db.py b/km3pipe/db.py
index <HASH>..<HASH> 100644
--- a/km3pipe/db.py
+++ b/km3pipe/db.py
@@ -123,12 +123,13 @@ class DBManager(object):
self.restore_session(
"sid=_kmcprod_134.158_lyo7783844001343100343mcprod1223user"
)
+ return... | Fix bug for persistent db connection | py |
diff --git a/pages/widgets.py b/pages/widgets.py
index <HASH>..<HASH> 100755
--- a/pages/widgets.py
+++ b/pages/widgets.py
@@ -4,7 +4,7 @@ in the admin via a placeholder tag in your template."""
from pages.settings import PAGES_MEDIA_URL, PAGE_TAGGING
from pages.settings import PAGE_TINYMCE, PAGE_LANGUAGES
-from pa... | Don't necessarily register CategoryWidget | py |
diff --git a/remi/server.py b/remi/server.py
index <HASH>..<HASH> 100644
--- a/remi/server.py
+++ b/remi/server.py
@@ -625,7 +625,7 @@ class App(BaseHTTPRequestHandler, object):
if (func == '/') or (not func):
self.send_response(200)
- self.send_header("Set-Cookie", "remi_session=%s"%... | Assigned SameSite=Lax attribute for cookie remi_session to suppress firefox warning that informs a future incompatibility. | py |
diff --git a/torchvision/ops/boxes.py b/torchvision/ops/boxes.py
index <HASH>..<HASH> 100644
--- a/torchvision/ops/boxes.py
+++ b/torchvision/ops/boxes.py
@@ -14,6 +14,11 @@ def nms(boxes, scores, iou_threshold):
IoU greater than iou_threshold with another (higher scoring)
box.
+ If multiple boxes have t... | Improve documentation for NMS (#<I>) * Improve documentation for NMS * update nms doc for special case | py |
diff --git a/http_check/check.py b/http_check/check.py
index <HASH>..<HASH> 100644
--- a/http_check/check.py
+++ b/http_check/check.py
@@ -156,7 +156,7 @@ class HTTPCheck(NetworkCheck):
self.ca_certs = init_config.get('ca_certs', get_ca_certs_path())
self.proxies['no'] = environ.get('no_proxy',
- ... | [http_check] syncing check. | py |
diff --git a/docs/custom_extensions/gssapi_find_missing.py b/docs/custom_extensions/gssapi_find_missing.py
index <HASH>..<HASH> 100644
--- a/docs/custom_extensions/gssapi_find_missing.py
+++ b/docs/custom_extensions/gssapi_find_missing.py
@@ -29,7 +29,7 @@ def _missing_ref(app, env, node, contnode):
non_raw_op... | Fix custom_extensions in docs build | py |
diff --git a/isort/parse.py b/isort/parse.py
index <HASH>..<HASH> 100644
--- a/isort/parse.py
+++ b/isort/parse.py
@@ -474,7 +474,7 @@ def identify_contiguous_imports(
):
"""Parses stream identifying sections of contiguous imports"""
output_stream = StringIO() if output_stream is None else output_stream
- ... | First semi-accurate import sectionining | py |
diff --git a/pyflare/client.py b/pyflare/client.py
index <HASH>..<HASH> 100755
--- a/pyflare/client.py
+++ b/pyflare/client.py
@@ -511,7 +511,7 @@ class PyflareClient(object):
http_error.response = response
raise http_error
- return self._deserialize_response(response)
+ return... | Fix what is actually being deserialized | py |
diff --git a/daapserver/provider.py b/daapserver/provider.py
index <HASH>..<HASH> 100644
--- a/daapserver/provider.py
+++ b/daapserver/provider.py
@@ -265,13 +265,29 @@ class Provider(object):
"""
"""
+ def _inner(data):
+ # Change state to streaming
+ session.state = St... | Wrap return data in separate iterator to catch state changes. | py |
diff --git a/magpie/handler/search.py b/magpie/handler/search.py
index <HASH>..<HASH> 100644
--- a/magpie/handler/search.py
+++ b/magpie/handler/search.py
@@ -18,18 +18,19 @@ class SearchHandler(BaseHandler):
except ErrorReturnCode_1 as e:
results = ''
- # TODO filter out duplicates if th... | filter duplicates, filter .git based results peter pipers | py |
diff --git a/src/python/pants/ivy/bootstrapper.py b/src/python/pants/ivy/bootstrapper.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/ivy/bootstrapper.py
+++ b/src/python/pants/ivy/bootstrapper.py
@@ -107,10 +107,10 @@ class Bootstrapper(object):
'tools', 'jvm', 'ivy')
d... | Python 3 fixes - fix ivy issues with unicode vs bytes (#<I>) | py |
diff --git a/test/alignak_test.py b/test/alignak_test.py
index <HASH>..<HASH> 100644
--- a/test/alignak_test.py
+++ b/test/alignak_test.py
@@ -165,6 +165,13 @@ class AlignakTest(unittest2.TestCase):
handler.setLevel(logging.DEBUG)
print("Unit tests handler is set at debug!")
... | Some more tests, add a new scheduler get_host endpoint - 2 - try to improve Python <I> tests | py |
diff --git a/examples/send_transfer.py b/examples/send_transfer.py
index <HASH>..<HASH> 100644
--- a/examples/send_transfer.py
+++ b/examples/send_transfer.py
@@ -5,7 +5,7 @@ Example script that shows how to use PyOTA to send a transfer to an address.
from iota import *
SEED1 = b"THESEEDOFTHEWALLETSENDINGGOESHERE99... | Fixes invalid receive address in examples | py |
diff --git a/OpenPNM/Base/__Core__.py b/OpenPNM/Base/__Core__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Base/__Core__.py
+++ b/OpenPNM/Base/__Core__.py
@@ -839,13 +839,7 @@ class Core(dict):
a thin convenience function and is a compliment to ``tomask``.
"""
- mask = sp.array(mask, ndmin=1)... | Using _parse_locations for toindices, so now it's only one line. | py |
diff --git a/tests/test_modeling_tf_pegasus.py b/tests/test_modeling_tf_pegasus.py
index <HASH>..<HASH> 100644
--- a/tests/test_modeling_tf_pegasus.py
+++ b/tests/test_modeling_tf_pegasus.py
@@ -356,7 +356,7 @@ class TFPegasusIntegrationTests(unittest.TestCase):
assert self.expected_text == generated_words
... | Fixes Pegasus tokenization tests (#<I>) | py |
diff --git a/police_api/neighbourhoods.py b/police_api/neighbourhoods.py
index <HASH>..<HASH> 100644
--- a/police_api/neighbourhoods.py
+++ b/police_api/neighbourhoods.py
@@ -62,6 +62,12 @@ class Neighbourhood(Resource):
def __str__(self):
return '<Neighbourhood> %s' % self.id
+ def __eq__(self, othe... | Add __eq__ and __hash__ to Neighbourhood | py |
diff --git a/tests/test_pflow_matpower.py b/tests/test_pflow_matpower.py
index <HASH>..<HASH> 100644
--- a/tests/test_pflow_matpower.py
+++ b/tests/test_pflow_matpower.py
@@ -3,6 +3,8 @@ import os
import andes
from andes.utils.paths import get_case
+andes.main.config_logger(stream_level=30, file=False)
+
class T... | Fixed logger for matpower test case | py |
diff --git a/src/toil/cwl/cwltoil.py b/src/toil/cwl/cwltoil.py
index <HASH>..<HASH> 100755
--- a/src/toil/cwl/cwltoil.py
+++ b/src/toil/cwl/cwltoil.py
@@ -281,7 +281,7 @@ def toilStageFiles(fileStore, cwljob, outdir, index, existing, export):
class CWLJobWrapper(Job):
def __init__(self, tool, cwljob, **kwargs):... | Can't have partial cores with BSUB, others | py |
diff --git a/pymc3/model.py b/pymc3/model.py
index <HASH>..<HASH> 100644
--- a/pymc3/model.py
+++ b/pymc3/model.py
@@ -152,6 +152,9 @@ class Factor(object):
"""Common functionality for objects with a log probability density
associated with them.
"""
+ def __init__(self, *args, **kwargs):
+ supe... | Call super().__init__ in pm.Factor Factor is used with multiple inheritance. Those classes should always call super().__init__ to make sure all constructors are properly executed. | py |
diff --git a/wkhtmltopdf/views.py b/wkhtmltopdf/views.py
index <HASH>..<HASH> 100644
--- a/wkhtmltopdf/views.py
+++ b/wkhtmltopdf/views.py
@@ -11,10 +11,11 @@ from wkhtmltopdf.utils import template_to_temp_file, wkhtmltopdf
class PDFResponse(HttpResponse):
- def __init__(self, content, **kwargs):
- super... | Pass around args and kwargs in PDFResponse In case you want to pass more things up to HttpResponse. Can't pass filename down though. | py |
diff --git a/spinoff/actor/__init__.py b/spinoff/actor/__init__.py
index <HASH>..<HASH> 100644
--- a/spinoff/actor/__init__.py
+++ b/spinoff/actor/__init__.py
@@ -1,8 +1,8 @@
from ._actor import Actor
from .node import Node
-from .ref import Ref
+# from .ref import Ref
from .uri import Uri
from .props import Props
... | Don't export Ref from spinoff.actor | py |
diff --git a/host/pybar/scans/test_tdc.py b/host/pybar/scans/test_tdc.py
index <HASH>..<HASH> 100644
--- a/host/pybar/scans/test_tdc.py
+++ b/host/pybar/scans/test_tdc.py
@@ -38,14 +38,14 @@ class TdcTest(Fei4RunBase):
'''Test TDC scan
'''
_default_run_conf = {
- "COM_port": 3,
+ "COM_p... | MAINT: changes to support LINUX | py |
diff --git a/aerofiles/igc/patterns.py b/aerofiles/igc/patterns.py
index <HASH>..<HASH> 100644
--- a/aerofiles/igc/patterns.py
+++ b/aerofiles/igc/patterns.py
@@ -4,6 +4,8 @@ DATE = re.compile('^([0-3][0-9])([0-1][0-9])([0-9]{2})$')
TIME = re.compile('^([0-2][0-9])([0-5][0-9])([0-5][0-9])$')
DATETIME = re.compile('^(... | igc/patterns: Added THREE_LETTER_CODE pattern | py |
diff --git a/salt/fileserver/hgfs.py b/salt/fileserver/hgfs.py
index <HASH>..<HASH> 100644
--- a/salt/fileserver/hgfs.py
+++ b/salt/fileserver/hgfs.py
@@ -62,7 +62,7 @@ def __virtual__():
'''
Only load if mercurial is available
'''
- if not __virtualname__ in __opts__['fileserver_backend']:
+ if __... | Fix PEP8 E<I> - test for membership should be "not in" | py |
diff --git a/nodeshot/interoperability/models/layer_external.py b/nodeshot/interoperability/models/layer_external.py
index <HASH>..<HASH> 100755
--- a/nodeshot/interoperability/models/layer_external.py
+++ b/nodeshot/interoperability/models/layer_external.py
@@ -72,6 +72,7 @@ class LayerExternal(models.Model):
... | interoperability: load new config before validating | py |
diff --git a/glue/ligolw/lsctables.py b/glue/ligolw/lsctables.py
index <HASH>..<HASH> 100644
--- a/glue/ligolw/lsctables.py
+++ b/glue/ligolw/lsctables.py
@@ -234,7 +234,7 @@ class ProcessParamsTable(table.Table):
#constraints = "PRIMARY KEY (process_id, param)"
def append(self, row):
- if row.type not in types.... | When appending rows to the process_params table, allow the type column to be None. | py |
diff --git a/indra/tools/assemble_corpus.py b/indra/tools/assemble_corpus.py
index <HASH>..<HASH> 100644
--- a/indra/tools/assemble_corpus.py
+++ b/indra/tools/assemble_corpus.py
@@ -91,8 +91,8 @@ def map_grounding(stmts_in, **kwargs):
A user supplied grounding map which maps a string to a
dictionary ... | Change deft -> adeft in assemble_corpus | 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
@@ -146,7 +146,7 @@ from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency
# Version number is taken from the ... | Prep for <I> release | py |
diff --git a/readme_renderer/rst.py b/readme_renderer/rst.py
index <HASH>..<HASH> 100644
--- a/readme_renderer/rst.py
+++ b/readme_renderer/rst.py
@@ -45,7 +45,6 @@ class ReadMeHTMLTranslator(HTMLTranslator):
self.body.pop()
# add on `img` with attributes
self.body.append(self.sta... | Do not append context pop to body This was changed in <<URL> | py |
diff --git a/gems/decorators.py b/gems/decorators.py
index <HASH>..<HASH> 100644
--- a/gems/decorators.py
+++ b/gems/decorators.py
@@ -112,7 +112,8 @@ class cached(object):
def _(x):
for o in x.__bases__:
for key in o.__dict__:
- props[key] = o.__dict__[key]
+ ... | updated cached decorator to honor mro when finding class properties | py |
diff --git a/neurondm/neurondm/build.py b/neurondm/neurondm/build.py
index <HASH>..<HASH> 100755
--- a/neurondm/neurondm/build.py
+++ b/neurondm/neurondm/build.py
@@ -1178,9 +1178,10 @@ def make_devel():
olr = auth.get_path('ontology-local-repo')
n = (olr / 'ttl/generated/neurons')
fns =('allen-cell-type... | neurondm build dev include cut-release-final in sources also exclude unused | py |
diff --git a/addok/debug.py b/addok/debug.py
index <HASH>..<HASH> 100644
--- a/addok/debug.py
+++ b/addok/debug.py
@@ -27,7 +27,11 @@ def indexed_string(s):
def word_frequency(word):
- token = list(preprocess_query(word))[0]
+ try:
+ token = list(preprocess_query(word))[0]
+ except IndexError:
+ ... | Catch indexerror on word frequency when given a stop word (cf #<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -62,6 +62,7 @@ setup(name='bika.lims',
'robotframework-selenium2library',
'plone.app.robotframework',
'Products.PloneTestCase',
+ 'robotframework-debuglibrary',
... | add robotframework-debuglibrary to setup.py | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -2926,7 +2926,7 @@ class Matcher(object):
return False
-class ProxyMinion(Minion):
+class ProxyMinion(MinionManager):
'''
This class instantiates a 'proxy' minion--a minion that d... | Have proxy sublcass new minionmanager Otherwise the event bus won't be initialized at all. Refs #<I>. Closes #<I> | py |
diff --git a/pylsdj/bread_spec.py b/pylsdj/bread_spec.py
index <HASH>..<HASH> 100644
--- a/pylsdj/bread_spec.py
+++ b/pylsdj/bread_spec.py
@@ -139,9 +139,9 @@ pulse_instrument = [
3: "LR"
})),
b.padding(2 * 8),
- ("_default_instr_byte_1", b.byte, {"str_format": padded_hex(2)}),
+ ("xx_default_i... | Moving a couple hidden fields to start with 'xx' instead of _. | py |
diff --git a/proso_models/views.py b/proso_models/views.py
index <HASH>..<HASH> 100644
--- a/proso_models/views.py
+++ b/proso_models/views.py
@@ -18,8 +18,8 @@ def status(request):
user_id = get_user_id(request)
return render_json(request, _to_json(request, {
'object_type': 'status',
- 'answe... | proso_models: make status resource compatible to models one | py |
diff --git a/pmagpy/ipmag.py b/pmagpy/ipmag.py
index <HASH>..<HASH> 100755
--- a/pmagpy/ipmag.py
+++ b/pmagpy/ipmag.py
@@ -311,8 +311,7 @@ def fishrot(k=20, n=100, dec=0, inc=90, di_block=True):
Returns
---------
di_block : a nested list of [dec,inc,1.0] (default)
- or
- declination, inclination : ... | small edit to ipmag.fishrot doc | py |
diff --git a/listen/__init__.py b/listen/__init__.py
index <HASH>..<HASH> 100644
--- a/listen/__init__.py
+++ b/listen/__init__.py
@@ -25,15 +25,16 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
-from __future__ import print_function # This API requires Python 2.7 or... | Remove requirement on python > <I> | py |
diff --git a/qiskit/assembler/assemble_schedules.py b/qiskit/assembler/assemble_schedules.py
index <HASH>..<HASH> 100644
--- a/qiskit/assembler/assemble_schedules.py
+++ b/qiskit/assembler/assemble_schedules.py
@@ -177,7 +177,7 @@ def _assemble_instructions(
isinstance(instruction.pulse, library.Parame... | One reference to get_sample_pulse is raising deprecation warnings from the assembler (#<I>) | py |
diff --git a/custodian/custodian.py b/custodian/custodian.py
index <HASH>..<HASH> 100644
--- a/custodian/custodian.py
+++ b/custodian/custodian.py
@@ -363,6 +363,7 @@ class Custodian(object):
# While the job is running, we use the handlers that are
# monitors to monitor the job.
i... | also call terminate() even in natural terminations | py |
diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/oem/lenovo/imm.py
+++ b/pyghmi/ipmi/oem/lenovo/imm.py
@@ -174,7 +174,12 @@ class IMMClient(object):
changeset[key] = {'value': changeset[key]}
newvalue = changeset[key][... | Support '=' as a list delimiter The ASU utility had created an expectation of = delimiting. Do not advertise it, but also do not break when faced with that expectation. Change-Id: I<I>c<I>db3d8be<I>d<I>f0d<I>b<I>c<I>a8e<I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -40,7 +40,9 @@ extensions = [
'sphinx.ext.ifconfig',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
+ 'sphinx.ext.autosummary',
'nbsphinx',
+ 'numpydoc'
]
# Add any paths that co... | Minor changes in configuration for building docs: 1. Use numpyautodoc. 2. Supress some warnings. 3. Start using autosummary extension. | py |
diff --git a/tools/run_tests/python_utils/filter_pull_request_tests.py b/tools/run_tests/python_utils/filter_pull_request_tests.py
index <HASH>..<HASH> 100644
--- a/tools/run_tests/python_utils/filter_pull_request_tests.py
+++ b/tools/run_tests/python_utils/filter_pull_request_tests.py
@@ -78,7 +78,7 @@ _WHITELIST_DICT... | test/core should trigger c++ suite nowadays | py |
diff --git a/girder/api/v1/resource.py b/girder/api/v1/resource.py
index <HASH>..<HASH> 100644
--- a/girder/api/v1/resource.py
+++ b/girder/api/v1/resource.py
@@ -113,7 +113,7 @@ class Resource(BaseResource):
"""
try:
model = self.model(kind)
- except ImportError:
+ except E... | No longer catch ImportError from model importer | py |
diff --git a/fluent_blogs/pagetypes/blogpage/admin.py b/fluent_blogs/pagetypes/blogpage/admin.py
index <HASH>..<HASH> 100644
--- a/fluent_blogs/pagetypes/blogpage/admin.py
+++ b/fluent_blogs/pagetypes/blogpage/admin.py
@@ -1,6 +1,9 @@
+from django.contrib import admin
from fluent_pages.integration.fluent_contents.admi... | : Perform manual BlogPageAdmin registration, as django-polymorphic <I>+ requires. This new registration system worked as of django-polymorphic <I>, and this deprecated feature was recently removed because it caused subtle bugs. | py |
diff --git a/fluo/urls.py b/fluo/urls.py
index <HASH>..<HASH> 100644
--- a/fluo/urls.py
+++ b/fluo/urls.py
@@ -59,9 +59,9 @@ class UrlsMixin:
def get_urls(self):
raise NotImplemented
+ @property
def urls(self):
return self.get_urls()
- urls = property(urls)
def reverse(viewname,... | urls: use @property decorator in UrlsMixin | py |
diff --git a/openxc/sources/trace.py b/openxc/sources/trace.py
index <HASH>..<HASH> 100644
--- a/openxc/sources/trace.py
+++ b/openxc/sources/trace.py
@@ -1,10 +1,5 @@
+"""A data source for reading from pre-recorded OpenXC trace files."""
-"""A data source for reading from pre-recorded OpenXC trace files.
-
-.. modul... | Remove non-descriptive docs. | py |
diff --git a/asammdf/blocks/utils.py b/asammdf/blocks/utils.py
index <HASH>..<HASH> 100644
--- a/asammdf/blocks/utils.py
+++ b/asammdf/blocks/utils.py
@@ -17,7 +17,7 @@ from tempfile import TemporaryDirectory
from pathlib import Path
from struct import pack
-import anmatrix.formats.dbc.load as dbc_load
+import canm... | fix typo in canmatrix import | py |
diff --git a/bot/action/extra/messages/__init__.py b/bot/action/extra/messages/__init__.py
index <HASH>..<HASH> 100644
--- a/bot/action/extra/messages/__init__.py
+++ b/bot/action/extra/messages/__init__.py
@@ -245,7 +245,7 @@ class OptOutManager:
def remove_user(self, user_id):
users = self.state.opted_o... | Fix bug in OptOutManager involving removing and adding users to the list | py |
diff --git a/sos/plugins/keyutils.py b/sos/plugins/keyutils.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/keyutils.py
+++ b/sos/plugins/keyutils.py
@@ -29,7 +29,8 @@ class Keyutils(Plugin, RedHatPlugin):
def setup(self):
self.add_copy_spec([
"/etc/request-key.conf",
- "/etc/requ... | [keyutils] collect /proc/key-users Collect quota information and stats of users with a key on the system. Resolves: #<I> | py |
diff --git a/hedgehog/client/sync_client.py b/hedgehog/client/sync_client.py
index <HASH>..<HASH> 100644
--- a/hedgehog/client/sync_client.py
+++ b/hedgehog/client/sync_client.py
@@ -64,7 +64,7 @@ class SyncClient(object):
signal.signal(signal.SIGINT, sigint_handler)
@enter_stack.cal... | removed erroneous async that caused signal handler to not be reset when starting a sync client fails, also add a comment regarding resetting the signal handler when the client shuts down | py |
diff --git a/jax/experimental/host_callback.py b/jax/experimental/host_callback.py
index <HASH>..<HASH> 100644
--- a/jax/experimental/host_callback.py
+++ b/jax/experimental/host_callback.py
@@ -176,7 +176,10 @@ def id_tap(tap_func: Callable, arg, *, result=None, **kwargs):
argument.
Args:
- * tap_func: the ... | Document the required form of tap_func for host_callback.id_tap (#<I>) | py |
diff --git a/rshell/version.py b/rshell/version.py
index <HASH>..<HASH> 100644
--- a/rshell/version.py
+++ b/rshell/version.py
@@ -1 +1 @@
-__version__ = '0.0.12'
+__version__ = '0.0.13' | Bumped version to <I> | py |
diff --git a/rocket/methods/wsgi.py b/rocket/methods/wsgi.py
index <HASH>..<HASH> 100644
--- a/rocket/methods/wsgi.py
+++ b/rocket/methods/wsgi.py
@@ -153,10 +153,9 @@ class WSGIWorker(Worker):
self.send_headers(data, sections)
if self.request_method != 'HEAD':
- if self.chunked:
- ... | BUGFIX: Upon sending an empty response, it would be flagged as chunked and an extra 0-newline would be sent. This would mess up the next page download every time. | py |
diff --git a/pyontutils/parcellation.py b/pyontutils/parcellation.py
index <HASH>..<HASH> 100755
--- a/pyontutils/parcellation.py
+++ b/pyontutils/parcellation.py
@@ -2065,7 +2065,9 @@ def main():
from pyontutils.parc_freesurfer import Artifacts as fsArts
from pyontutils.parc_whs import Artifacts as whsArts
... | parc attempt to preven pulling in other subclasses of Ont may need to subclass Ont specifically for parc to actually fix | py |
diff --git a/holoviews/core/data.py b/holoviews/core/data.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/data.py
+++ b/holoviews/core/data.py
@@ -1595,8 +1595,20 @@ class GridColumns(DictColumns):
@classmethod
+ def add_dimension(cls, columns, dimension, dim_pos, values, vdim):
+ if not vdim:
+ ... | Implemented GridColumns add_dimension and sort methods | py |
diff --git a/nolds/measures.py b/nolds/measures.py
index <HASH>..<HASH> 100644
--- a/nolds/measures.py
+++ b/nolds/measures.py
@@ -1099,8 +1099,9 @@ def hurst_rs(data, nvals=None, fit="RANSAC", debug_plot=False,
exponent using R/S Analysis",
url: https://ideas.repec.org/c/wuu/hscode/m11003.h... | clarifies that only fit="poly" reproduces Werons results exactly | py |
diff --git a/great_expectations/dataset/util.py b/great_expectations/dataset/util.py
index <HASH>..<HASH> 100644
--- a/great_expectations/dataset/util.py
+++ b/great_expectations/dataset/util.py
@@ -90,7 +90,7 @@ def kde_smooth_data(data):
kde = stats.kde.gaussian_kde(data)
evaluation_partition = np.linspace(... | Explicitly take floor of num for samples in kde_smooth_data partition helper | py |
diff --git a/jishaku/features/voice.py b/jishaku/features/voice.py
index <HASH>..<HASH> 100644
--- a/jishaku/features/voice.py
+++ b/jishaku/features/voice.py
@@ -173,7 +173,7 @@ class VoiceFeature(Feature):
Resumes a running audio source, if there is one.
"""
- if await self.playing_check(ct... | Fix bug in jsk voice resume | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ from setuptools.command.test import test as TestCommand
import multiprocessing
assert multiprocessing # silence flake8
-VERSION = '0.7.0'
+VERSION = '0.7.1.dev1'
def get_requirements(suffix=''): | Bump to <I>.dev1 version | py |
diff --git a/openstack_dashboard/dashboards/project/networks/ports/tables.py b/openstack_dashboard/dashboards/project/networks/ports/tables.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/networks/ports/tables.py
+++ b/openstack_dashboard/dashboards/project/networks/ports/tables.py
@@ -59,7 ... | Fixes spelling mistake in Error Message Spelling mistake in msg text fixed in file dashboards/project/networks/ports/tables.py:<I> Change-Id: I<I>c7d8fa1b<I>f<I>dde<I>a<I>b<I>c<I> Closes-Bug: #<I> | py |
diff --git a/angr/surveyor.py b/angr/surveyor.py
index <HASH>..<HASH> 100644
--- a/angr/surveyor.py
+++ b/angr/surveyor.py
@@ -399,7 +399,8 @@ class Surveyor(object):
@param p: the path
@returns the path
"""
- p.suspend(do_pickle=self._pickle_paths)
+ # TODO: Path doesn't provid... | commented out the p.suspend() in Surveyor class. | py |
diff --git a/registration/tests/backends.py b/registration/tests/backends.py
index <HASH>..<HASH> 100644
--- a/registration/tests/backends.py
+++ b/registration/tests/backends.py
@@ -61,6 +61,15 @@ class BackendRetrievalTests(TestCase):
settings.REGISTRATION_BACKEND = 'registration.backends.doesnotexist.NonExi... | Add a test for a backend module which exists but lacks the specified class. | py |
diff --git a/saltcloud/clouds/aws.py b/saltcloud/clouds/aws.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/aws.py
+++ b/saltcloud/clouds/aws.py
@@ -76,7 +76,6 @@ def __virtual__():
EC2_LOCATIONS = {
'ap-northeast-1': Provider.EC2_AP_NORTHEAST,
'ap-southeast-1': Provider.EC2_AP_SOUTHEAST,
- 'ap-sout... | Test for EC2_AP_SOUTHEAST2 attribute before adding it to the locations dictionary. | py |
diff --git a/json_logic/__init__.py b/json_logic/__init__.py
index <HASH>..<HASH> 100644
--- a/json_logic/__init__.py
+++ b/json_logic/__init__.py
@@ -30,16 +30,6 @@ operations = {
"in" : (lambda a, b:
a in b if "__contains__" in dir(b) else False
),
- "var" : (lambda a, not_found=None:
- ... | Remove 'var' from operations table. It needs to be handled separately. | py |
diff --git a/bcbio/variation/vcfanno.py b/bcbio/variation/vcfanno.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/vcfanno.py
+++ b/bcbio/variation/vcfanno.py
@@ -102,6 +102,10 @@ def find_annotations(data):
conf_files = _default_conf_files(data)
if not isinstance(conf_files, (list, tuple)):
... | vcfanno: add gemini if tools_on specified Avoids issues with skipping gemini when included in tools on but not in a custom vcfanno configuration. #<I> | py |
diff --git a/blockstack_client/rpc.py b/blockstack_client/rpc.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/rpc.py
+++ b/blockstack_client/rpc.py
@@ -4683,9 +4683,12 @@ def local_api_start( port=None, host=None, config_dir=blockstack_constants.CONFI
print("No wallet found at {}".format(wallet_path), f... | when testing, do not install separate signal handlers (interferes with the test framework's ability to shut down) | py |
diff --git a/rdt/transformers/CatTransformer.py b/rdt/transformers/CatTransformer.py
index <HASH>..<HASH> 100644
--- a/rdt/transformers/CatTransformer.py
+++ b/rdt/transformers/CatTransformer.py
@@ -74,13 +74,9 @@ class CatTransformer(BaseTransformer):
def get_probability_map(self, col):
""" Maps each u... | CatTransformer's probability_map calculated more efficiently | py |
diff --git a/airflow/jobs/base_job.py b/airflow/jobs/base_job.py
index <HASH>..<HASH> 100644
--- a/airflow/jobs/base_job.py
+++ b/airflow/jobs/base_job.py
@@ -77,11 +77,11 @@ class BaseJob(Base, LoggingMixin):
def __init__(
self,
- executor=executors.get_default_executor(),
+ e... | [AIRFLOW-<I>] Scheduler stalls because second watcher thread in default args | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ setup(
author='Roland Hedberg',
author_email='roland.hedberg@adm.umu.se',
license='Apache 2.0',
- url='https://code.launchpad.net/~roland-hedberg/pysaml2/main',
+ url='https://github.com/roh... | Update the home link to the new Github site | py |
diff --git a/spyder/preferences/languageserver.py b/spyder/preferences/languageserver.py
index <HASH>..<HASH> 100644
--- a/spyder/preferences/languageserver.py
+++ b/spyder/preferences/languageserver.py
@@ -120,14 +120,17 @@ class LSPServerEditor(QDialog):
super(LSPServerEditor, self).__init__(parent)
... | LSP: Improve main label of its server editor | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.