diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/lib/python/vdm/server/Configuration.py b/lib/python/vdm/server/Configuration.py
index <HASH>..<HASH> 100644
--- a/lib/python/vdm/server/Configuration.py
+++ b/lib/python/vdm/server/Configuration.py
@@ -818,13 +818,13 @@ def check_validation_deployment(req):
def check_export_property(type, properties):
... | VDM-<I> Modified code to prevent duplicate export/import properties while uploading deployment file. | py |
diff --git a/tests/test_parse.py b/tests/test_parse.py
index <HASH>..<HASH> 100644
--- a/tests/test_parse.py
+++ b/tests/test_parse.py
@@ -1,23 +1,32 @@
# coding: utf-8
from __future__ import absolute_import, division, print_function
-from hypothesis import given
+import pytest
+from hypothesis import assume, given... | Test that un-normalised versions fail strict parse | py |
diff --git a/debugtools/formatter.py b/debugtools/formatter.py
index <HASH>..<HASH> 100644
--- a/debugtools/formatter.py
+++ b/debugtools/formatter.py
@@ -3,7 +3,8 @@ An enhanced ``pprint.pformat`` that prints data structures in a readable HTML st
"""
from django.core.exceptions import ObjectDoesNotExist, MultipleO... | Fix appearance of QuerySet and Manager objects | py |
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index <HASH>..<HASH> 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -2962,7 +2962,7 @@ class Cmd(cmd.Cmd):
# See if we need to call a change hook for this settable
if orig_value != new_value:
onchange_hook = getattr(self, '_onchange_{}'.format(par... | Fix feedback from PR only try to call `onchange_hook` if it’s a callable. | py |
diff --git a/cgutils/cgroup.py b/cgutils/cgroup.py
index <HASH>..<HASH> 100644
--- a/cgutils/cgroup.py
+++ b/cgutils/cgroup.py
@@ -321,11 +321,14 @@ class SubsystemCpuacct(Subsystem):
class SubsystemCpuset(Subsystem):
NAME = 'cpuset'
STATS = {
+ # str object something like '0', '0-1', and '0-1,3,4'
+ ... | Support cpuset.effective_{cpus,mems} They are read-only cgroup control files and represent effective masks of cpuset for a group. The masks are determined by its configurations (cpus and mems} and the parent cpuset effective values. So the parent configurations can be enforced to descendent groups. | py |
diff --git a/lib/python/vdm/tests/server/start_stop_database_test.py b/lib/python/vdm/tests/server/start_stop_database_test.py
index <HASH>..<HASH> 100644
--- a/lib/python/vdm/tests/server/start_stop_database_test.py
+++ b/lib/python/vdm/tests/server/start_stop_database_test.py
@@ -173,7 +173,7 @@ class Cluster(unittes... | Fixed failed test cases in start_stop_database_test | py |
diff --git a/pupa/scrape/helpers.py b/pupa/scrape/helpers.py
index <HASH>..<HASH> 100644
--- a/pupa/scrape/helpers.py
+++ b/pupa/scrape/helpers.py
@@ -8,7 +8,7 @@ class Legislator(Person):
Legislator is a special case of Person that has a district, party, and perhaps a chamber
"""
def __init__(self, name... | change defaults to '' for Legislator | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -57,7 +57,7 @@ class CoreTestCase(unittest.TestCase):
def test_run_setup_uses_current_dir(self):
# This tests that the setup script is run with the current directory
- ... | Issue #<I>: Fix a variety of spelling errors. | py |
diff --git a/cacheback/base.py b/cacheback/base.py
index <HASH>..<HASH> 100644
--- a/cacheback/base.py
+++ b/cacheback/base.py
@@ -24,7 +24,7 @@ def to_bytestring(value):
bytestring or unicode string so must distinguish between the two.
"""
if isinstance(value, six.text_type):
- return string.enco... | Fixed NameError introduced in e<I>e<I>d<I>d5c<I>c2bdf<I>f8a<I>ec7be1d | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ install_requires = [
"docutils>=0.14",
"pymongo>=3.2.2",
"PyYAML>=3.11",
- "web.py>=0.40",
+ "web.py==0.40",
"Jinja2 >= 2.10",
"lti>=0.9.0",
"oauth2>=1.9.0.post1", | Ensure web.py==<I> is always used for now | py |
diff --git a/zipline/sources.py b/zipline/sources.py
index <HASH>..<HASH> 100644
--- a/zipline/sources.py
+++ b/zipline/sources.py
@@ -49,7 +49,6 @@ class RandomEquityTrades(TradeDataSource):
volume = random.randrange(100,10000,100)
event = zp.namedict({
- #'source_id' : self.get_id,
... | removed the commented out line that was setting the source id. parent class ensures id is set. | py |
diff --git a/gooey/python_bindings/gooey_decorator.py b/gooey/python_bindings/gooey_decorator.py
index <HASH>..<HASH> 100644
--- a/gooey/python_bindings/gooey_decorator.py
+++ b/gooey/python_bindings/gooey_decorator.py
@@ -11,7 +11,6 @@ import os
import sys
from argparse import ArgumentParser
-from gooey.gui imp... | Avoid importing wx when --ignore-gooey is part of the command line arguments. wx has dependencies on graphical libraries and servers. Importing it on a headless machines causes the scripts to fail. This change allows gooey-powered scripts to run on headless machines with the --ignore-gooey option. | py |
diff --git a/alignak/dependencynode.py b/alignak/dependencynode.py
index <HASH>..<HASH> 100644
--- a/alignak/dependencynode.py
+++ b/alignak/dependencynode.py
@@ -180,9 +180,14 @@ class DependencyNode(object):
# We look for each application
nb_sons = len(states)
- nb_ok = len([s for s in stat... | Enh: don't create a sublist and loop over it 3 times with the same list | py |
diff --git a/recurly/base_client.py b/recurly/base_client.py
index <HASH>..<HASH> 100644
--- a/recurly/base_client.py
+++ b/recurly/base_client.py
@@ -45,7 +45,8 @@ class BaseClient:
raise Resource.cast_error(resp)
else:
raise ApiError(
- ... | Handle case in which request_id is None Resolves #<I> Let's call `str()` on the request_id in case it's None (we never got one from the server). | py |
diff --git a/pyp2rpm/metadata_extractors.py b/pyp2rpm/metadata_extractors.py
index <HASH>..<HASH> 100644
--- a/pyp2rpm/metadata_extractors.py
+++ b/pyp2rpm/metadata_extractors.py
@@ -154,7 +154,7 @@ class MetadataExtractor(object):
sphinx_dir = self.sphinx_dir
if sphinx_dir:
- archive_dat... | handle multi-level sphinx directories | py |
diff --git a/core/dbt/parser/util.py b/core/dbt/parser/util.py
index <HASH>..<HASH> 100644
--- a/core/dbt/parser/util.py
+++ b/core/dbt/parser/util.py
@@ -173,11 +173,10 @@ class ParserUtils(object):
@classmethod
def process_refs_for_node(cls, manifest, current_project, node):
"""Given a manifest and... | move target_model vars inside loop to avoid reuse on subsequent refs | py |
diff --git a/tests/test_api.py b/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -40,7 +40,7 @@ class TestAPIResponses(unittest.TestCase):
'http://mlkshk.com/api/user',
body=resp_data,
status=200)
- user = sel... | switches api methods to underscore -- I couldn't deal with camelcase | py |
diff --git a/glances/outputs/glances_bottle.py b/glances/outputs/glances_bottle.py
index <HASH>..<HASH> 100644
--- a/glances/outputs/glances_bottle.py
+++ b/glances/outputs/glances_bottle.py
@@ -24,7 +24,6 @@ import os
import sys
import tempfile
-from glances.core.glances_globals import is_windows
from glances.cor... | glances_bottle: use 'with' context manager to open files ...otherwise the file handle is left open due to the use of return before the handle closure. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ if sys.argv[-1] == 'publish':
sys.exit()
settings.update(
- name=APP_NAME
+ name=APP_NAME,
version=VERSION,
author=u'Chicago Tribune News Applications Team',
author_email='newsapps@t... | add comma after app_name in settings.update | py |
diff --git a/airflow/utils/dag_processing.py b/airflow/utils/dag_processing.py
index <HASH>..<HASH> 100644
--- a/airflow/utils/dag_processing.py
+++ b/airflow/utils/dag_processing.py
@@ -39,7 +39,7 @@ from airflow.configuration import conf
from airflow.dag.base_dag import BaseDag, BaseDagBag
from airflow.exceptions i... | [AIRFLOW-<I>] Fix Incorrect Type Annotation for Multiprocessing Connection (#<I>) | py |
diff --git a/MAVProxy/modules/mavproxy_asterix.py b/MAVProxy/modules/mavproxy_asterix.py
index <HASH>..<HASH> 100644
--- a/MAVProxy/modules/mavproxy_asterix.py
+++ b/MAVProxy/modules/mavproxy_asterix.py
@@ -51,7 +51,7 @@ class AsterixModule(mp_module.MPModule):
# filter_dist is distance in metres
self... | asterix: default filter distance to 3km | py |
diff --git a/mtools/test/test_util_logfile.py b/mtools/test/test_util_logfile.py
index <HASH>..<HASH> 100644
--- a/mtools/test/test_util_logfile.py
+++ b/mtools/test/test_util_logfile.py
@@ -2,9 +2,11 @@ import sys, os
import mtools
from nose.tools import *
+from datetime import datetime
from mtools.util.logfile i... | added test for .start and .end properties. | py |
diff --git a/poll/views.py b/poll/views.py
index <HASH>..<HASH> 100644
--- a/poll/views.py
+++ b/poll/views.py
@@ -15,6 +15,11 @@ def poll_vote(request, poll_id, template):
form.save()
msg = _("Your vote has been saved")
messages.success(request, msg, fail_silently=True)
+ ... | Switch to detail template if post from a widget is not via ajax | py |
diff --git a/fusesoc/build/quartus.py b/fusesoc/build/quartus.py
index <HASH>..<HASH> 100644
--- a/fusesoc/build/quartus.py
+++ b/fusesoc/build/quartus.py
@@ -137,7 +137,9 @@ clean:
tcl_file.write("set_global_assignment -name SEARCH_PATH " + include_dir + '\n')
for f in self.system.backend.sdc_f... | quartus.py: Fix path to SDC files | py |
diff --git a/webant/webserver_utils.py b/webant/webserver_utils.py
index <HASH>..<HASH> 100644
--- a/webant/webserver_utils.py
+++ b/webant/webserver_utils.py
@@ -9,10 +9,14 @@ def gevent_run(app):
from werkzeug.debug import DebuggedApplication
from werkzeug.serving import run_with_reloader
gevent.monkey... | print http://ADDRESS:PORT/ at startup; closes #<I> Also, ADDRESS and PORT are configurable. | py |
diff --git a/tests/runtests.py b/tests/runtests.py
index <HASH>..<HASH> 100644
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -16,13 +16,12 @@
import os
import sys
+from tests.compat import unittest
# Ensure that the tests directory is part of our Python path.
APP_ROOT = os.path.realpath(os.path.dirname(__f... | minor flake8 fix to make the tests pass again | py |
diff --git a/i3pystatus/temp.py b/i3pystatus/temp.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/temp.py
+++ b/i3pystatus/temp.py
@@ -11,7 +11,7 @@ class Sensor:
def __init__(self, name, current, maximum, critical):
self.name = name.replace(' ', '_')
self.current = int(current)
- self.max... | Fix bug where sensors reports no maximum. | py |
diff --git a/xtuml/meta.py b/xtuml/meta.py
index <HASH>..<HASH> 100644
--- a/xtuml/meta.py
+++ b/xtuml/meta.py
@@ -156,12 +156,22 @@ class Association(object):
def batch_relate(self):
source_class = self.source_link.to_metaclass
target_class = self.target_link.to_metaclass
+ key_map = tupl... | meta: allow queries with null values During batch relate however, links with null values are not connected | py |
diff --git a/flask_cors.py b/flask_cors.py
index <HASH>..<HASH> 100644
--- a/flask_cors.py
+++ b/flask_cors.py
@@ -12,7 +12,7 @@
import collections
from datetime import timedelta
import re
-from functools import update_wrapper, wraps
+from functools import update_wrapper
from flask import make_response, reques... | Fix exception handling decorator; Issue with functools.partial in <I> using Python <I> | py |
diff --git a/python/ray/serve/long_poll.py b/python/ray/serve/long_poll.py
index <HASH>..<HASH> 100644
--- a/python/ray/serve/long_poll.py
+++ b/python/ray/serve/long_poll.py
@@ -65,7 +65,7 @@ class LongPollerAsyncClient:
while True:
updates: Dict[str, UpdatedObject] = await self._poll_once()
... | Fix Serve typo (#<I>) | py |
diff --git a/PyGitUp/gitup.py b/PyGitUp/gitup.py
index <HASH>..<HASH> 100644
--- a/PyGitUp/gitup.py
+++ b/PyGitUp/gitup.py
@@ -131,7 +131,11 @@ class GitUp(object):
for branch in self.branches:
remote = self.remote_map[branch.name]
- print(colored(branch.name.ljust(col_width), attr... | Incorporated aanand/git-up#<I>: Highlight current branch | py |
diff --git a/sgqlc/codegen/operation.py b/sgqlc/codegen/operation.py
index <HASH>..<HASH> 100644
--- a/sgqlc/codegen/operation.py
+++ b/sgqlc/codegen/operation.py
@@ -471,17 +471,16 @@ def fragment_%(name)s():
def leave_field(self, node, *_args):
self.validate_required_arguments(node)
+ args = no... | fix operations with alias we cannot modify `node.arguments` as it's a frozen list. We need to copy the list and add the new `__alias__` to the end, but only if there are aliases. Closes: #<I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -234,6 +234,8 @@ intersphinx_mapping = {
'xarray': ('http://xarray.pydata.org/en/stable/', None),
'cartopy': ('http://scitools.org.uk/cartopy/docs/latest/', None),
'mpl_toolkits': ('http://matplo... | Added sphinx_nbexamples to insterphinx [skip ci] | py |
diff --git a/keyring/tests/backends/test_kwallet.py b/keyring/tests/backends/test_kwallet.py
index <HASH>..<HASH> 100644
--- a/keyring/tests/backends/test_kwallet.py
+++ b/keyring/tests/backends/test_kwallet.py
@@ -1,3 +1,5 @@
+import os
+
from ..py30compat import unittest
from keyring.backends import kwallet
@@ -8... | skip KWallet tests when DISPLAY is not set QApplication() checks for DISPLAY in the environment and fails on stderr with "cannot connect to X server" if it is not found. Reported in issue #<I> | py |
diff --git a/src/flask_rq2/cli.py b/src/flask_rq2/cli.py
index <HASH>..<HASH> 100644
--- a/src/flask_rq2/cli.py
+++ b/src/flask_rq2/cli.py
@@ -14,7 +14,7 @@ from rq.cli import cli as rq_cli
try:
from flask.cli import AppGroup, ScriptInfo
-except ImportError:
+except ImportError: # pragma: no cover
try:
... | Ignore the ImportError of flask.cli in test coverage. | py |
diff --git a/modin/engines/dask/pandas_on_dask_futures/frame/partition.py b/modin/engines/dask/pandas_on_dask_futures/frame/partition.py
index <HASH>..<HASH> 100644
--- a/modin/engines/dask/pandas_on_dask_futures/frame/partition.py
+++ b/modin/engines/dask/pandas_on_dask_futures/frame/partition.py
@@ -76,6 +76,7 @@ cla... | empty call queue after draining (#<I>) | py |
diff --git a/spikeextractors/multirecordingtimeextractor.py b/spikeextractors/multirecordingtimeextractor.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/multirecordingtimeextractor.py
+++ b/spikeextractors/multirecordingtimeextractor.py
@@ -46,7 +46,7 @@ class MultiRecordingTimeExtractor(RecordingExtractor):
... | Fix time concatenation in multirecordingtimeextractor | py |
diff --git a/lib/bibformatadminlib.py b/lib/bibformatadminlib.py
index <HASH>..<HASH> 100644
--- a/lib/bibformatadminlib.py
+++ b/lib/bibformatadminlib.py
@@ -742,7 +742,7 @@ def update_format_template_code(filename, code=""):
format_template = bibformat_engine.get_format_template_attrs(filename)
name = forma... | Replace CRLF with LF from template code received from BibFormat template editor. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from distutils.core import setup
-__version_info__ = ('0', '0', '2')
+__version_info__ = ('0', '0', '3')
__version__ = '.'.join(__version_info__) | Version <I> Fixes dependency management | py |
diff --git a/src/scs_core/aws/manager/s3_manager.py b/src/scs_core/aws/manager/s3_manager.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aws/manager/s3_manager.py
+++ b/src/scs_core/aws/manager/s3_manager.py
@@ -20,7 +20,7 @@ class S3Manager(object):
def list_buckets(self):
# Retrieve the list of exi... | fixed s3 manager list_buckets bug | py |
diff --git a/event_bus/bus.py b/event_bus/bus.py
index <HASH>..<HASH> 100644
--- a/event_bus/bus.py
+++ b/event_bus/bus.py
@@ -76,10 +76,12 @@ class EventBus:
:Note:
This plainly just calls functions without passing params into the
subscribed callables. This is great if you want to d... | Updated some code to further adhere to PEP8. | py |
diff --git a/modeltranslation/utils.py b/modeltranslation/utils.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/utils.py
+++ b/modeltranslation/utils.py
@@ -53,8 +53,6 @@ def build_css_class(localized_fieldname, prefix=''):
"""
bits = localized_fieldname.split('_')
css_class = ''
- if bits[0] ==... | Do generate CSS class name for fields starting with an underscore (still seems to work with two-part codes). | py |
diff --git a/pulla/main.py b/pulla/main.py
index <HASH>..<HASH> 100755
--- a/pulla/main.py
+++ b/pulla/main.py
@@ -18,14 +18,16 @@ def parse_known_args():
help='Update the repos in this folder')
mutually_exclusive_group = parser.add_mutually_exclusive_group()
- mutually_exclusive_grou... | Modify the range of numbers accepted in verbosity argument Verbosity will now be given a value from to 1 to 5 | py |
diff --git a/acky/ec2.py b/acky/ec2.py
index <HASH>..<HASH> 100644
--- a/acky/ec2.py
+++ b/acky/ec2.py
@@ -206,6 +206,14 @@ class InstanceCollection(AwsCollection, EC2ApiClient):
**params)
return list(chain(*(r["Instances"] for r in reservations)))
+ def create(self, ami,... | added create, destroy methods for acky.ec2.InstanceCollection. | py |
diff --git a/pyrsistent.py b/pyrsistent.py
index <HASH>..<HASH> 100644
--- a/pyrsistent.py
+++ b/pyrsistent.py
@@ -2233,9 +2233,9 @@ def precord(*_fields, **_typed_fields):
def __repr__(self):
untyped_repr = ', '.join("'{0}'".format(f) for f in fields)
- typed_repr = ', '.join("{0}={1... | Deterministic repr output to facilitate testing | py |
diff --git a/bcbio/variation/freebayes.py b/bcbio/variation/freebayes.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/freebayes.py
+++ b/bcbio/variation/freebayes.py
@@ -192,11 +192,11 @@ def _check_freqs(parts):
ao = sum([int(x) for x in item.split(":")[ao_index].split(",")])
ro = int(pa... | Handle zero division errors for FreeBayes calls with no read support. Fixes #<I> | py |
diff --git a/arctic/arctic.py b/arctic/arctic.py
index <HASH>..<HASH> 100644
--- a/arctic/arctic.py
+++ b/arctic/arctic.py
@@ -425,7 +425,7 @@ class ArcticLibraryBinding(object):
to_gigabytes(self.quota)))
# Quota not exceeded, print an informational message and ret... | Fixing float division between p3 and <I> | py |
diff --git a/c7n/commands.py b/c7n/commands.py
index <HASH>..<HASH> 100644
--- a/c7n/commands.py
+++ b/c7n/commands.py
@@ -276,17 +276,21 @@ def run(options, policies):
log.exception("Unable to assume role %s", options.assume_role)
sys.exit(1)
+ errored_policies = []
for policy in po... | cli - run on exit log policies that errored (#<I>) | py |
diff --git a/lore/estimators/keras.py b/lore/estimators/keras.py
index <HASH>..<HASH> 100644
--- a/lore/estimators/keras.py
+++ b/lore/estimators/keras.py
@@ -455,7 +455,7 @@ class Base(BaseEstimator):
result = self.keras_evaluate(x, y)
if self.towers > 1:
- result = numpy.mean(re... | use average instead of total loss for towers | py |
diff --git a/noseOfYeti/plugins/sphinx.py b/noseOfYeti/plugins/sphinx.py
index <HASH>..<HASH> 100644
--- a/noseOfYeti/plugins/sphinx.py
+++ b/noseOfYeti/plugins/sphinx.py
@@ -5,8 +5,7 @@ from support.spec_options import spec_options
import os
def enable(app):
- config = app.builder.config.values
- register_fr... | sphinx doesn't keep user values in config.values | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -44,16 +44,16 @@ master_doc = 'index'
# General information about the project.
project = u'django-rest-auth'
-copyright = u'2014, Tivix Inc.'
+copyright = u'2018, Tivix Inc.'
# The version info for the p... | Update copyright and version number in Docs config | py |
diff --git a/stdeb/downloader.py b/stdeb/downloader.py
index <HASH>..<HASH> 100644
--- a/stdeb/downloader.py
+++ b/stdeb/downloader.py
@@ -59,7 +59,7 @@ def find_tar_gz(package_name, pypi_url = 'https://pypi.org',
for url in urls:
if url['packagetype']=='sdist':
assert url['python_version']==... | Support zip files in pypi-install (#<I>) | py |
diff --git a/molmod/io/fchk.py b/molmod/io/fchk.py
index <HASH>..<HASH> 100644
--- a/molmod/io/fchk.py
+++ b/molmod/io/fchk.py
@@ -207,10 +207,12 @@ class FCHKFile(object):
def get_hessian(self):
"""Return the hessian"""
+ force_const = self.fields.get("Cartesian Force Constants")
+ if for... | Return None for Hessian if not present in fchk | py |
diff --git a/astromodels/functions/template_model.py b/astromodels/functions/template_model.py
index <HASH>..<HASH> 100644
--- a/astromodels/functions/template_model.py
+++ b/astromodels/functions/template_model.py
@@ -709,7 +709,7 @@ class TemplateModel(with_metaclass(FunctionMeta, Function1D)):
# In ... | Fix for Issue #<I> By specifying the dtype for the grid array in the interpolator the numba typing error is resolved. | py |
diff --git a/albumentations/core/composition.py b/albumentations/core/composition.py
index <HASH>..<HASH> 100644
--- a/albumentations/core/composition.py
+++ b/albumentations/core/composition.py
@@ -7,7 +7,7 @@ from albumentations.augmentations.bbox_utils import convert_bboxes_from_albument
convert_bboxes_to_album... | fix missing compose-with-bboxes | py |
diff --git a/acos_client/axapi_http.py b/acos_client/axapi_http.py
index <HASH>..<HASH> 100644
--- a/acos_client/axapi_http.py
+++ b/acos_client/axapi_http.py
@@ -53,6 +53,17 @@ def extract_method(api_url):
return m.group(1)
return ""
+
+def merge_dicts(d1, d2):
+ d = d1.copy()
+ for k, v in d2.it... | fix dict merge in http params | py |
diff --git a/examples/variational_autoencoder.py b/examples/variational_autoencoder.py
index <HASH>..<HASH> 100644
--- a/examples/variational_autoencoder.py
+++ b/examples/variational_autoencoder.py
@@ -117,7 +117,7 @@ if __name__ == '__main__':
def print_perf(combined_params, iter, grad):
if iter % 10 ==... | Remove unnecessary mean from vae example (#<I>) A very minor point... `objective` is already a scalar, so taking its mean here does nothing. | py |
diff --git a/src/Interface.py b/src/Interface.py
index <HASH>..<HASH> 100755
--- a/src/Interface.py
+++ b/src/Interface.py
@@ -1,4 +1,5 @@
import os
+import subprocess
class Interface:
def __init__(self):
@@ -14,8 +15,8 @@ class Interface:
virtual_if_name = ifname + ":" + str(i)
if_ip... | used subprocess.Popen insted of os.popen in one place. | py |
diff --git a/cmsplugin_cascade/sharable/forms.py b/cmsplugin_cascade/sharable/forms.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/sharable/forms.py
+++ b/cmsplugin_cascade/sharable/forms.py
@@ -78,8 +78,7 @@ class SharableGlossaryMixin(object):
if form.cleaned_data['save_shared_glossary'] and identifi... | use assertion instead of RuntimeError | py |
diff --git a/tests/unit/test_parser.py b/tests/unit/test_parser.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_parser.py
+++ b/tests/unit/test_parser.py
@@ -159,6 +159,14 @@ class TestParseRule(tests.TestCase):
('a if b else c', Instructions([
Ident('b'), Ident('a'), Ident('c'), trinary_op, ... | Add a couple of basic tests to validate precedence. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,9 +1,19 @@
import os
+import sys
from distutils.core import setup
import rash
+PY3 = (sys.version_info[0] >= 3)
+
+install_requires = [
+ 'argparse',
+]
+if not PY3:
+ install_requires.append('watchdog')
+
+
... | Add watchdog to install_requires But don't do that for Python 3. | py |
diff --git a/holoviews/core/dimension.py b/holoviews/core/dimension.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/dimension.py
+++ b/holoviews/core/dimension.py
@@ -508,7 +508,7 @@ class Dimensioned(LabelledData):
__abstract = True
_sorted = False
- _dim_groups = ['kdims', 'vdims', 'cdims', 'ddims'... | Dimensioned.dimensions doesn't return constant dimensions by default | py |
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -507,14 +507,11 @@ class Command(_BaseCommand):
def parents(self):
"""Retrieves the parents of this command.
- .. versionad... | [commands] Clean docstrings in Command.parents and Command.root_parent | py |
diff --git a/python_modules/dagster/dagster/core/storage/tags.py b/python_modules/dagster/dagster/core/storage/tags.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/storage/tags.py
+++ b/python_modules/dagster/dagster/core/storage/tags.py
@@ -42,8 +42,9 @@ PRIORITY_TAG = "{prefix}priority".forma... | Make dagster/reexecution_strategy tag editable (#<I>) ### Summary & Motivation ### How I Tested These Changes | py |
diff --git a/visidata/async.py b/visidata/async.py
index <HASH>..<HASH> 100644
--- a/visidata/async.py
+++ b/visidata/async.py
@@ -7,7 +7,7 @@ from .vdtui import *
min_thread_time_s = 0.10 # only keep threads that take longer than this number of seconds
-option('profile_threads', True, 'profile async threads')
+op... | [async] disable options.profile_threads by default | py |
diff --git a/tests/test_matcher_simple.py b/tests/test_matcher_simple.py
index <HASH>..<HASH> 100644
--- a/tests/test_matcher_simple.py
+++ b/tests/test_matcher_simple.py
@@ -99,6 +99,20 @@ class TestSimpleMatcher(unittest.TestCase):
self.assertEqual(result, True)
+ def test_match_same_uuid(self):
+ ... | [tests] Add test to match identities with the same UUID | py |
diff --git a/matrix_client/room.py b/matrix_client/room.py
index <HASH>..<HASH> 100644
--- a/matrix_client/room.py
+++ b/matrix_client/room.py
@@ -270,7 +270,7 @@ class Room(object):
return False
def unban_user(self, user_id):
- """ Unban a user from this room
+ """Unban a user from th... | Remove initial space in docstring of Room.unban_user() | py |
diff --git a/test/runtest.py b/test/runtest.py
index <HASH>..<HASH> 100644
--- a/test/runtest.py
+++ b/test/runtest.py
@@ -324,7 +324,11 @@ class APITest(unittest.TestCase):
regex = re.compile(r"\d+\.\d*")
new_regex = ray.get(f.remote(regex))
- self.assertEqual(regex, new_regex)
+ # This seems to fail... | Fix runtest.py on the ubuntu system python 3 (#<I>) * fix runtest.py on the ubuntu system python 3 * less strict version of the test | py |
diff --git a/src/vistir/__init__.py b/src/vistir/__init__.py
index <HASH>..<HASH> 100644
--- a/src/vistir/__init__.py
+++ b/src/vistir/__init__.py
@@ -31,7 +31,7 @@ from .path import mkdir_p, rmtree, create_tracked_tempdir, create_tracked_tempfi
from .spin import VistirSpinner, create_spinner
-__version__ = '0.2.3... | Prebump to <I>.dev0 | py |
diff --git a/tests/test_menu_launcher.py b/tests/test_menu_launcher.py
index <HASH>..<HASH> 100644
--- a/tests/test_menu_launcher.py
+++ b/tests/test_menu_launcher.py
@@ -266,7 +266,7 @@ def test_running_menu():
child.sendline('1')
child.expect('Return to Logs menu')
# return to logs menu
- child.send... | Moved <I> to correct line for testing. | py |
diff --git a/pypeerassets/main.py b/pypeerassets/main.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/main.py
+++ b/pypeerassets/main.py
@@ -200,6 +200,7 @@ class CardTransfer:
self.sender = sender
self.receivers = receivers
self.amount = amount
+ assert len(self.amount) == len(self.... | CardTransfer; another logic check. | py |
diff --git a/scripts/genetic.py b/scripts/genetic.py
index <HASH>..<HASH> 100644
--- a/scripts/genetic.py
+++ b/scripts/genetic.py
@@ -11,7 +11,7 @@ from no.priv.garshol.duke import ConfigLoader, Processor, Property, DukeConfigEx
from no.priv.garshol.duke.utils import ObjectUtils
from no.priv.garshol.duke.matchers im... | Updated genetic script to match API change. | py |
diff --git a/ca/django_ca/extensions/base.py b/ca/django_ca/extensions/base.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/extensions/base.py
+++ b/ca/django_ca/extensions/base.py
@@ -403,7 +403,7 @@ class IterableExtension(
def as_text(self) -> str:
return "\n".join(["* %s" % v for v in self.serialize... | allow appending iterableItems as well | py |
diff --git a/pyvex/lift/__init__.py b/pyvex/lift/__init__.py
index <HASH>..<HASH> 100644
--- a/pyvex/lift/__init__.py
+++ b/pyvex/lift/__init__.py
@@ -2,6 +2,7 @@ from collections import defaultdict
import logging
from .. import const
from ..expr import Const
+from ..errors import PyVEXError
l = logging.getLogger... | Raise an error when attempting to lift an empty block If we don't raise an error here, a libVEX assertion fails. | py |
diff --git a/master/buildbot/process/buildrequest.py b/master/buildbot/process/buildrequest.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/process/buildrequest.py
+++ b/master/buildbot/process/buildrequest.py
@@ -34,6 +34,8 @@ class TempSourceStamp(object):
del result['ssid']
del result['changes... | fix trigger when there is no patch in source stampt | py |
diff --git a/lib/svtplay_dl/service/tv4play.py b/lib/svtplay_dl/service/tv4play.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/tv4play.py
+++ b/lib/svtplay_dl/service/tv4play.py
@@ -31,8 +31,7 @@ class Tv4play(Service, OpenGraphThumbMixin):
... | tv4play: send hls_time_stamp as a argument to fetchers | py |
diff --git a/dipper/sources/UCSCBands.py b/dipper/sources/UCSCBands.py
index <HASH>..<HASH> 100644
--- a/dipper/sources/UCSCBands.py
+++ b/dipper/sources/UCSCBands.py
@@ -35,9 +35,12 @@ class UCSCBands(Source):
where any band in the file is an instance of a chr_band (or a more specific type), is a subsequence
... | use full graph as testgraph for UCSCBands #<I> | py |
diff --git a/src/wormhole/test/test_util.py b/src/wormhole/test/test_util.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/test/test_util.py
+++ b/src/wormhole/test/test_util.py
@@ -51,5 +51,10 @@ class Space(unittest.TestCase):
# anything more specific about the return value
def test_no_statvfs(self):... | test_util: tolerate os.statvfs missing on windows The code in util.py can tolerate a missing os.statvfs, but the code which tests that code's ability to tolerate a missing os.statvfs was itself unable to tolerate a missing os.statvfs. Sigh. | py |
diff --git a/dingo/examples/example_multiple_grid_districts.py b/dingo/examples/example_multiple_grid_districts.py
index <HASH>..<HASH> 100755
--- a/dingo/examples/example_multiple_grid_districts.py
+++ b/dingo/examples/example_multiple_grid_districts.py
@@ -109,6 +109,7 @@ def run_multiple_grid_districts(mv_grid_distr... | Close CircuitBreaker before export Avoids missing line of MV grid | py |
diff --git a/sharepoint/cmd.py b/sharepoint/cmd.py
index <HASH>..<HASH> 100644
--- a/sharepoint/cmd.py
+++ b/sharepoint/cmd.py
@@ -11,7 +11,7 @@ def main():
description = ["A utility to extract data from SharePoint sites, returning ",
"XML. Available actions are 'lists' (returns a list of ",
... | Renamed 'export_lists' to 'exportlists' | py |
diff --git a/indra/assemblers/html/assembler.py b/indra/assemblers/html/assembler.py
index <HASH>..<HASH> 100644
--- a/indra/assemblers/html/assembler.py
+++ b/indra/assemblers/html/assembler.py
@@ -7,8 +7,8 @@ import re
import uuid
import logging
import itertools
+from collections import OrderedDict
from os.path i... | Update docstrings and remove an unneeded import | py |
diff --git a/src/greenstalk/__init__.py b/src/greenstalk/__init__.py
index <HASH>..<HASH> 100644
--- a/src/greenstalk/__init__.py
+++ b/src/greenstalk/__init__.py
@@ -14,7 +14,6 @@ DEFAULT_TTR = 60
class Job:
"""A job returned from the server."""
- __slots__ = ('id', 'body')
def __init__(self, id: int... | Remove __slots__ from Job | py |
diff --git a/estnltk/storage/postgres/collection.py b/estnltk/storage/postgres/collection.py
index <HASH>..<HASH> 100755
--- a/estnltk/storage/postgres/collection.py
+++ b/estnltk/storage/postgres/collection.py
@@ -1094,7 +1094,7 @@ class PgCollection:
buffered_insert(values=values)
- logger... | fix logging in PgColletion.create_layer_block | py |
diff --git a/make_ffi.py b/make_ffi.py
index <HASH>..<HASH> 100755
--- a/make_ffi.py
+++ b/make_ffi.py
@@ -83,8 +83,13 @@ def doit(vex_path):
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
header, stderr = p.communicate()
- hea... | Fix a windows-support issue in make_ffi.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ except ImportError:
setup(
name='relay.runner',
- version='0.1.2',
+ version='0.1.3.dev0',
description=(
'A smart thermostat. Given a metric, or some timeseries that should'
'... | Back to development: <I> | py |
diff --git a/thumbor/engines/pil.py b/thumbor/engines/pil.py
index <HASH>..<HASH> 100644
--- a/thumbor/engines/pil.py
+++ b/thumbor/engines/pil.py
@@ -134,7 +134,7 @@ class Engine(BaseEngine):
f.write(results)
f.close()
- popen = Popen("gifsicle -O2 --colors 256 %s" % tmp_file_path, shell=Tru... | Removing gifsicle optimizations as it sometimes corrupt the gif file | py |
diff --git a/rqalpha/__main__.py b/rqalpha/__main__.py
index <HASH>..<HASH> 100644
--- a/rqalpha/__main__.py
+++ b/rqalpha/__main__.py
@@ -79,6 +79,7 @@ def update_bundle(data_bundle_path):
os.mkdir(data_bundle_path)
tar = tarfile.open(tmp, 'r:bz2')
tar.extractall(data_bundle_path)
+ tar.close()
... | close the tar file before remove it | py |
diff --git a/abydos/ngram.py b/abydos/ngram.py
index <HASH>..<HASH> 100644
--- a/abydos/ngram.py
+++ b/abydos/ngram.py
@@ -73,19 +73,19 @@ class NGramCorpus(object):
sentences = corpus.sents()
- for s in sentences:
- ngs = Counter(s)
+ for sent in sentences:
+ ngs = Coun... | renamed variables for pylint | py |
diff --git a/tests/core/test_gvm.py b/tests/core/test_gvm.py
index <HASH>..<HASH> 100644
--- a/tests/core/test_gvm.py
+++ b/tests/core/test_gvm.py
@@ -48,11 +48,14 @@ def test_locks(caplog):
assert a == 1
access_key = gvm.lock_variable('a')
+ gvm.lock_variable('a')
a = gvm.get_variable('a', access_k... | test(gvm): add tests for locking or unlocking twice | py |
diff --git a/turbolift/utils.py b/turbolift/utils.py
index <HASH>..<HASH> 100644
--- a/turbolift/utils.py
+++ b/turbolift/utils.py
@@ -455,10 +455,10 @@ def mkdir_p(path):
pass
else:
raise clds.DirectoryFailure(
- 'The path provided "%s" is occupied and not be used as a... | added missing obj for str replace | py |
diff --git a/scout/load/all.py b/scout/load/all.py
index <HASH>..<HASH> 100644
--- a/scout/load/all.py
+++ b/scout/load/all.py
@@ -127,7 +127,7 @@ def load_scout(adapter, config, ped=None, update=False):
case_obj=case_obj, variant_type='clinical', category='snv',
rank_treshold=conf... | fix load sv variants in scout | py |
diff --git a/spyder/widgets/ipythonconsole/namespacebrowser.py b/spyder/widgets/ipythonconsole/namespacebrowser.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/ipythonconsole/namespacebrowser.py
+++ b/spyder/widgets/ipythonconsole/namespacebrowser.py
@@ -20,6 +20,7 @@ from ipykernel.pickleutil import CannedObject
... | IPython Console: Show a message when people tries to use the Variable Explorer while debugging | py |
diff --git a/pyjokes/jokes_eus.py b/pyjokes/jokes_eus.py
index <HASH>..<HASH> 100644
--- a/pyjokes/jokes_eus.py
+++ b/pyjokes/jokes_eus.py
@@ -4,6 +4,8 @@ neutral = [
'Zer dira 8 Bocabits? BocaByte bat ',
'Zer esaten dio bit batek besteari? Busean ikusten gara!',
'Zer da terapeuta bat? - 1024 Gigapeuta',... | Update jokes_eus.py | py |
diff --git a/_pydev_bundle/pydev_ipython_console_011.py b/_pydev_bundle/pydev_ipython_console_011.py
index <HASH>..<HASH> 100644
--- a/_pydev_bundle/pydev_ipython_console_011.py
+++ b/_pydev_bundle/pydev_ipython_console_011.py
@@ -72,7 +72,6 @@ def create_editor_hook(pydev_host, pydev_client_port):
return call_edi... | Fix ValueError for IPython <I> (PY-<I>) (cherry picked from commit c<I>a<I>d) | py |
diff --git a/salt/states/svn.py b/salt/states/svn.py
index <HASH>..<HASH> 100644
--- a/salt/states/svn.py
+++ b/salt/states/svn.py
@@ -130,7 +130,7 @@ def latest(name,
ret['changes']['revision'] = "{0} => {1}".format(current_rev, new_rev)
else:
- out = __salt__[svn_cmd](cwd, name, basenam... | Typo in original for trust server cert. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,2 +1,3 @@
requirements:
- sh>=1.09
\ No newline at end of file
+ sh>=1.09
+ edeposit.amqp.aleph>=1.4.5
\ No newline at end of file | Added requirement for edeposit.amqp.aleph. | py |
diff --git a/python/test/dev/diff.py b/python/test/dev/diff.py
index <HASH>..<HASH> 100755
--- a/python/test/dev/diff.py
+++ b/python/test/dev/diff.py
@@ -29,7 +29,7 @@ scala_to_python = {"Graph": "Model"}
def extract_scala_class(class_path):
exclude_key_words = set(["*", "abstract", "Const", "Fill", "Shape",
-... | Fix operation logical related bugs (#<I>) * Support control flow * Decouple input/output tensor numeric type from the module numeric type(parameter type). * FIx unit tests * while loop api refactor * fix unit test * make breeze version configurable as spark <I> bump breeze version * Add scheduler to ... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -176,8 +176,25 @@ def run_setup(with_extensions):
setup(**setup_kwargs_tmp)
-try:
- run_setup(with_extensions=True)
+# Figure out if we should build the wrapt C extensions
+
+with_extensions = os.environ.get('OPBEA... | added option to disable building wrapt using an environment variable This is mostly copied from wrapt's setup.py. See opbeat/utils/wrapt/LICENSE for license information | py |
diff --git a/create_app.py b/create_app.py
index <HASH>..<HASH> 100644
--- a/create_app.py
+++ b/create_app.py
@@ -27,7 +27,7 @@ import sys
from IPython.core.completerlib import module_list
from spyder import __version__ as spy_version
-from spyder.config.utils import get_edit_extensions
+from spyder.config.utils i... | Mac app: Don't use all extensions supported by Spyder because the app was crashing | py |
diff --git a/backend/__init__.py b/backend/__init__.py
index <HASH>..<HASH> 100644
--- a/backend/__init__.py
+++ b/backend/__init__.py
@@ -814,7 +814,7 @@ def _storef(ins):
op = op[1:]
immediate = op[0] == '#' # Might make no sense here?
- if indirect:
+ if immediate:
op = op[1:]
i... | Potential bugfix. This fixes a typo in the code. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.