diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/anytemplate/cli.py b/anytemplate/cli.py
index <HASH>..<HASH> 100644
--- a/anytemplate/cli.py
+++ b/anytemplate/cli.py
@@ -93,6 +93,7 @@ def main(argv=None):
return
tmpl = args[0]
+ ctx = {}
if options.contexts:
LOGGER.info("Loading contexts: %r ...", options.contexts[:3]) | fix: initialize ctx even if options.cotentxs was empty | py |
diff --git a/pyani/pyani_graphics/__init__.py b/pyani/pyani_graphics/__init__.py
index <HASH>..<HASH> 100644
--- a/pyani/pyani_graphics/__init__.py
+++ b/pyani/pyani_graphics/__init__.py
@@ -47,7 +47,6 @@
# generating-a-png-with-matplotlib-when-display-is-undefined
# This needs to be done before importing ... | fix conflicts for rebase to master This was essentially an import issue. | py |
diff --git a/python/redisrpc.py b/python/redisrpc.py
index <HASH>..<HASH> 100644
--- a/python/redisrpc.py
+++ b/python/redisrpc.py
@@ -71,10 +71,9 @@ class FunctionCall(dict):
class RedisRPCClient(object):
"""Calls remote functions using Redis as a message queue."""
- def __init__(self, redis_server, input_q... | Removed functionality that allowed run-time type checking on the client. That was not the Python way. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -38,6 +38,7 @@ setup(
'mwoauth',
'oauthlib',
'pyshex',
+ 'pyshexc',
'sparql_slurper',
'ShExJSG',
'jsonasobj', | added the requirement for shexc to setup.py, since adding it to requirements does not fix it | py |
diff --git a/wal_e/blobstore/s3/s3_util.py b/wal_e/blobstore/s3/s3_util.py
index <HASH>..<HASH> 100644
--- a/wal_e/blobstore/s3/s3_util.py
+++ b/wal_e/blobstore/s3/s3_util.py
@@ -125,7 +125,7 @@ def do_lzop_get(creds, url, path, decrypt, do_retry=True):
# Do not retry if the key not present, th... | Fix excessive logging by wal-fetch when standby_mode=on | py |
diff --git a/tests/integration_test.py b/tests/integration_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -1418,7 +1418,6 @@ class TestBuildFromStringIO(BaseTestCase):
class TestBuildWithDockerignore(Cleanup, BaseTestCase):
- @pytest.mark.skipif(True, reas... | Test has been fixed, remove skip decorator | py |
diff --git a/pyprophet/classifiers.py b/pyprophet/classifiers.py
index <HASH>..<HASH> 100644
--- a/pyprophet/classifiers.py
+++ b/pyprophet/classifiers.py
@@ -161,6 +161,8 @@ class XGBLearner(AbstractLearner):
num_round = 10
classifier = xgb.train(param, dtrain, num_round)
+ print(classifier.... | [FEATURE] Patches | py |
diff --git a/placebo.py b/placebo.py
index <HASH>..<HASH> 100644
--- a/placebo.py
+++ b/placebo.py
@@ -56,11 +56,11 @@ class Placebo(object):
self.client.meta.events.register(event, self._record_data)
def save(self, path):
- with open(path, 'wb') as fp:
+ with open(path, 'w') as fp:
... | Removed binary mode from load() and save() methods | py |
diff --git a/openquake/risklib/scientific.py b/openquake/risklib/scientific.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/scientific.py
+++ b/openquake/risklib/scientific.py
@@ -381,15 +381,15 @@ class VulnerabilityFunctionWithPMF(object):
:param str vf_id: vulnerability function ID
:param str imt: I... | Fixed a docstring in VulnerabilityFunctionWithPMF | py |
diff --git a/deploy-cluster-aws/fabfile.py b/deploy-cluster-aws/fabfile.py
index <HASH>..<HASH> 100644
--- a/deploy-cluster-aws/fabfile.py
+++ b/deploy-cluster-aws/fabfile.py
@@ -156,7 +156,12 @@ def prep_rethinkdb_storage(USING_EBS):
@parallel
def install_rethinkdb():
"""Install RethinkDB"""
- sudo("echo 'de... | In fabfile.py, updated command to install RethinkDB | py |
diff --git a/backend/reusable_pool.py b/backend/reusable_pool.py
index <HASH>..<HASH> 100644
--- a/backend/reusable_pool.py
+++ b/backend/reusable_pool.py
@@ -24,8 +24,20 @@ def get_reusable_pool(*args, **kwargs):
return get_reusable_pool(*args, **kwargs)
else:
_pool.resize(kwargs.get('processes'... | FIX more robust pool resize | py |
diff --git a/tasks/vendoring/__init__.py b/tasks/vendoring/__init__.py
index <HASH>..<HASH> 100644
--- a/tasks/vendoring/__init__.py
+++ b/tasks/vendoring/__init__.py
@@ -678,7 +678,15 @@ def unpin_and_copy_requirements(ctx, requirement_file, name="requirements.txt"):
@invoke.task
-def unpin_and_update_vendored(ct... | Restore skeleton for update_safety task Might work on this later... | py |
diff --git a/cslbot/helpers/control.py b/cslbot/helpers/control.py
index <HASH>..<HASH> 100644
--- a/cslbot/helpers/control.py
+++ b/cslbot/helpers/control.py
@@ -17,7 +17,6 @@
import logging
import re
-import sys
from . import arguments, orm, registry, web
@@ -37,8 +36,8 @@ def toggle_logging(level):
def tog... | fix ctrlchan more | py |
diff --git a/esgfpid/utils/logutils.py b/esgfpid/utils/logutils.py
index <HASH>..<HASH> 100644
--- a/esgfpid/utils/logutils.py
+++ b/esgfpid/utils/logutils.py
@@ -27,7 +27,8 @@ def logdebug(logger, msg, *args, **kwargs):
logger.debug(msg, *args, **kwargs)
def _is_show(kwargs):
- show_this_message = 'show... | Bugfix in logging: No more error in logging if show=False. | py |
diff --git a/astroid/node_classes.py b/astroid/node_classes.py
index <HASH>..<HASH> 100644
--- a/astroid/node_classes.py
+++ b/astroid/node_classes.py
@@ -686,16 +686,16 @@ class NodeNG:
self.parent.set_local(name, stmt)
def nodes_of_class(self, klass, skip_klass=None):
- """Get the nodes (includ... | Update method docstring (#<I>) | py |
diff --git a/synapse/tests/test_lib_base.py b/synapse/tests/test_lib_base.py
index <HASH>..<HASH> 100644
--- a/synapse/tests/test_lib_base.py
+++ b/synapse/tests/test_lib_base.py
@@ -21,24 +21,26 @@ def block_processing(evt1, evt2):
evt1 (multiprocessing.Event): event to twiddle
evt2 (multiprocessing.... | Make sigint test more reliable | py |
diff --git a/tools/debugging/stress_test_transfers.py b/tools/debugging/stress_test_transfers.py
index <HASH>..<HASH> 100755
--- a/tools/debugging/stress_test_transfers.py
+++ b/tools/debugging/stress_test_transfers.py
@@ -580,7 +580,7 @@ def run_stress_test(
pool_size=concurrency,
)
- ... | stresstest: bugfix, wait ofr the balance The wait must be done on all the nodes, since the balance for the mediators is also used during the test. | py |
diff --git a/cherrypy/lib/profiler.py b/cherrypy/lib/profiler.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/profiler.py
+++ b/cherrypy/lib/profiler.py
@@ -41,7 +41,7 @@ def new_func_strip_path(func_name):
import pstats
pstats.func_strip_path = new_func_strip_path
-import hotshot
+import profile
import os, os.p... | Changed profiler from hotshot to profile module. This allows Py<I> users to profile C calls. | py |
diff --git a/glue/segments.py b/glue/segments.py
index <HASH>..<HASH> 100644
--- a/glue/segments.py
+++ b/glue/segments.py
@@ -701,6 +701,7 @@ class segmentlistdict(dict):
new = self.__class__()
for key, value in self.iteritems():
new[key] = copy(value)
+ dict.update(new.offsets, self.offsets)
return new
... | In segmentlistdict.copy() method, be sure to copy the offset values too. | py |
diff --git a/release/e2e.py b/release/e2e.py
index <HASH>..<HASH> 100644
--- a/release/e2e.py
+++ b/release/e2e.py
@@ -1556,6 +1556,8 @@ def run_test_config(
app_config["env_vars"]["MATCH_AUTOSCALER_AND_RAY_IMAGES"] = "1"
app_config["env_vars"]["RAY_bootstrap_with_gcs"] = "1"
app_config["env_vars"]["RAY_... | [Usage Stats] Usage stats only enabled on nightly test infra (#<I>) This PR **enables the usage stats only on the release test infrastructure** (large scale tests Ray runs on a daily basis in a private infra). Note it is still disabled by default in Ray. | py |
diff --git a/src/pyiso/dr.py b/src/pyiso/dr.py
index <HASH>..<HASH> 100644
--- a/src/pyiso/dr.py
+++ b/src/pyiso/dr.py
@@ -513,14 +513,14 @@ class DirectoryRecord(object):
# that here.
vd.add_to_space_size(vd.logical_block_size())
- def remove_child(self, child, index, pvd):
+ def remo... | Rename pvd to vd. | py |
diff --git a/tests/text_quotations_test.py b/tests/text_quotations_test.py
index <HASH>..<HASH> 100644
--- a/tests/text_quotations_test.py
+++ b/tests/text_quotations_test.py
@@ -713,7 +713,7 @@ def test_split_email():
Hello.
- On 24th February 2016 at 09.32am, Conal Wrote:
+ On 24th February 201... | fixed expected markers and incorrect condensed header not matching regex | py |
diff --git a/tests/settings.py b/tests/settings.py
index <HASH>..<HASH> 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -49,11 +49,16 @@ CELERY_QUEUES = {"testcelery": {"binding_key": "testcelery"}}
MANAGERS = ADMINS
DATABASE_ENGINE = 'sqlite3'
+DATABASE_HOST = 'djcelery-test-db'
DATABASE_USER = ''
DATA... | Add DATABASES to test settings | py |
diff --git a/salt/states/pkg.py b/salt/states/pkg.py
index <HASH>..<HASH> 100644
--- a/salt/states/pkg.py
+++ b/salt/states/pkg.py
@@ -86,6 +86,7 @@ def removed(name):
'changes': changes,
'result': False,
'comment': 'Package ' + name + ' failed to remove'}
+ # F... | found another piece of unrechable code | py |
diff --git a/rest_framework_json_api/utils.py b/rest_framework_json_api/utils.py
index <HASH>..<HASH> 100644
--- a/rest_framework_json_api/utils.py
+++ b/rest_framework_json_api/utils.py
@@ -227,7 +227,7 @@ def extract_attributes(fields, resource):
# Skip read_only attribute fields when the resource is non-e... | Fix issue when serializer is an HyperlinkedModelSerializer Should prevent read-only fields from being hidden | py |
diff --git a/distributed_mds.py b/distributed_mds.py
index <HASH>..<HASH> 100644
--- a/distributed_mds.py
+++ b/distributed_mds.py
@@ -45,7 +45,9 @@ def reconstruct_dwmds(edm_measured, X, W, r=None, n=None, X_bar=None, max_iter=1
costs = []
# don't have to ignore i=j, because W[i,i] is zero.
a = np.sum(W... | Fixed case where no r is given. | py |
diff --git a/master/buildbot/test/unit/test_config.py b/master/buildbot/test/unit/test_config.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_config.py
+++ b/master/buildbot/test/unit/test_config.py
@@ -237,7 +237,7 @@ class MasterConfig(ConfigErrorsMixin, dirs.DirsMixin, unittest.TestCase):
de... | Modify test case to check for syntax error Change the error to be checked in testfile when a syntax error is encountered in the master config file | py |
diff --git a/gcloud/credentials.py b/gcloud/credentials.py
index <HASH>..<HASH> 100644
--- a/gcloud/credentials.py
+++ b/gcloud/credentials.py
@@ -26,10 +26,12 @@ def get_credentials():
which uses this method under the hood.
Checks environment in order of precedence:
- - Google App Engine (production a... | Using bSphinx ulleted list in credentials docstring. | py |
diff --git a/setup/run_once.py b/setup/run_once.py
index <HASH>..<HASH> 100644
--- a/setup/run_once.py
+++ b/setup/run_once.py
@@ -36,8 +36,7 @@ def controller_create():
return r.db_create("Controller").run()
def controller_plugins_create():
- return r.db("Controller").table_create("Plugins",
- primary... | deprecate controller code in query package | py |
diff --git a/py/examples/scripts/H2OContextInitDemo.py b/py/examples/scripts/H2OContextInitDemo.py
index <HASH>..<HASH> 100644
--- a/py/examples/scripts/H2OContextInitDemo.py
+++ b/py/examples/scripts/H2OContextInitDemo.py
@@ -9,5 +9,5 @@ spark = SparkSession.builder.appName("App name").getOrCreate()
hc = H2OContext.g... | [SW-<I>] Deprecated call in H2OContextInitDemo (#<I>) | py |
diff --git a/client/speaker.py b/client/speaker.py
index <HASH>..<HASH> 100644
--- a/client/speaker.py
+++ b/client/speaker.py
@@ -235,3 +235,15 @@ def newSpeaker():
if not engine.is_available():
raise ValueError("TTS engine '%s' is not available (due to missing dependencies, missing dependencies,... | Added __main__ testing code to client/speaker.py | py |
diff --git a/master/buildbot/test/unit/test_process_builder.py b/master/buildbot/test/unit/test_process_builder.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_process_builder.py
+++ b/master/buildbot/test/unit/test_process_builder.py
@@ -51,7 +51,7 @@ class BuilderMixin(object):
"""Set up ... | rename "sbdir" to "wbdir" ("worker build directory") in tests constants | py |
diff --git a/eqcorrscan/utils/plotting.py b/eqcorrscan/utils/plotting.py
index <HASH>..<HASH> 100644
--- a/eqcorrscan/utils/plotting.py
+++ b/eqcorrscan/utils/plotting.py
@@ -1549,12 +1549,14 @@ def plot_repicked(template, picks, det_stream, **kwargs):
axis.set_xlim([0, max(lengths)])
if len(template) > 1:
... | legend's axis selected proper to number of axes in plot_repicked | py |
diff --git a/optlang/interface.py b/optlang/interface.py
index <HASH>..<HASH> 100644
--- a/optlang/interface.py
+++ b/optlang/interface.py
@@ -232,8 +232,8 @@ class Variable(sympy.Symbol):
self.__dict__ = state
def _round_primal_to_bounds(self, primal, tolerance=1e-5):
- if (primal >= self.lb or ... | Fix primal rounding if bounds are None. | py |
diff --git a/torchtext/data.py b/torchtext/data.py
index <HASH>..<HASH> 100644
--- a/torchtext/data.py
+++ b/torchtext/data.py
@@ -86,8 +86,8 @@ class Field(object):
answer in a QA dataset), then they will have a shared vocabulary.
Attributes:
- sequential: Whether the datatype represents sequential ... | Add missing doc for include_lengths Field param, clarify sequential Field param | py |
diff --git a/appinst/platforms/win32_common.py b/appinst/platforms/win32_common.py
index <HASH>..<HASH> 100644
--- a/appinst/platforms/win32_common.py
+++ b/appinst/platforms/win32_common.py
@@ -313,7 +313,7 @@ def remove_from_reg_path( remove_dir ) :
for path in old_path.split( ';' ):
if new_path == "":
... | Fixed a bug which prevented the Path in the Windows registry from ever being modified during an uninstall. | py |
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/externalshell/sitecustomize.py
+++ b/spyderlib/widgets/externalshell/sitecustomize.py
@@ -8,6 +8,12 @@ import pdb
import bdb
+# sys.argv can be mis... | Python 3 compatibility: If IPython <I> is installed, we are unable to start *any* console (external or IPython) - The problem is IPython <I> calls sys.argv during init, which fails when we are trying to set IPYTHON_QT_MODULE in baseconfig, which in turn crashes *any* console. - See <URL> | py |
diff --git a/projects/models.py b/projects/models.py
index <HASH>..<HASH> 100644
--- a/projects/models.py
+++ b/projects/models.py
@@ -40,6 +40,9 @@ class Project(TrackingFields):
def __unicode__(self):
return '%s' % self.name
+ def get_stages(self):
+ return Stage.active_records.filter(projec... | get stages makes use of the model manager | py |
diff --git a/plaso/engine/profilers.py b/plaso/engine/profilers.py
index <HASH>..<HASH> 100644
--- a/plaso/engine/profilers.py
+++ b/plaso/engine/profilers.py
@@ -26,14 +26,14 @@ class CPUTimeMeasurement(object):
def SampleStart(self):
"""Starts measuring the CPU time."""
- self._start_cpu_time = time.cloc... | Replaced deprecated time.clock() by time.perf_counter() #<I> (#<I>) | py |
diff --git a/tensorflow_datasets/image/coil100.py b/tensorflow_datasets/image/coil100.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/image/coil100.py
+++ b/tensorflow_datasets/image/coil100.py
@@ -61,6 +61,7 @@ class Coil100(tfds.core.GeneratorBasedBuilder):
"image": tfds.features.Image(shape=_IM... | Add angle to store raw_angles | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,5 +21,6 @@ setup(
scripts=[
'bin/udiskie',
'bin/udiskie-umount',
+ 'bin/udiskie-mount'
],
) | Include udiskie-mount in binary distribution | py |
diff --git a/gnsq/reader.py b/gnsq/reader.py
index <HASH>..<HASH> 100644
--- a/gnsq/reader.py
+++ b/gnsq/reader.py
@@ -209,10 +209,7 @@ class Reader(object):
def complete_backoff(self):
self.state = RUNNING
self.logger.info('backoff complete, resuming normal operation')
-
- count = self.co... | Use redistribute ready when finishing back off. | py |
diff --git a/salt/modules/glusterfs.py b/salt/modules/glusterfs.py
index <HASH>..<HASH> 100644
--- a/salt/modules/glusterfs.py
+++ b/salt/modules/glusterfs.py
@@ -8,14 +8,11 @@ from __future__ import absolute_import
import logging
# Import 3rd-party libs
-# pylint: disable=import-error
-from salt.ext.six.moves impo... | Join imports in a single line | py |
diff --git a/carousel/core/data_sources.py b/carousel/core/data_sources.py
index <HASH>..<HASH> 100644
--- a/carousel/core/data_sources.py
+++ b/carousel/core/data_sources.py
@@ -144,6 +144,7 @@ class DataSourceBase(CommonBase):
# pop the data reader so it can be overwritten
reader = attr.pop(mcs._rea... | fixes #<I> create common Meta class for options * in `DataSourceBase` if `meta` attr exists, pop it before reading in params, then add it as `_meta` to the new class * in `DataSource` if the new class has `_meta`, then pass it to the reader as the `meta` keyword argument | py |
diff --git a/git/test/test_remote.py b/git/test/test_remote.py
index <HASH>..<HASH> 100644
--- a/git/test/test_remote.py
+++ b/git/test/test_remote.py
@@ -613,7 +613,7 @@ class TestRemote(TestBase):
remote.set_url(test2, delete=True)
self.assertEqual(list(remote.urls), [test1, test3])
# Testi... | fix(remote): test Should have paid more attention to the test-failure before pushing the fix. | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -1420,7 +1420,7 @@ class Minion(MinionBase):
# Do not exit if a pillar refresh fails.
log.error('Pillar data could not be refreshed. '
'One or more maste... | Re-auth after pillar fail | py |
diff --git a/autopep8.py b/autopep8.py
index <HASH>..<HASH> 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -3470,8 +3470,8 @@ def read_config(args, parser):
(parent, tail) = os.path.split(parent)
defaults = {}
- option_list = dict([(o.dest, o.type or type(o.default))
- ... | Rewrite unnecessary list comprehension as dict comprehension | py |
diff --git a/gns3converter/main.py b/gns3converter/main.py
index <HASH>..<HASH> 100644
--- a/gns3converter/main.py
+++ b/gns3converter/main.py
@@ -13,7 +13,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import json
-impo... | Don't add the date to the filename | py |
diff --git a/salt/daemons/masterapi.py b/salt/daemons/masterapi.py
index <HASH>..<HASH> 100644
--- a/salt/daemons/masterapi.py
+++ b/salt/daemons/masterapi.py
@@ -169,6 +169,7 @@ class RemoteFuncs(object):
def __init__(self, opts):
self.opts = opts
self.event = salt.utils.event.get_event(
+ ... | Pass the transport type to the event creation | py |
diff --git a/test/common/workload_common.py b/test/common/workload_common.py
index <HASH>..<HASH> 100644
--- a/test/common/workload_common.py
+++ b/test/common/workload_common.py
@@ -56,7 +56,7 @@ class MemcacheConnection(object):
# libmemcached is annoying: they changed the "poll timeout" behavior name in... | Changed the poll timeout for pylibmc to half a second. | py |
diff --git a/invocations/packaging/release.py b/invocations/packaging/release.py
index <HASH>..<HASH> 100644
--- a/invocations/packaging/release.py
+++ b/invocations/packaging/release.py
@@ -651,9 +651,11 @@ def publish(c, sdist=True, wheel=False, index=None, sign=False, dry_run=False,
sign = config.get('sign', si... | Actually gotta skip description check on <I> _and_ <I> :( | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,8 +9,7 @@ def configuration(parent_package='',top_path=None):
config = Configuration('quaternion',parent_package,top_path)
config.add_extension('numpy_quaternion',
['quaternion.c','numpy_... | Try removing fast-math for Travis | py |
diff --git a/gns3server/web/web_server.py b/gns3server/web/web_server.py
index <HASH>..<HASH> 100644
--- a/gns3server/web/web_server.py
+++ b/gns3server/web/web_server.py
@@ -211,6 +211,7 @@ class WebServer:
# Allow CORS for this domains
cors = aiohttp_cors.setup(app, defaults={
# Default... | Add <I>:<I> in allowed CORS | py |
diff --git a/openquake/engine/export/hazard.py b/openquake/engine/export/hazard.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/export/hazard.py
+++ b/openquake/engine/export/hazard.py
@@ -104,6 +104,10 @@ def _get_result_export_path(calc_id, target_dir, result):
core.makedirs(directory)
if output_typ... | export/hazard: Include "-poe_N.N-" in filenames for UHS and hazard maps. Former-commit-id: <I>d0e5bfb<I>fe6ba6dbed<I>eb9b<I>b2d1 | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -94,6 +94,7 @@ class ResponseFuture(object):
if isinstance(response, ResultMessage):
if response.kind == ResultMessage.KIND_SET_KEYSPACE:
s... | Still set final result to None when setting keyspaces | py |
diff --git a/html5lib/treebuilders/etree_lxml.py b/html5lib/treebuilders/etree_lxml.py
index <HASH>..<HASH> 100644
--- a/html5lib/treebuilders/etree_lxml.py
+++ b/html5lib/treebuilders/etree_lxml.py
@@ -189,7 +189,7 @@ class TreeBuilder(_base.TreeBuilder):
if value is None:
value =... | Silence a buggily output non-parent-init-called | py |
diff --git a/conf.py b/conf.py
index <HASH>..<HASH> 100644
--- a/conf.py
+++ b/conf.py
@@ -31,9 +31,13 @@ sys.path.insert(0, os.path.abspath('.'))
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = ['sphinx... | conditionally add restbuilder for readthedocs support | py |
diff --git a/tensorflow_datasets/text/c4_test.py b/tensorflow_datasets/text/c4_test.py
index <HASH>..<HASH> 100644
--- a/tensorflow_datasets/text/c4_test.py
+++ b/tensorflow_datasets/text/c4_test.py
@@ -46,7 +46,6 @@ class C4Test(testing.DatasetBuilderTestCase):
"train": 1,
"validation": 1,
}
- SKIP_C... | Remove SKIP_CHECKSUMS from c4 PiperOrigin-RevId: <I> | py |
diff --git a/plenum/common/ledger_manager.py b/plenum/common/ledger_manager.py
index <HASH>..<HASH> 100644
--- a/plenum/common/ledger_manager.py
+++ b/plenum/common/ledger_manager.py
@@ -91,11 +91,14 @@ class LedgerManager(HasActionQueue):
if ledgerInfo.consistencyProofsTimer is None:
return
+ ... | [INDY-<I>] Try to decrease testing time (#<I>) * [INDY-<I>] Added check, that proofs already received | py |
diff --git a/cpuinfo/cpuinfo.py b/cpuinfo/cpuinfo.py
index <HASH>..<HASH> 100644
--- a/cpuinfo/cpuinfo.py
+++ b/cpuinfo/cpuinfo.py
@@ -568,6 +568,7 @@ class CPUID(object):
'extended_family' : extended_family
}
+ # https://en.wikipedia.org/wiki/CPUID#EAX.3D80000000h:_Get_Highest_Extended_Function_Supported
de... | Added more links to CPUID documentation | py |
diff --git a/bolt/mixins/blocked.py b/bolt/mixins/blocked.py
index <HASH>..<HASH> 100644
--- a/bolt/mixins/blocked.py
+++ b/bolt/mixins/blocked.py
@@ -5,12 +5,40 @@ class Blockable(object):
"""
def blocked(self, block_size=None):
+ """
+ The primary entry point for the BlockedBoltArray interfa... | Added some better docstrings to Blockable | py |
diff --git a/falafel/mappers/lsof.py b/falafel/mappers/lsof.py
index <HASH>..<HASH> 100644
--- a/falafel/mappers/lsof.py
+++ b/falafel/mappers/lsof.py
@@ -1,4 +1,5 @@
from falafel.core.plugins import mapper
+from falafel.core import MapperOutput
FILTER_LIST = ['COMMAND', 'libssl', 'libcrypto', 'libssl.so', 'multipa... | Convert lsof mapper to class | py |
diff --git a/mcc/colors.py b/mcc/colors.py
index <HASH>..<HASH> 100644
--- a/mcc/colors.py
+++ b/mcc/colors.py
@@ -58,10 +58,10 @@ require replacing all occurences of the color var being changed.
"""
-C_STAT = {"running": C_GOOD, "start": C_GOOD, "ssh": C_NORM,
- "pending": C_WARN, "starting": C_WARN, "st... | Add additional state-colors supported by lincloud | py |
diff --git a/tests/jenkins.py b/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins.py
+++ b/tests/jenkins.py
@@ -476,7 +476,6 @@ def run(opts):
except ValueError:
print('Failed to load any JSON from {0!r}'.format(stdout.strip()))
- '''
if opts.cloud_only:
# Run Clo... | Uncomment test run code I was unaware that the tests run using a hard-coded jenkins.py, so commenting it out as I did has no effect. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ except ImportError:
setup(
name='Flask-Fixtures',
- version='0.3.4',
+ version='0.3.5',
url='https://github.com/croach/Flask-Fixtures',
license='MIT License',
author='Christopher Roa... | Bumped the version number for the Issue #<I> fix | py |
diff --git a/examples/mini_example.py b/examples/mini_example.py
index <HASH>..<HASH> 100644
--- a/examples/mini_example.py
+++ b/examples/mini_example.py
@@ -51,12 +51,15 @@ class Search(sentaku.Element):
def search_browser(self, text):
"""do a slow search via the website and return the first match"""
self.... | Fix mini example to work with latest changes to xpaths | py |
diff --git a/green/test/test_windows.py b/green/test/test_windows.py
index <HASH>..<HASH> 100644
--- a/green/test/test_windows.py
+++ b/green/test/test_windows.py
@@ -1,7 +1,10 @@
import platform
+import sys
import unittest
+from green.output import GreenStream
+
class TestWindows(unittest.TestCase):
@@ -15,... | Implemented the test that checks to make sure that GreenStream got wrapped on windows | py |
diff --git a/pdf2image/pdf2image.py b/pdf2image/pdf2image.py
index <HASH>..<HASH> 100644
--- a/pdf2image/pdf2image.py
+++ b/pdf2image/pdf2image.py
@@ -78,7 +78,7 @@ def convert_from_path(pdf_path, dpi=200, output_folder=None, first_page=None, la
# Get the number of pages the thread will be processing
... | Use out_file for building command. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,9 +25,9 @@ setup(
'graphviz~=0.7',
],
extras_require={
- 'dev': ['flake8', 'pep8-naming', 'wheel', 'twine'],
- 'test': ['pytest>=4.6,!=3.10.0', 'pytest-cov'],
- 'docs': ['sphinx>=1.7... | upgrade docs extra for sphinx><I>, add tox as dev extra | py |
diff --git a/owslib/wms.py b/owslib/wms.py
index <HASH>..<HASH> 100644
--- a/owslib/wms.py
+++ b/owslib/wms.py
@@ -18,6 +18,7 @@ Currently supports only version 1.1.1 of the WMS protocol.
import cgi
import urllib2
from urllib import urlencode
+import warnings
from etree import etree
from .util import openURL, test... | use child layers for WMS duplicates (#<I>) | py |
diff --git a/analyzers/Abuse_Finder/abusefinder.py b/analyzers/Abuse_Finder/abusefinder.py
index <HASH>..<HASH> 100755
--- a/analyzers/Abuse_Finder/abusefinder.py
+++ b/analyzers/Abuse_Finder/abusefinder.py
@@ -24,6 +24,8 @@ class AbuseFinderAnalyzer(Analyzer):
for abuse in raw['abuse_finder']['abuse']:
... | #<I> #<I> fix the summary method and return {} if no taxonomy is available | py |
diff --git a/troposphere/batch.py b/troposphere/batch.py
index <HASH>..<HASH> 100644
--- a/troposphere/batch.py
+++ b/troposphere/batch.py
@@ -124,7 +124,7 @@ class JobDefinition(AWSObject):
props = {
'ContainerProperties': (ContainerProperties, True),
'JobDefinitionName': (basestring, False),
- ... | Fix Parameters on AWS::Batch::JobDefinition (#<I>) Parameters is not a required property as per <URL> | py |
diff --git a/spyder/widgets/editor.py b/spyder/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/editor.py
+++ b/spyder/widgets/editor.py
@@ -338,7 +338,7 @@ class TabSwitcherWidget(QListWidget):
def __init__(self, parent, stack_history, tabs):
QListWidget.__init__(self, parent)
- ... | Tab switcher : hopefully OK with tiling and standard WMs. | py |
diff --git a/LiSE/LiSE/proxy.py b/LiSE/LiSE/proxy.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/proxy.py
+++ b/LiSE/LiSE/proxy.py
@@ -1411,10 +1411,10 @@ class StringStoreProxy(MutableMapping):
def lang_items(self, lang=None):
if lang is None or lang == self.language:
yield from self._cache.... | Make EngineProxy cache extant characters | py |
diff --git a/pgmpy/factors/CPD.py b/pgmpy/factors/CPD.py
index <HASH>..<HASH> 100644
--- a/pgmpy/factors/CPD.py
+++ b/pgmpy/factors/CPD.py
@@ -218,11 +218,11 @@ class TabularCPD(Factor):
evidence_card = self.cardinality[1:]
if evidence:
- evidence_card.reverse()
- evidence_card... | fixing _repr_html_ method for the CPD class Cleaning up for code quailty Cleaning up | py |
diff --git a/openfisca_core/taxbenefitsystems.py b/openfisca_core/taxbenefitsystems.py
index <HASH>..<HASH> 100644
--- a/openfisca_core/taxbenefitsystems.py
+++ b/openfisca_core/taxbenefitsystems.py
@@ -8,6 +8,7 @@ from os import path
from imp import find_module, load_module
import importlib
import logging
+from set... | Enable loading extension from a package directory | py |
diff --git a/salt/states/zpool.py b/salt/states/zpool.py
index <HASH>..<HASH> 100644
--- a/salt/states/zpool.py
+++ b/salt/states/zpool.py
@@ -293,12 +293,13 @@ def present(name, properties=None, filesystem_properties=None, layout=None, conf
# don't do anything because this is a test
if __opts__['test']:
- ... | Fix wrong output in test=true run State always output changes in test=true run | py |
diff --git a/grimoire_elk/utils.py b/grimoire_elk/utils.py
index <HASH>..<HASH> 100755
--- a/grimoire_elk/utils.py
+++ b/grimoire_elk/utils.py
@@ -235,7 +235,7 @@ def get_connectors():
} # Will come from Registry
-def get_elastic(url, es_index, clean=None, backend=None):
+def get_elastic(url, es_index... | [utils] Handle alias management This code provides support to handle aliases | py |
diff --git a/nodeconductor/testdata/management/commands/createsampledata.py b/nodeconductor/testdata/management/commands/createsampledata.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/testdata/management/commands/createsampledata.py
+++ b/nodeconductor/testdata/management/commands/createsampledata.py
@@ -186,13 +1... | Create users with full name (saas-<I>) | py |
diff --git a/build/zip.py b/build/zip.py
index <HASH>..<HASH> 100644
--- a/build/zip.py
+++ b/build/zip.py
@@ -5,7 +5,9 @@ import sys
import zipfile
EXTENSIONS_TO_SKIP = [
- '.pdb'
+ '.pdb',
+ '.mojom.js',
+ '.mojom-lite.js',
]
PATHS_TO_SKIP = [ | fix: don't package mojom{,-lite}.js files in dist.zip (#<I>) | py |
diff --git a/bucky/names.py b/bucky/names.py
index <HASH>..<HASH> 100644
--- a/bucky/names.py
+++ b/bucky/names.py
@@ -58,15 +58,15 @@ def strip_duplicates(parts):
def statname(host, nameparts):
parts = []
- if self.prefix:
- parts.append(self.prefix)
+ if cfg.name_prefix:
+ parts.append(cfg... | Fix NameErrors after refactoring names.statname wasn't properly refactored to use bucky.cfg after moving it from CollectDConverter. | py |
diff --git a/_pytest/_code/code.py b/_pytest/_code/code.py
index <HASH>..<HASH> 100644
--- a/_pytest/_code/code.py
+++ b/_pytest/_code/code.py
@@ -294,11 +294,11 @@ class Traceback(list):
def filter(self, fn=lambda x: not x.ishidden()):
""" return a Traceback instance with certain items removed
- ... | Fix TracebackItem documentation in pytest.code The TracebackItem class does not exist, but it seems the docstrings refer to TracebackEntry. | py |
diff --git a/kconfiglib.py b/kconfiglib.py
index <HASH>..<HASH> 100644
--- a/kconfiglib.py
+++ b/kconfiglib.py
@@ -1771,6 +1771,9 @@ class Kconfig(object):
break
if not line:
+ self._warn("{} has 'help' but empty help text"
+ .... | Warn if help text is empty Personal pet peeve. Should add a warning to the C implementation too. | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -193,7 +193,7 @@ project = 'Salt'
copyright = '2016 SaltStack, Inc.'
version = salt.version.__version__
-latest_release = '2016.3.3' # latest release
+latest_release = '2016.3.4' # latest release
previous_re... | [<I>] Doc version updated to <I> (#<I>) | py |
diff --git a/pkglib/pkglib/setuptools/command/depgraph.py b/pkglib/pkglib/setuptools/command/depgraph.py
index <HASH>..<HASH> 100644
--- a/pkglib/pkglib/setuptools/command/depgraph.py
+++ b/pkglib/pkglib/setuptools/command/depgraph.py
@@ -142,7 +142,7 @@ class depgraph(Command, CommandMixin):
else:
... | Fixing incorrect name due to using old AHL name. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,7 +16,7 @@ setup(name='DPark',
author='Davies Liu',
author_email='davies.liu@gmail.com',
license= 'BSD License',
- packages=['dpark', 'dpark.moosefs'],
+ packages=['dpark', 'dpark.moosefs', '... | update setup.py to include dpark.pymesos | py |
diff --git a/src/saml2/config.py b/src/saml2/config.py
index <HASH>..<HASH> 100644
--- a/src/saml2/config.py
+++ b/src/saml2/config.py
@@ -270,7 +270,7 @@ class Config(object):
def load_complex(self, cnf, typ="", metadata_construction=False):
try:
- self.setattr(typ, "policy", Policy(cnf["pol... | Policy needs metadata store to lookup registration authority for a SP | py |
diff --git a/databuild/tests/test_adapters.py b/databuild/tests/test_adapters.py
index <HASH>..<HASH> 100644
--- a/databuild/tests/test_adapters.py
+++ b/databuild/tests/test_adapters.py
@@ -65,8 +65,7 @@ class BaseAdapterMixin(object):
fetched_row = self.sheet.get(Comune="Acqui Terme")
assert 'Codi... | filename is not reliable with shelve | py |
diff --git a/test_isort.py b/test_isort.py
index <HASH>..<HASH> 100644
--- a/test_isort.py
+++ b/test_isort.py
@@ -1027,7 +1027,7 @@ def test_long_line_comments():
"from foo.utils.fabric_stuff.stage import check_clean_stage, deploy_stage, sync_stage_envdir, "
"update_stage_app, upd... | Fix for issue #<I> complete | py |
diff --git a/fixtext.py b/fixtext.py
index <HASH>..<HASH> 100644
--- a/fixtext.py
+++ b/fixtext.py
@@ -14,7 +14,7 @@ else:
def fixtext(text, normalization='NFKC'):
"""
- Given any basestring as input, make its representation consistent and
+ Given Unicode text as input, make its representation consistent ... | don't auto-decode utf-8 as the first step, that's dangerous | py |
diff --git a/aikif/config.py b/aikif/config.py
index <HASH>..<HASH> 100644
--- a/aikif/config.py
+++ b/aikif/config.py
@@ -15,7 +15,8 @@ fldrs['pers_data'] = 'T:\\user\\AIKIF\\pers_data'
fldrs['pers_credentials'] = 'T:\\user\\AIKIF\\pers_data\\credentials'
# FOR DEVELOPMENT
-core_folder = 'T:\\user\\dev\\src\\pyth... | removed stupid hard coded path which breaks CI via cls_file_mapping | py |
diff --git a/greg/gregparser.py b/greg/gregparser.py
index <HASH>..<HASH> 100755
--- a/greg/gregparser.py
+++ b/greg/gregparser.py
@@ -109,5 +109,5 @@ def main():
"""
Parse the args and call whatever function was selected
"""
- args = parser.parse_args(sys.argv[1:])
+ args = parser.parse_args()
... | This should deal with no arguments on its own | py |
diff --git a/auto_changelog/repository.py b/auto_changelog/repository.py
index <HASH>..<HASH> 100644
--- a/auto_changelog/repository.py
+++ b/auto_changelog/repository.py
@@ -89,6 +89,10 @@ class GitRepository(RepositoryInterface):
for release_index in reversed(range(len(changelog.releases) - 1)):
... | fix(git): clean references after process | 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
@@ -69,7 +69,7 @@ class ClientFuncsDict(collections.MutableMapping):
if k.startswith('__pub_'):
pub_data[k] = kwargs.pop(k)
- ... | Fix get() to use correctly named jid | py |
diff --git a/jarn/viewdoc/viewdoc.py b/jarn/viewdoc/viewdoc.py
index <HASH>..<HASH> 100644
--- a/jarn/viewdoc/viewdoc.py
+++ b/jarn/viewdoc/viewdoc.py
@@ -96,7 +96,7 @@ class Defaults(object):
self.available_styles = {}
if self.parser.has_section('styles'):
for key, value in self.parser.i... | Don't need setdefault here. | py |
diff --git a/datacats/cli/pull.py b/datacats/cli/pull.py
index <HASH>..<HASH> 100644
--- a/datacats/cli/pull.py
+++ b/datacats/cli/pull.py
@@ -11,7 +11,7 @@ from datacats.docker import pull_stream
from datacats.error import DatacatsError
IMAGES = [
- 'datacats/web',
+ 'datacats/web:latest',
'datacats/cka... | Fixed another bug, I can't remove the tags that are already there, but they were making this thing fall flat on its face, so I jsut made it pull latest. | py |
diff --git a/provider/oauth2/backends.py b/provider/oauth2/backends.py
index <HASH>..<HASH> 100644
--- a/provider/oauth2/backends.py
+++ b/provider/oauth2/backends.py
@@ -63,7 +63,7 @@ class AccessTokenBackend(object):
def authenticate(self, access_token=None, client=None):
try:
- return ... | fix a bug in AccessTokenBackend, the the column defined in models is token instead of access_token | py |
diff --git a/pyinfra_cli/log.py b/pyinfra_cli/log.py
index <HASH>..<HASH> 100644
--- a/pyinfra_cli/log.py
+++ b/pyinfra_cli/log.py
@@ -38,6 +38,15 @@ class LogFormatter(logging.Formatter):
if record.args:
message = record.msg % record.args
+ # Add path/module info for debug
+ if re... | For debug logs add the module name to the beginning of the log line when formatting. | py |
diff --git a/netmiko/juniper/juniper_ssh.py b/netmiko/juniper/juniper_ssh.py
index <HASH>..<HASH> 100644
--- a/netmiko/juniper/juniper_ssh.py
+++ b/netmiko/juniper/juniper_ssh.py
@@ -26,7 +26,7 @@ class JuniperSSH(BaseConnection):
self.set_terminal_width(command='set cli screen-width 511')
def enter_cli... | Juniper Fix for change of shell when logging in as root | py |
diff --git a/wordcloud/wordcloud.py b/wordcloud/wordcloud.py
index <HASH>..<HASH> 100644
--- a/wordcloud/wordcloud.py
+++ b/wordcloud/wordcloud.py
@@ -442,7 +442,7 @@ class WordCloud(object):
# pad frequencies with repeating words.
times_extend = int(np.ceil(self.max_words / len(frequencies)))... | fix list copy in python2 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.