diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/lib/autokey/scripting/engine.py b/lib/autokey/scripting/engine.py
index <HASH>..<HASH> 100644
--- a/lib/autokey/scripting/engine.py
+++ b/lib/autokey/scripting/engine.py
@@ -35,7 +35,7 @@ class Engine:
self.__returnValue = ''
self._triggered_abbreviation = None # type: Optional[str]
- ... | Scripting API: Extended engine.create_phrase() call. Return the created Phrase object for advanced usage. | py |
diff --git a/main/cloudfoundry_client/operations/push/push.py b/main/cloudfoundry_client/operations/push/push.py
index <HASH>..<HASH> 100644
--- a/main/cloudfoundry_client/operations/push/push.py
+++ b/main/cloudfoundry_client/operations/push/push.py
@@ -104,7 +104,7 @@ class PushOperation(object):
def _build_defa... | Fix no 'internal' entry on some shared domains See #<I> | py |
diff --git a/sos/plugins/powerpc.py b/sos/plugins/powerpc.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/powerpc.py
+++ b/sos/plugins/powerpc.py
@@ -77,7 +77,8 @@ class PowerPC(Plugin, RedHatPlugin, UbuntuPlugin, DebianPlugin):
"/proc/ppc64/systemcfg",
"/proc/ppc64/topology_updates",... | [powerpc] Capture the opal-prd log file Opal-prd is the Processor Runtime Diagnostics daemon on Power systems running OPAL firmware. Capture this log file with sosreport. Resolves: #<I> | py |
diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py
index <HASH>..<HASH> 100644
--- a/pandas/io/clipboard/__init__.py
+++ b/pandas/io/clipboard/__init__.py
@@ -94,7 +94,8 @@ class PyperclipException(RuntimeError):
class PyperclipWindowsException(PyperclipException):
def __init__(self,... | TYP/CI: Fix failing clipboard typing (#<I>) | py |
diff --git a/src/googleclouddebugger/capture_collector.py b/src/googleclouddebugger/capture_collector.py
index <HASH>..<HASH> 100644
--- a/src/googleclouddebugger/capture_collector.py
+++ b/src/googleclouddebugger/capture_collector.py
@@ -354,7 +354,10 @@ class CaptureCollector(object):
"""
try:
if not... | Allow unicode values for keys in dictionaries in the python agent ------------- Created by MOE: <URL> | py |
diff --git a/scanpy/readwrite.py b/scanpy/readwrite.py
index <HASH>..<HASH> 100644
--- a/scanpy/readwrite.py
+++ b/scanpy/readwrite.py
@@ -777,7 +777,6 @@ def write_dict_to_file(filename, d, ext='h5'):
key, value = preprocess_writing(key, value)
d_write[key] = value
# now open the file
- ... | do not use psutil for writing | py |
diff --git a/tests/macaroons_tests.py b/tests/macaroons_tests.py
index <HASH>..<HASH> 100644
--- a/tests/macaroons_tests.py
+++ b/tests/macaroons_tests.py
@@ -236,3 +236,14 @@ never use the same secret twice',
discharge_macaroons=[protected]
)
assert_true(verified)
+
+ def test_inspect... | Adds a test for the inspect method | py |
diff --git a/src/pytesseract.py b/src/pytesseract.py
index <HASH>..<HASH> 100755
--- a/src/pytesseract.py
+++ b/src/pytesseract.py
@@ -24,7 +24,7 @@ numpy_installed = find_loader('numpy') is not None
if numpy_installed:
from numpy import ndarray
-from io import StringIO
+from io import BytesIO
pandas_installed... | Replace StringIO by BytesIO because it file.read() return bytes and not strings (#<I>) | py |
diff --git a/tests/test_issues.py b/tests/test_issues.py
index <HASH>..<HASH> 100644
--- a/tests/test_issues.py
+++ b/tests/test_issues.py
@@ -17,9 +17,9 @@ class IssuesTests(unittest.TestCase):
p._parse()
self.assertTrue(p.parsed)
res = p.diff(issue9, "{0}.patch".format(issue9))
- sel... | keep assertTrue and check expected results I suggest to keep the `assertTrue` tests but testing expected result which should be what I replaced in your commit. | py |
diff --git a/xdist/plugin.py b/xdist/plugin.py
index <HASH>..<HASH> 100644
--- a/xdist/plugin.py
+++ b/xdist/plugin.py
@@ -32,7 +32,7 @@ def pytest_addoption(parser):
group._addoption(
'--dist', metavar="distmode",
action="store", choices=['load', 'each', 'no'],
- type="choice", dest="dist... | Don't show warning from pytest 3 | py |
diff --git a/cassandra/connection.py b/cassandra/connection.py
index <HASH>..<HASH> 100644
--- a/cassandra/connection.py
+++ b/cassandra/connection.py
@@ -165,7 +165,8 @@ class Connection(object):
except Exception, exc:
log.exception("Error decoding response from Cassandra. "
... | Correct callback erroring when message can't be decoded | py |
diff --git a/lib/lago/virt.py b/lib/lago/virt.py
index <HASH>..<HASH> 100644
--- a/lib/lago/virt.py
+++ b/lib/lago/virt.py
@@ -531,6 +531,7 @@ class VM(object):
def __init__(self, env, spec):
self._env = env
self._spec = self._normalize_spec(spec.copy())
+
self._service_class = _SERVICE_... | Adding the ssh timout to the spec This patch will allow long booting machines to operate too Like the ovirt engine appliance first boot Change-Id: Id<I>f<I>b8fdf<I>e<I>c<I>f2e2c9dce<I>f<I>aa | py |
diff --git a/openquake/calculators/event_based.py b/openquake/calculators/event_based.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/event_based.py
+++ b/openquake/calculators/event_based.py
@@ -148,6 +148,8 @@ class EventBasedCalculator(base.HazardCalculator):
self.rupser.save(dic['rup... | Fixed the case of no ruptures with OQ_SAMPLE_SOURCES [skip CI] | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -169,7 +169,7 @@ class Zotero(object):
self.endpoint = 'https://api.zotero.org'
if library_id and library_type:
self.library_id = library_id
- #... | Tidying up some over-long lines | py |
diff --git a/tests/test_interface_web.py b/tests/test_interface_web.py
index <HASH>..<HASH> 100644
--- a/tests/test_interface_web.py
+++ b/tests/test_interface_web.py
@@ -71,8 +71,8 @@ class WebInterfaceTest(BaseTestCase):
def _webGetReportList(self):
resp = self._webGetStats()
- self.assertIn('r... | [WebInterface] fixed tests to match reports_extended | py |
diff --git a/isort/main.py b/isort/main.py
index <HASH>..<HASH> 100644
--- a/isort/main.py
+++ b/isort/main.py
@@ -461,7 +461,7 @@ def _build_arg_parser() -> argparse.ArgumentParser:
"--use-parentheses",
dest="use_parentheses",
action="store_true",
- help="Use parenthesis for line cont... | Fix spelling in command line argument as well | py |
diff --git a/mtools/util/cmdlinetool.py b/mtools/util/cmdlinetool.py
index <HASH>..<HASH> 100644
--- a/mtools/util/cmdlinetool.py
+++ b/mtools/util/cmdlinetool.py
@@ -68,7 +68,7 @@ class BaseCmdLineTool(object):
total_length = 40
if progress == 1.:
- sys.stdout.write('\r' + ' '*(total_len... | progress bar bug, line didn't clear always. | py |
diff --git a/werkzeug/contrib/cache.py b/werkzeug/contrib/cache.py
index <HASH>..<HASH> 100644
--- a/werkzeug/contrib/cache.py
+++ b/werkzeug/contrib/cache.py
@@ -224,6 +224,7 @@ class BaseCache(object):
def clear(self):
"""Clears the cache. Keep in mind that not all caches support
completely cl... | Add empty line in docstring of BaseCache.clear() (#<I>) Tags should be clearly separated from the method's summary, otherwise they may not be parsed correctly: <URL> | py |
diff --git a/system_maintenance/models.py b/system_maintenance/models.py
index <HASH>..<HASH> 100644
--- a/system_maintenance/models.py
+++ b/system_maintenance/models.py
@@ -78,7 +78,7 @@ class Maintenance(models.Model):
software = models.ManyToManyField(
'Software',
blank=True,
- help_te... | Simplify the help text for software involved in system maintenance | py |
diff --git a/pandas/tools/rplot.py b/pandas/tools/rplot.py
index <HASH>..<HASH> 100644
--- a/pandas/tools/rplot.py
+++ b/pandas/tools/rplot.py
@@ -391,6 +391,7 @@ class GeomHistogram(Layer):
ax = fig.gca()
x = self.data[self.aes['x']]
ax.hist(x, self.bins, facecolor=self.colour)
+ ax.set_xlabel(self.aes['x'... | Enabled x axis label for histograms | py |
diff --git a/py3status/modules/spotify.py b/py3status/modules/spotify.py
index <HASH>..<HASH> 100644
--- a/py3status/modules/spotify.py
+++ b/py3status/modules/spotify.py
@@ -74,7 +74,7 @@ class Py3status:
except Exception:
return (
self.format_stopped,
- ... | fixed comment according to jenkins error | py |
diff --git a/pymc3/sampling.py b/pymc3/sampling.py
index <HASH>..<HASH> 100644
--- a/pymc3/sampling.py
+++ b/pymc3/sampling.py
@@ -189,11 +189,15 @@ def _sample(draws, step=None, start=None, trace=None, chain=0, tune=None,
if progressbar:
sampling = tqdm(sampling, total=draws)
try:
+ strace = ... | avoid unbound local ref on exc before first sample | py |
diff --git a/openquake/server/manage.py b/openquake/server/manage.py
index <HASH>..<HASH> 100755
--- a/openquake/server/manage.py
+++ b/openquake/server/manage.py
@@ -52,6 +52,5 @@ if __name__ == "__main__":
if '--nothreading' in sys.argv:
logs.dbcmd = dbcmd # turn this on when debugging
logs.dbcmd(... | Removed reset_is_running even from manage.py | py |
diff --git a/integration/main.py b/integration/main.py
index <HASH>..<HASH> 100644
--- a/integration/main.py
+++ b/integration/main.py
@@ -1,7 +1,9 @@
+import os
+
from spec import skip, Spec, ok_, eq_
from invoke import pty_size
-from fabric.connection import Connection, Group
+from fabric import Connection, Group... | Untested integration test for basic get() | py |
diff --git a/openquake/commonlib/calc.py b/openquake/commonlib/calc.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/calc.py
+++ b/openquake/commonlib/calc.py
@@ -101,8 +101,12 @@ class PmapGetter(object):
self.nbytes = 0
if sids is None:
self.sids = dstore['sitecol'].complete.sid... | Restore as it was [skip hazardlib][demos] Former-commit-id: bb<I>b<I>b<I>ba<I>d<I>c4a5a<I> | py |
diff --git a/tests/test_new.py b/tests/test_new.py
index <HASH>..<HASH> 100644
--- a/tests/test_new.py
+++ b/tests/test_new.py
@@ -26,6 +26,11 @@ def do_a_test(iso, check_func):
# Now make sure we can re-open the written ISO.
pyiso.PyIso().open(out)
+ iso2 = pyiso.PyIso()
+ iso2.open(out)
+ check_f... | Do additional checks with new tests. In particular, make sure to re-open the ISOs to check to see that we did things correctly. | py |
diff --git a/phoebe/frontend/plotting.py b/phoebe/frontend/plotting.py
index <HASH>..<HASH> 100644
--- a/phoebe/frontend/plotting.py
+++ b/phoebe/frontend/plotting.py
@@ -249,6 +249,7 @@ def mpl(ps, data, plot_inds, do_plot=True, **kwargs):
pckwargs = {}
pckwargs['facecolors'] = kwargs.get('facecolor'... | pass zorder on for plotting meshes via mpl | py |
diff --git a/zipline/data/loader.py b/zipline/data/loader.py
index <HASH>..<HASH> 100644
--- a/zipline/data/loader.py
+++ b/zipline/data/loader.py
@@ -124,7 +124,7 @@ def update_benchmarks(symbol, last_date):
for daily_return in get_benchmark_returns(symbol, start_date=start):
# Not ideal but mass... | BUG: Ensure loading benchmarks include latest dates. The Series `.append` does not update in-place, assign the value to `saved_benchmarks` so that we update the newest benchmarks. | py |
diff --git a/tests/parser/features/test_logging.py b/tests/parser/features/test_logging.py
index <HASH>..<HASH> 100644
--- a/tests/parser/features/test_logging.py
+++ b/tests/parser/features/test_logging.py
@@ -552,7 +552,7 @@ def ioo(inp: bytes[100]):
assert chain.head_state.receipts[-1].logs[0].data == b'moo'
... | cast `topics` to tuple | py |
diff --git a/error.py b/error.py
index <HASH>..<HASH> 100644
--- a/error.py
+++ b/error.py
@@ -159,6 +159,18 @@ class OPANError(Exception):
## end def __str__
+ class __metaclass__(type):
+ # Enable iteration over the typecodes
+ def __iter__(self):
+ for item in self.__dict__:
+ ... | Added iterability to OPANError typecodes Added __metaclass__ iterability for OPANError subclasses, where iteration on the subclass itself provides the names of valid typecodes, in theory obviating the need for creating the 'typecodes' member in each subclass. Should also work for streamlining Enums, but will ha... | py |
diff --git a/udiskie/tray.py b/udiskie/tray.py
index <HASH>..<HASH> 100644
--- a/udiskie/tray.py
+++ b/udiskie/tray.py
@@ -116,7 +116,7 @@ class UdiskieMenu(object):
"""
_quit_label = _('Quit')
- _losetup_label = _('Setup loop device')
+ _losetup_label = _('Mount disc image')
def __init__(self,... | Change text for loop device The new text will be more helpful for most users. | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -69,6 +69,8 @@ def get_configuration(name):
if 'supportsZippedBackups' not in host_config:
host_config['supportsZippedBackups'] = True
+ if 'gitRootFolder' not in host_config:
+ host_config['gitRo... | support for separate gitRootFolder (if not set, the rootFolder is assumed as git-root | py |
diff --git a/ansible/modules/hashivault/hashivault_identity_entity.py b/ansible/modules/hashivault/hashivault_identity_entity.py
index <HASH>..<HASH> 100644
--- a/ansible/modules/hashivault/hashivault_identity_entity.py
+++ b/ansible/modules/hashivault/hashivault_identity_entity.py
@@ -1,7 +1,7 @@
#!/usr/bin/env pytho... | Fix unordered list comparison for policies | py |
diff --git a/xtuml/persist.py b/xtuml/persist.py
index <HASH>..<HASH> 100644
--- a/xtuml/persist.py
+++ b/xtuml/persist.py
@@ -37,11 +37,21 @@ def serialize_instance(inst):
Serialize an xtUML meta model instance.
'''
attr_count = 0
-
+ null_value = {
+ 'BOOLEAN' : False,
+ 'INTEGER' ... | persist: serialize attributes set to None with a null-like value. | py |
diff --git a/kafka_utils/util/zookeeper.py b/kafka_utils/util/zookeeper.py
index <HASH>..<HASH> 100644
--- a/kafka_utils/util/zookeeper.py
+++ b/kafka_utils/util/zookeeper.py
@@ -507,7 +507,7 @@ class ZK:
plan_json = dump_json(plan)
base_plan = self.get_cluster_plan()
if not validate_plan(pla... | Log reassignment plan even on failure | py |
diff --git a/phy/cluster/views/base.py b/phy/cluster/views/base.py
index <HASH>..<HASH> 100644
--- a/phy/cluster/views/base.py
+++ b/phy/cluster/views/base.py
@@ -11,6 +11,7 @@ from datetime import datetime
import gc
import logging
from pathlib import Path
+import traceback
from phylib.utils import Bunch, connect... | Wrap view on_select() in try/except block | py |
diff --git a/ternary/plotting.py b/ternary/plotting.py
index <HASH>..<HASH> 100644
--- a/ternary/plotting.py
+++ b/ternary/plotting.py
@@ -93,10 +93,10 @@ def triangle_coordinates(i, j, alt=False):
# Alt refers to the inner triangles not covered by the default case
return [(i/2. + j + 1, i * SQRT3OVER... | Added axes parameter to heatmap to allow for imbedding into e.g. gridspec layouts. | py |
diff --git a/egoio/db_tables/calc_ego_substation.py b/egoio/db_tables/calc_ego_substation.py
index <HASH>..<HASH> 100644
--- a/egoio/db_tables/calc_ego_substation.py
+++ b/egoio/db_tables/calc_ego_substation.py
@@ -166,10 +166,20 @@ class EgoDeuOnts(Base):
id = Column(Integer, primary_key=True)
geom = Colum... | added load_area_id column to onts | py |
diff --git a/src/python/twitter/pants/tasks/scala_compile.py b/src/python/twitter/pants/tasks/scala_compile.py
index <HASH>..<HASH> 100644
--- a/src/python/twitter/pants/tasks/scala_compile.py
+++ b/src/python/twitter/pants/tasks/scala_compile.py
@@ -200,11 +200,11 @@ class ScalaCompile(NailgunTask):
... | Comment out jar dep checking for now. It has errors, including false positives. (sapling split of <I>d1a6c<I>ff<I>d0e4ef<I>d<I>d0f<I>e<I>b<I>) | py |
diff --git a/kernel_tuner/interface.py b/kernel_tuner/interface.py
index <HASH>..<HASH> 100644
--- a/kernel_tuner/interface.py
+++ b/kernel_tuner/interface.py
@@ -474,6 +474,9 @@ def run_kernel(kernel_name, kernel_string, problem_size, arguments,
results.append(numpy.zeros_like(arg))
dev.memcp... | explicit cleanup after run_kernel | py |
diff --git a/tests/settings.py b/tests/settings.py
index <HASH>..<HASH> 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -33,7 +33,6 @@ DATASTORES = {
'ACCOUNT': 'karaage.datastores.ldap_schemas.openldap_account',
'GROUP': 'karaage.datastores.ldap_schemas.openldap_group',
... | Remove depreciated setting. Change-Id: I<I>a2e<I>bd<I>a7c<I>ec<I>e<I>d | py |
diff --git a/pydoop/pure/binary_streams.py b/pydoop/pure/binary_streams.py
index <HASH>..<HASH> 100644
--- a/pydoop/pure/binary_streams.py
+++ b/pydoop/pure/binary_streams.py
@@ -46,7 +46,7 @@ class BinaryWriter(object):
def __init__(self, stream):
self.stream = stream
- def write(self, vals)... | We 'send' not 'write' to a UpStream. Renamed method accordingly. | py |
diff --git a/tools/nni_cmd/launcher.py b/tools/nni_cmd/launcher.py
index <HASH>..<HASH> 100644
--- a/tools/nni_cmd/launcher.py
+++ b/tools/nni_cmd/launcher.py
@@ -138,7 +138,10 @@ def set_remote_config(experiment_config, port, config_file_name):
'''Call setClusterMetadata to pass trial'''
#set machine_list
... | Fix remote mode bug (#<I>) | py |
diff --git a/police_api/version.py b/police_api/version.py
index <HASH>..<HASH> 100644
--- a/police_api/version.py
+++ b/police_api/version.py
@@ -1 +1 @@
-__version__ = '1.2.2dev'
+__version__ = '1.2.2' | Commit to being <I>. | py |
diff --git a/seleniumbase/core/browser_launcher.py b/seleniumbase/core/browser_launcher.py
index <HASH>..<HASH> 100755
--- a/seleniumbase/core/browser_launcher.py
+++ b/seleniumbase/core/browser_launcher.py
@@ -619,12 +619,10 @@ def _set_firefox_options(
raise Exception(
'Incorrect... | Fix issue with using --firefox-pref="pref:value" | py |
diff --git a/src/fabops/commands/common/git.py b/src/fabops/commands/common/git.py
index <HASH>..<HASH> 100644
--- a/src/fabops/commands/common/git.py
+++ b/src/fabops/commands/common/git.py
@@ -41,7 +41,7 @@ def commit_author(sha1=''):
A named tuple ``(name, email)`` with the commit author details.
"""
... | Supress diff output when getting commit author | py |
diff --git a/tests/helpers/test_function_is_noop.py b/tests/helpers/test_function_is_noop.py
index <HASH>..<HASH> 100644
--- a/tests/helpers/test_function_is_noop.py
+++ b/tests/helpers/test_function_is_noop.py
@@ -7,8 +7,14 @@ from flake8_aaa.helpers import function_is_noop
@pytest.mark.parametrize(
'code_str'... | Clean up noop tests: remove TODO in test case | py |
diff --git a/protocols.py b/protocols.py
index <HASH>..<HASH> 100644
--- a/protocols.py
+++ b/protocols.py
@@ -250,6 +250,7 @@ def assign_assigned_stmts(self, node, context=None, asspath=None):
for infered in _resolve_asspart(self.value.infer(context), asspath, context):
yield infered
nodes.Assign.assign... | AugAssign should have assigned_stmts methods --HG-- branch : _ast_compat | py |
diff --git a/zipline/assets/assets.py b/zipline/assets/assets.py
index <HASH>..<HASH> 100644
--- a/zipline/assets/assets.py
+++ b/zipline/assets/assets.py
@@ -15,7 +15,6 @@
from abc import ABCMeta
from numbers import Integral
from operator import itemgetter
-import warnings
from logbook import Logger
import nump... | BUG: Raise if we fail to symbol map a Frame/Panel. Previously, we just warned here, but then we'd fail immediately trying to write the found values into an index that's too long. | py |
diff --git a/src/openaccess_epub/commands/convert.py b/src/openaccess_epub/commands/convert.py
index <HASH>..<HASH> 100644
--- a/src/openaccess_epub/commands/convert.py
+++ b/src/openaccess_epub/commands/convert.py
@@ -195,6 +195,8 @@ def make_EPUB(parsed_article,
#Copy over the basic epub directory
base_ep... | put in conditional re-instatement of the base epub files if they are missing | py |
diff --git a/blimpy/waterfall.py b/blimpy/waterfall.py
index <HASH>..<HASH> 100755
--- a/blimpy/waterfall.py
+++ b/blimpy/waterfall.py
@@ -54,9 +54,6 @@ MAX_BLOB_MB = 1024
class Waterfall():
""" Class for loading and writing blimpy data (.fil, .h5) """
- """ Get the frequency array for this Waterfall object"... | Fix issue #<I> documentation - no change to version. | py |
diff --git a/evolutionary_search/__init__.py b/evolutionary_search/__init__.py
index <HASH>..<HASH> 100644
--- a/evolutionary_search/__init__.py
+++ b/evolutionary_search/__init__.py
@@ -282,7 +282,7 @@ class EvolutionaryAlgorithmSearchCV(BaseSearchCV):
def fit(self, X, y=None):
self.best_estimator_ = N... | Changed starter value of best score to -inf | py |
diff --git a/lmtpd/lmtpd.py b/lmtpd/lmtpd.py
index <HASH>..<HASH> 100644
--- a/lmtpd/lmtpd.py
+++ b/lmtpd/lmtpd.py
@@ -6,17 +6,23 @@
#
from smtpd import SMTPChannel, SMTPServer, DEBUGSTREAM
+from types import StringType
+import socket
class LMTPChannel(SMTPChannel):
pass
class LMTPServer(SMTPServer):
... | LMTPServer finished :) | py |
diff --git a/cherrypy/server.py b/cherrypy/server.py
index <HASH>..<HASH> 100644
--- a/cherrypy/server.py
+++ b/cherrypy/server.py
@@ -48,7 +48,8 @@ onStopThreadList = []
def start(initOnly=False, serverClass=None):
- if cherrypy.config.get("server.environment") == "development":
+ defaultOn = (cherrypy.conf... | You can now set the config entry "autoreload.on" to False if you want to disable autoreload, yet still have "server.environment" == "development". | py |
diff --git a/demo.py b/demo.py
index <HASH>..<HASH> 100755
--- a/demo.py
+++ b/demo.py
@@ -2,6 +2,7 @@
# Sample Padatious program used for testing
import sys
+from builtins import input
from glob import glob
from os.path import basename
@@ -22,7 +23,11 @@ container.train()
query = None
while query != 'q':
-... | Improve demo.py - Python 2 + 3 support - Handle EOFError and KeyboardInterrupt better | py |
diff --git a/leonardo/module/media/management/commands/import_files.py b/leonardo/module/media/management/commands/import_files.py
index <HASH>..<HASH> 100644
--- a/leonardo/module/media/management/commands/import_files.py
+++ b/leonardo/module/media/management/commands/import_files.py
@@ -65,7 +65,7 @@ class FileImpor... | use loanardo folder for importing | py |
diff --git a/abydos/ngram.py b/abydos/ngram.py
index <HASH>..<HASH> 100644
--- a/abydos/ngram.py
+++ b/abydos/ngram.py
@@ -22,9 +22,10 @@ The NGram class is a container for an n-gram corpus
"""
from __future__ import unicode_literals
+import codecs
from collections import Counter
from .corpus import Corpus
-impor... | unicodized input before adding to corpus | py |
diff --git a/tests/unit/auth_test.py b/tests/unit/auth_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/auth_test.py
+++ b/tests/unit/auth_test.py
@@ -16,7 +16,7 @@ class LoadAuthTestCase(TestCase):
@patch('salt.payload.Serial')
@patch('salt.loader.auth', return_value={'pam.auth': 'fake_func_str'})
- ... | skip pylint arg check because of decorators | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,6 +7,7 @@ setup(
packages=find_packages(),
install_requires=[
'pdfrw',
+ 'PyPDF3',
'Pillow',
'PySimpleGUI',
'reportlab', | Added PyPDF3 as an install requirement | py |
diff --git a/tests/test_mturk.py b/tests/test_mturk.py
index <HASH>..<HASH> 100644
--- a/tests/test_mturk.py
+++ b/tests/test_mturk.py
@@ -292,10 +292,10 @@ def with_cleanup(aws_creds, request):
finally:
try:
for hit in service.get_hits(test_hits_only):
- service.disable_hit(hi... | Fix MTurk full-stack test HIT cleanup | py |
diff --git a/cas/models.py b/cas/models.py
index <HASH>..<HASH> 100644
--- a/cas/models.py
+++ b/cas/models.py
@@ -2,13 +2,16 @@ from urlparse import urljoin
from urllib import urlencode, urlopen
from django.db import models
from django.conf import settings
-from django.contrib.auth.models import User
+from django.c... | Made it work with a project that has a custom User model | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -2495,7 +2495,19 @@ class StaticFileHandler(RequestHandler):
.. versionadded:: 3.1
"""
mime_type, encoding = mimetypes.guess_type(self.absolute_path)
- return mime_type... | Content-Type for compressed StaticFileHandler file The python mimetypes module used by StaticFileHandler will recognize compression (gzip, bz2, etc.) as the file encoding, and will give the mime type for the uncompressed file. This commit will fix this behavior, so a gzip file will end up as application/gzip. Addition... | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -17,6 +17,7 @@ import sys, os
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.insert(0, ... | can readthedocs find apilinks? | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ setup(name="pyrestcli",
author="Daniel Carrión",
author_email="dani@computados.com",
description="Generic REST client for Python",
- version="0.0.1",
+ version="0.5.0",
licens... | Version bumped to <I> | py |
diff --git a/modules/piperename.py b/modules/piperename.py
index <HASH>..<HASH> 100644
--- a/modules/piperename.py
+++ b/modules/piperename.py
@@ -27,8 +27,11 @@ def pipe_rename(context, _INPUT, conf, **kwargs):
for item in _INPUT:
for rule in rules:
- item[rule[2]] = item[rule[1]]
+ ... | Allow dot notation to map to nested dictionaries | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,10 +24,11 @@ setup(name='text-classification-keras',
author_email='ragha@outlook.com, hi@jfilter.de',
url='https://github.com/jfilter/text-classification-keras',
license='MIT',
- install_requires=... | only respect major versions for packages (for now) | py |
diff --git a/hpcbench/campaign.py b/hpcbench/campaign.py
index <HASH>..<HASH> 100644
--- a/hpcbench/campaign.py
+++ b/hpcbench/campaign.py
@@ -391,7 +391,7 @@ class CampaignMerge(object):
elif key not in lhs:
lhs[key] = rhs[key]
lhs_file = osp.join(self.lhs, path)
- ... | fixed issues in campaign merger - campaign.yaml files were merged resulting in bogus output - a small typo lead to faulty hpcbench.yaml directory listings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ if __name__ == '__main__':
setup(
name="elasticfun",
license="GPL",
- version='0.3.1',
+ version='0.3.2',
description=u'ElasticSearch Query functionality using Djang... | Updating setup.py version | py |
diff --git a/lib/websearch_templates.py b/lib/websearch_templates.py
index <HASH>..<HASH> 100644
--- a/lib/websearch_templates.py
+++ b/lib/websearch_templates.py
@@ -3729,18 +3729,16 @@ class Template:
return out
# let's look for the recID's collection
- record_found = 0
- for col... | WebSearch: next-hit/previous-hit numbering fix * Fixes a next-hit/previous-hit numbering inconsistency when displaying multiple records with the HTML detailed format. (closes #<I>) | py |
diff --git a/py/makeqstrdefs.py b/py/makeqstrdefs.py
index <HASH>..<HASH> 100644
--- a/py/makeqstrdefs.py
+++ b/py/makeqstrdefs.py
@@ -44,7 +44,7 @@ def process_file(f):
m = re_line.match(line)
assert m is not None
fname = m.group(1)
- if not fname.endswith(".c"):
+ ... | py/makeqstrdefs.py: Process C++ files as well. Preprocessed C++ code isn't different from C code when it comes to QSTR instances so process it as well. | py |
diff --git a/registration/tests.py b/registration/tests.py
index <HASH>..<HASH> 100644
--- a/registration/tests.py
+++ b/registration/tests.py
@@ -322,6 +322,10 @@ class RegistrationViewTests(TestCase):
validates data and creates a new user.
"""
+ response = self.client.get(reverse('r... | Test the case where we GET to that view | py |
diff --git a/tests/integration/test_pipelines.py b/tests/integration/test_pipelines.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_pipelines.py
+++ b/tests/integration/test_pipelines.py
@@ -197,7 +197,7 @@ def test_can_handle_cypher_error(bolt_driver):
next(pipeline.pull())
-def test_shoul... | Disable test for unsupported bolt version (#<I>) <I> servers will re-run the last query if they receive an empty query. This was intended to be an optimization of tx retries. | py |
diff --git a/delphin/dmrs/_operations.py b/delphin/dmrs/_operations.py
index <HASH>..<HASH> 100644
--- a/delphin/dmrs/_operations.py
+++ b/delphin/dmrs/_operations.py
@@ -95,7 +95,7 @@ def _mrs_to_links(m, hcmap, reps, iv_to_nid, id_to_nid):
# scopal arguments
elif tgt in reps and len(reps[tgt... | Fix lookup bug in MRS-to-DMRS conversion | py |
diff --git a/tests/test_examples.py b/tests/test_examples.py
index <HASH>..<HASH> 100644
--- a/tests/test_examples.py
+++ b/tests/test_examples.py
@@ -15,5 +15,5 @@ class TestExamples:
assert total_costs > 0.0
# Delete saved grid and results data
- edisgo_path = os.path.join(os.path.expanduse... | Hot fix 3 change directory name of directory that is deleted | py |
diff --git a/pyatv/scripts/atvscript.py b/pyatv/scripts/atvscript.py
index <HASH>..<HASH> 100644
--- a/pyatv/scripts/atvscript.py
+++ b/pyatv/scripts/atvscript.py
@@ -74,7 +74,7 @@ def output_playing(playing: Playing, app: App):
def _convert(field):
if isinstance(field, Enum):
return field.na... | atvscript: Treat empty strings as None | py |
diff --git a/src/rebar/tests/test_formgroup.py b/src/rebar/tests/test_formgroup.py
index <HASH>..<HASH> 100644
--- a/src/rebar/tests/test_formgroup.py
+++ b/src/rebar/tests/test_formgroup.py
@@ -91,8 +91,8 @@ class FormGroupTests(TestCase):
fg = FormGroupClass(data, instance=CallSentinel())
self.ass... | Fixing default values in form group unit tests. This could have caused a false pass. | py |
diff --git a/metaseq/filetype_adapters.py b/metaseq/filetype_adapters.py
index <HASH>..<HASH> 100644
--- a/metaseq/filetype_adapters.py
+++ b/metaseq/filetype_adapters.py
@@ -157,7 +157,7 @@ class BigWigAdapter(BaseAdapter):
interval.start,
interval.stop, bins)
if s is Non... | fix case where no results returned but expected to be binned | py |
diff --git a/pyrtl/inputoutput.py b/pyrtl/inputoutput.py
index <HASH>..<HASH> 100644
--- a/pyrtl/inputoutput.py
+++ b/pyrtl/inputoutput.py
@@ -311,6 +311,7 @@ def _to_verilog_header(file, block):
wires = block.wirevector_subset() - (inputs | outputs | registers)
for w in inputs:
print >> file, ' i... | Verilog output missing clk declaration. No further errors in simple combinational example. | py |
diff --git a/test/conftest.py b/test/conftest.py
index <HASH>..<HASH> 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -134,13 +134,13 @@ def simple():
@pytest.fixture()
-def s_subsys_all_off():
- return example_networks.s_subsys_all_off()
+def simple_subsys_all_off():
+ return example_networks.simple... | Fix some fixture names in `test/conftest.py` | py |
diff --git a/synapse/lib/cmdr.py b/synapse/lib/cmdr.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/cmdr.py
+++ b/synapse/lib/cmdr.py
@@ -11,7 +11,14 @@ s_mixins.addSynMixin('cmdr','synapse.cores.common.Cortex','synapse.cmds.cortex.A
def getItemCmdr(item, outp=None, **opts):
+ '''
+ Construct and return a c... | added doc strings. :D | py |
diff --git a/astrocats/catalog/catdict.py b/astrocats/catalog/catdict.py
index <HASH>..<HASH> 100644
--- a/astrocats/catalog/catdict.py
+++ b/astrocats/catalog/catdict.py
@@ -144,12 +144,12 @@ class CatDict(OrderedDict):
# Go over all expected parameters and check equality of each
for key in self._K... | ENH: optimize is_duplicate_of, which is a bottleneck currently | py |
diff --git a/salt/states/sqlite3.py b/salt/states/sqlite3.py
index <HASH>..<HASH> 100644
--- a/salt/states/sqlite3.py
+++ b/salt/states/sqlite3.py
@@ -5,7 +5,7 @@ Management of SQLite3 databases
:depends: - SQLite3 Python Module
:configuration: See :py:mod:`salt.modules.sqlite3` for setup instructions
-.. version... | sqlite is not found in <I> (#<I>) * sqlite is not found in <I> first appearance is boron * Update sqlite3.py change boron to <I>. as requested | py |
diff --git a/pandoc_eqnos.py b/pandoc_eqnos.py
index <HASH>..<HASH> 100644
--- a/pandoc_eqnos.py
+++ b/pandoc_eqnos.py
@@ -372,8 +372,9 @@ def process(meta):
if 'eqnos-eqref' in meta:
eqref = check_bool(get_meta(meta, 'eqnos-eqref'))
- if eqref: # Eqref and cleveref are mutually exclusive
- ... | Allow reference numbers to be set in brackets. | py |
diff --git a/holoviews/plotting/plot.py b/holoviews/plotting/plot.py
index <HASH>..<HASH> 100644
--- a/holoviews/plotting/plot.py
+++ b/holoviews/plotting/plot.py
@@ -13,7 +13,7 @@ import param
from ..core import OrderedDict
from ..core import util, traversal
-from ..core.element import Element
+from ..core.element... | Ensure 3d elements are initialized with 3D projection (#<I>) | py |
diff --git a/graphql_jwt/decorators.py b/graphql_jwt/decorators.py
index <HASH>..<HASH> 100644
--- a/graphql_jwt/decorators.py
+++ b/graphql_jwt/decorators.py
@@ -8,7 +8,7 @@ from graphql.execution.base import ResolveInfo
from promise import Promise, is_thenable
from . import exceptions, signals
-from .refresh_toke... | Added refresh token cookie to tokenAuth mutations | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,6 +43,7 @@ setup(
packages=find_packages(
exclude=["*.test", "*.test.*", "test.*", "test_*", "test", "test*"]
),
+ data_files=[('.', ['setup_requirements.txt'])],
classifiers=[
'Developm... | Adds setup_requirements to setup.py this is needed to correctly install from pypi | py |
diff --git a/netpyne/batch/optuna_parallel.py b/netpyne/batch/optuna_parallel.py
index <HASH>..<HASH> 100644
--- a/netpyne/batch/optuna_parallel.py
+++ b/netpyne/batch/optuna_parallel.py
@@ -127,7 +127,7 @@ def optunaOptim(self, pc):
# generate param values for optuna trial
candidate = []
for... | make param name a str to avoid err | py |
diff --git a/subliminal/plugins.py b/subliminal/plugins.py
index <HASH>..<HASH> 100644
--- a/subliminal/plugins.py
+++ b/subliminal/plugins.py
@@ -547,7 +547,7 @@ class Subtitulos(PluginBase):
u'Portuguese': 'pt', u'Español (Latinoamérica)': 'es', u'Español (España)': 'es', u'Español': 'es',
... | Do not accept Movie in Subtitulos | py |
diff --git a/girder/api/rest.py b/girder/api/rest.py
index <HASH>..<HASH> 100644
--- a/girder/api/rest.py
+++ b/girder/api/rest.py
@@ -170,7 +170,8 @@ def endpoint(fun):
logger.exception('500 Error')
cherrypy.response.status = 500
t, value, tb = sys.exc_info()
- val = {... | Fixed unicode exception in endpoint decorator | py |
diff --git a/scanpy/tools/_rank_genes_groups.py b/scanpy/tools/_rank_genes_groups.py
index <HASH>..<HASH> 100644
--- a/scanpy/tools/_rank_genes_groups.py
+++ b/scanpy/tools/_rank_genes_groups.py
@@ -13,6 +13,7 @@ from .. import logging as logg
from ..preprocessing._simple import _get_mean_var
from .._compat import Li... | add counts check (#<I>) | py |
diff --git a/pymod2pkg/__init__.py b/pymod2pkg/__init__.py
index <HASH>..<HASH> 100644
--- a/pymod2pkg/__init__.py
+++ b/pymod2pkg/__init__.py
@@ -140,7 +140,7 @@ SUSE_PKG_MAP = [
MultiRule(
# keep lists in alphabetic order
mods=['ceilometer', 'cinder', 'designate', 'glance',
- 'heat... | Add SUSE mapping for mistral We want to name it openstack-mistral Change-Id: I<I>bfa<I>c<I>a7d4e<I>cac<I>a9d<I> | py |
diff --git a/authapi/tests/test_teams.py b/authapi/tests/test_teams.py
index <HASH>..<HASH> 100644
--- a/authapi/tests/test_teams.py
+++ b/authapi/tests/test_teams.py
@@ -813,6 +813,16 @@ class TeamTests(AuthAPITestCase):
args=[team.id, permission.id]))
self.assertEqual(response.status_cod... | Add check for removing team:admin permission for wrong team | py |
diff --git a/hamster/reports.py b/hamster/reports.py
index <HASH>..<HASH> 100644
--- a/hamster/reports.py
+++ b/hamster/reports.py
@@ -18,6 +18,7 @@
# along with Project Hamster. If not, see <http://www.gnu.org/licenses/>.
from hamster import stuff
import os
+import datetime as dt
def simple(facts, start_date, e... | Added missing datetime's import to fix an issue with dt.date.today() on simple report svn path=/trunk/; revision=<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,10 +2,10 @@ from distutils.core import setup
setup(
name='zxcvbn-python',
- version='4.4.13',
+ version='4.4.14',
packages=['zxcvbn'],
url='https://github.com/dwolfhub/zxcvbn-python',
- download_u... | upgrading to version <I> to update description on pypi | py |
diff --git a/biggus/__init__.py b/biggus/__init__.py
index <HASH>..<HASH> 100644
--- a/biggus/__init__.py
+++ b/biggus/__init__.py
@@ -696,22 +696,23 @@ def _process_chunks(array, chunk_handler):
# chunk_size = 1000 => 63s
size = array.shape[0]
chunk_size = 10
- queue = Queue.Queue(maxsize=3)
-
- ... | Switch to queue pattern from std lib. | py |
diff --git a/redash_client/dashboards/StatisticalDashboard.py b/redash_client/dashboards/StatisticalDashboard.py
index <HASH>..<HASH> 100644
--- a/redash_client/dashboards/StatisticalDashboard.py
+++ b/redash_client/dashboards/StatisticalDashboard.py
@@ -106,9 +106,9 @@ class StatisticalDashboard(ActivityStreamExperime... | Check for substring matches rather than absolute string matches for experiment vs control labels. | py |
diff --git a/qiskit/_quantumprogram.py b/qiskit/_quantumprogram.py
index <HASH>..<HASH> 100644
--- a/qiskit/_quantumprogram.py
+++ b/qiskit/_quantumprogram.py
@@ -239,7 +239,7 @@ class QuantumProgram(object):
if not self.__api:
return {"status": "Error", "result": "This backend doesn't exist or yo... | available_devices -> available_backends in 1 place. (#<I>) | py |
diff --git a/src/rinoh/attribute.py b/src/rinoh/attribute.py
index <HASH>..<HASH> 100644
--- a/src/rinoh/attribute.py
+++ b/src/rinoh/attribute.py
@@ -93,12 +93,12 @@ class OptionSet(AttributeType, metaclass=OptionSetMeta):
class Attribute(NamedDescriptor):
"""Descriptor used to describe a style attribute"""
- ... | Attributes never take a name on instantiation | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -21,6 +21,28 @@ sys.path.insert(0, os.path.abspath('..'))
import tldap
import docs.settings
+class Mock(object):
+ def __init__(self, *args, **kwargs):
+ pass
+
+ def __call__(self, *args, **kw... | Kludge for readthedocs. python-ldap won't build on readthedocs as it is missing the ldap header files. | py |
diff --git a/polyaxon/projects/models.py b/polyaxon/projects/models.py
index <HASH>..<HASH> 100644
--- a/polyaxon/projects/models.py
+++ b/polyaxon/projects/models.py
@@ -41,6 +41,10 @@ class Project(DiffModel, DescribableModel):
return hasattr(self, 'repo')
@property
+ def has_description(self):
+ ... | Update project model with property has_description | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.