diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/trakt/interfaces/auth.py b/trakt/interfaces/auth.py
index <HASH>..<HASH> 100644
--- a/trakt/interfaces/auth.py
+++ b/trakt/interfaces/auth.py
@@ -4,13 +4,13 @@ from trakt.interfaces.base import Interface
class AuthInterface(Interface):
path = 'auth'
- def login(self, login, password):
+ def l... | Added **kwargs to [/auth] login() | py |
diff --git a/flask_user/forms.py b/flask_user/forms.py
index <HASH>..<HASH> 100644
--- a/flask_user/forms.py
+++ b/flask_user/forms.py
@@ -210,7 +210,7 @@ class LoginForm(Form):
user, user_email = user_manager.find_user_by_email(self.email.data)
# Handle successful authentication
- if use... | When integrating with other authentication mechanisms (i.e. SSO), some users may not have a populated password field. Check for user.password before attempting to verify_password. | py |
diff --git a/safe_qgis/function_options_dialog.py b/safe_qgis/function_options_dialog.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/function_options_dialog.py
+++ b/safe_qgis/function_options_dialog.py
@@ -101,10 +101,6 @@ class FunctionOptionsDialog(QtGui.QDialog,
QtGui.QFormL... | reshowing postprocessors configuration. deals with #<I> and closes #<I> | py |
diff --git a/gwpy/tests/test_timeseries.py b/gwpy/tests/test_timeseries.py
index <HASH>..<HASH> 100644
--- a/gwpy/tests/test_timeseries.py
+++ b/gwpy/tests/test_timeseries.py
@@ -144,6 +144,14 @@ class TimeSeriesTestMixin(object):
pass
else:
nptest.assert_array_almost_equa... | tests: added test of TimeSeries.find with observatory | py |
diff --git a/editor.py b/editor.py
index <HASH>..<HASH> 100755
--- a/editor.py
+++ b/editor.py
@@ -73,7 +73,7 @@ def get_tty_filename():
return '/dev/tty'
-def edit(filename=None, contents=None, use_tty=None, suffix=None):
+def edit(filename=None, contents=None, use_tty=None, suffix=''):
editor = get_edit... | Fix suffix default (should be '', not None) | py |
diff --git a/c7n/resources/route53.py b/c7n/resources/route53.py
index <HASH>..<HASH> 100644
--- a/c7n/resources/route53.py
+++ b/c7n/resources/route53.py
@@ -59,15 +59,15 @@ def _describe_route53_tags(
k = k.split("/")[-1]
resource_map[k] = r
- results = retry(
- clien... | aws.route<I> - tag augment workaround api limitation of <I> hosted zones at a time (#<I>) | py |
diff --git a/performance/compile.py b/performance/compile.py
index <HASH>..<HASH> 100644
--- a/performance/compile.py
+++ b/performance/compile.py
@@ -427,9 +427,6 @@ class BenchmarkRevision(Application):
self.safe_makedirs(self.conf.json_directory)
self.safe_makedirs(self.conf.uploaded_json_dir)
- ... | Fix compile_all Remove also chdir('/'), now useless. | py |
diff --git a/salt/modules/timezone.py b/salt/modules/timezone.py
index <HASH>..<HASH> 100644
--- a/salt/modules/timezone.py
+++ b/salt/modules/timezone.py
@@ -80,7 +80,7 @@ def set_zone(timezone):
if not os.path.exists(zonepath):
return 'Zone does not exist: {0}'.format(zonepath)
- if os.path.exists(... | fixed typo s/locatime/localtime/ | py |
diff --git a/test/functional/test_warehouse.py b/test/functional/test_warehouse.py
index <HASH>..<HASH> 100644
--- a/test/functional/test_warehouse.py
+++ b/test/functional/test_warehouse.py
@@ -371,7 +371,12 @@ class BundleWarehouse(TestBase):
def test_bundle_warehouse_query(self):
l = self.library()
-... | Warehouse broken test fixed. #<I>. | py |
diff --git a/sendgrid/transport/smtp.py b/sendgrid/transport/smtp.py
index <HASH>..<HASH> 100644
--- a/sendgrid/transport/smtp.py
+++ b/sendgrid/transport/smtp.py
@@ -131,12 +131,12 @@ class Smtp(object):
"""
Create a text based MIME part from the given text
"""
- return MIMEText(paylo... | Fixed UTF-8 encoding crash Fixed UTF-8 encoding support in email body, email address and names of users | py |
diff --git a/tests/commands/test_commit_command.py b/tests/commands/test_commit_command.py
index <HASH>..<HASH> 100644
--- a/tests/commands/test_commit_command.py
+++ b/tests/commands/test_commit_command.py
@@ -129,3 +129,14 @@ def test_commit_when_customized_expected_raised(config, mocker, capsys):
# Assert onl... | test(commands/commit): add test case for raising non customized exception | py |
diff --git a/tests/test_hmm_likelihood.py b/tests/test_hmm_likelihood.py
index <HASH>..<HASH> 100644
--- a/tests/test_hmm_likelihood.py
+++ b/tests/test_hmm_likelihood.py
@@ -96,7 +96,7 @@ def like_hand_test_2():
trans_matrix=np.eye(2),
init_distn=np.array([0.,1.]),
data=np.zeros(10,dtype=int... | replace an np.log(0) with an -np.inf | py |
diff --git a/temperusb/cli.py b/temperusb/cli.py
index <HASH>..<HASH> 100644
--- a/temperusb/cli.py
+++ b/temperusb/cli.py
@@ -76,3 +76,6 @@ def main():
portinfo,
reading['temperature_c'],
reading['temperature_f']))
+
+if __name__ == '__main__':
+ mai... | Convenience execution of main() when cli.py is started from the command line | py |
diff --git a/apython/stream.py b/apython/stream.py
index <HASH>..<HASH> 100644
--- a/apython/stream.py
+++ b/apython/stream.py
@@ -40,12 +40,17 @@ class NonFileStreamReader:
loop = asyncio.get_event_loop()
self.loop = loop
self.stream = stream
+ self.eof = False
+
+ def at_eof(s... | Add at_eof() for NonFileStreamReader | py |
diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/install.py
+++ b/ceph_deploy/install.py
@@ -54,6 +54,7 @@ def detect_components(args, distro):
'install_rgw': 'ceph-radosgw',
'install_mds': 'ceph-mds',
'install_mon': 'ceph-mon',
+ ... | RM-<I>: Add install of ceph-common only Add options --cli and --common, both of which allow a user to install only the ceph-common package on a node. | py |
diff --git a/PyFunceble.py b/PyFunceble.py
index <HASH>..<HASH> 100755
--- a/PyFunceble.py
+++ b/PyFunceble.py
@@ -1802,6 +1802,7 @@ class Referer(object):
'ad',
'al',
'ao',
+ 'arpa',
'az',
'ba',
'bb',
@@ -2661,7 +2662,7 @@ if __na... | Introduction of `arpa` into the list of ignored extensions cf: No whois server. | py |
diff --git a/aiomysql/utils.py b/aiomysql/utils.py
index <HASH>..<HASH> 100644
--- a/aiomysql/utils.py
+++ b/aiomysql/utils.py
@@ -71,6 +71,7 @@ class _ContextManager(base):
@asyncio.coroutine
def __aexit__(self, exc_type, exc, tb):
yield from self._obj.close()
+ self._obj = No... | drop references to objects (connection, cursor) in __aexit__ | py |
diff --git a/conferences/rules.py b/conferences/rules.py
index <HASH>..<HASH> 100644
--- a/conferences/rules.py
+++ b/conferences/rules.py
@@ -90,20 +90,6 @@ def short_description(self, key, value):
}
-@conferences.over('keywords', '^6531.')
-def keywords(self, key, value):
- def get_value(value):
- ... | dojson: remove keywords from conferences * Strictly speaking this needs to happen when we bump the schemas to version ~<I>, but we might as well do it now to fix a few errors on Sentry. | py |
diff --git a/salt/grains/core.py b/salt/grains/core.py
index <HASH>..<HASH> 100644
--- a/salt/grains/core.py
+++ b/salt/grains/core.py
@@ -932,6 +932,7 @@ _OS_NAME_MAP = {
'scientific': 'ScientificLinux',
'synology': 'Synology',
'manjaro': 'Manjaro',
+ 'sles': 'SUSE',
}
# Map the 'os' grain to the... | fix the os grain in sle<I>sp4 to be SUSE instead of SLES due to the existence of /etc/os-release on SLE<I>SP4, the os grain between SLE<I>SP3 and SLE<I>SP4 was different (SLES vs SUSE). Thus, it was falsely trying to use systemd on SLE<I>SP4 to start services | py |
diff --git a/Xlib/ext/randr.py b/Xlib/ext/randr.py
index <HASH>..<HASH> 100644
--- a/Xlib/ext/randr.py
+++ b/Xlib/ext/randr.py
@@ -444,12 +444,11 @@ class GetOutputInfo(rq.ReplyRequest):
rq.Card8('subpixel_order'),
rq.LengthOf('crtcs', 2),
rq.LengthOf('modes', 2),
- rq.LengthOf('prefer... | randr: Fix GetOutputInfo reply definition by replacing invalid field "preferred" and the associated length field with a single field, "num_preferred". | py |
diff --git a/dipper/graph/RDFGraph.py b/dipper/graph/RDFGraph.py
index <HASH>..<HASH> 100644
--- a/dipper/graph/RDFGraph.py
+++ b/dipper/graph/RDFGraph.py
@@ -42,7 +42,8 @@ class RDFGraph(ConjunctiveGraph, DipperGraph):
(self._getNode(subject_id), self._getNode(predicate_id),
... | log which subject and predicate when an object is None | py |
diff --git a/gwpy/plot/tests/test_axes.py b/gwpy/plot/tests/test_axes.py
index <HASH>..<HASH> 100644
--- a/gwpy/plot/tests/test_axes.py
+++ b/gwpy/plot/tests/test_axes.py
@@ -23,7 +23,7 @@ import pytest
import numpy
-from matplotlib import rcParams
+from matplotlib import (rcParams, __version__ as mpl_version)
fr... | gwpy.plot.tests: mark xfails for old matplotlib | py |
diff --git a/salt/states/cmd.py b/salt/states/cmd.py
index <HASH>..<HASH> 100644
--- a/salt/states/cmd.py
+++ b/salt/states/cmd.py
@@ -325,6 +325,7 @@ def mod_run_check(cmd_kwargs, onlyif, unless, creates):
# to quote problems
cmd_kwargs = copy.deepcopy(cmd_kwargs)
cmd_kwargs['use_vt'] = False
+ cmd_k... | never run bg for onlyif or unless cmd states | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,6 @@ install_requires = [
"parsedatetime",
"cached-property",
"click",
- "enum34", # backported versions from Python3
"pathlib",
"configparser",
"zope.interface", | enum<I> is not needed anymore It is part of the standard library and we are <I>+ only. | py |
diff --git a/test/unit/Utilities/IOTest.py b/test/unit/Utilities/IOTest.py
index <HASH>..<HASH> 100644
--- a/test/unit/Utilities/IOTest.py
+++ b/test/unit/Utilities/IOTest.py
@@ -132,9 +132,9 @@ class IOTest:
def test_load_imorph(self):
path = os.path.join(FIXTURE_DIR, 'iMorph-Sandstone')
- path ... | minor fix to path joining for sub files | py |
diff --git a/waterboy/api/info.py b/waterboy/api/info.py
index <HASH>..<HASH> 100644
--- a/waterboy/api/info.py
+++ b/waterboy/api/info.py
@@ -199,7 +199,7 @@ class BatchInfo(abc.MutableMapping):
@property
def aggregate_batch_number(self):
- return self.batch_number + self.epoch_info.batches_per_epoc... | Making aggregate batch number 0-based. | py |
diff --git a/billy/bin/update.py b/billy/bin/update.py
index <HASH>..<HASH> 100755
--- a/billy/bin/update.py
+++ b/billy/bin/update.py
@@ -64,6 +64,9 @@ def _run_scraper(scraper_type, options, metadata):
_clear_scraped_data(options.output_dir, 'events')
scraper = _get_configured_scraper(scraper_type, op... | set BILLY_UA_EMAIL to include email address in user-agent, #<I> | py |
diff --git a/raiden/tests/utils/blockchain.py b/raiden/tests/utils/blockchain.py
index <HASH>..<HASH> 100644
--- a/raiden/tests/utils/blockchain.py
+++ b/raiden/tests/utils/blockchain.py
@@ -10,7 +10,7 @@ import termios
import time
import gevent
-from eth_utils import denoms
+from eth_utils import denoms, to_checks... | Fix a call to eth_getBalance | py |
diff --git a/test_autofit/mapper/promise/test_promise.py b/test_autofit/mapper/promise/test_promise.py
index <HASH>..<HASH> 100644
--- a/test_autofit/mapper/promise/test_promise.py
+++ b/test_autofit/mapper/promise/test_promise.py
@@ -31,6 +31,26 @@ def make_last_instance():
return af.last.instance.one.redshift
... | pushed test illustrating that hasattr works as expected | py |
diff --git a/flask_security/forms.py b/flask_security/forms.py
index <HASH>..<HASH> 100644
--- a/flask_security/forms.py
+++ b/flask_security/forms.py
@@ -92,7 +92,10 @@ class RegisterFormMixin():
submit = SubmitField("Register")
def to_dict(form):
- fields = inspect.getmembers(form, lambda member: i... | Fix to RegisterForm.to_dict. Only add fields that are also attributes on the datastorage.user_model. | py |
diff --git a/python/ray/rllib/es/es.py b/python/ray/rllib/es/es.py
index <HASH>..<HASH> 100644
--- a/python/ray/rllib/es/es.py
+++ b/python/ray/rllib/es/es.py
@@ -124,13 +124,13 @@ class Worker(object):
[np.sign(rewards_pos).sum(), np.sign(rewards_neg).sum()])
lengths.append([lengt... | fix indentation for ES (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -94,7 +94,7 @@ setup(
# https://packaging.python.org/en/latest/requirements.html
install_requires=[
'ruamel.yaml>=0.13.4,<0.14.0',
- 'sympy>=0.7.7',
+ 'sympy>=1.1.1',
'pycachesim>=0.1.... | updated required sympy version to <I> to resolve index error | py |
diff --git a/GPy/models/GPLVM.py b/GPy/models/GPLVM.py
index <HASH>..<HASH> 100644
--- a/GPy/models/GPLVM.py
+++ b/GPy/models/GPLVM.py
@@ -28,7 +28,7 @@ class GPLVM(GP):
if X is None:
X = self.initialise_latent(init, Q, Y)
if kernel is None:
- kernel = kern.rbf(Q) + kern.bias(Q... | modified: GPy/models/GPLVM.py Using the following kernel by default: kernel = kern.rbf(Q, ARD=Q>1) + kern.bias(Q, np.exp(-2)) + kern.white(Q, np.exp(-2)) | py |
diff --git a/pysat/_instrument.py b/pysat/_instrument.py
index <HASH>..<HASH> 100644
--- a/pysat/_instrument.py
+++ b/pysat/_instrument.py
@@ -3201,7 +3201,7 @@ class Instrument(object):
del kwargs['freq']
else:
freq = 'D'
-
+
# Make sure directories are there, otherw... | MAINT: removed extra whitespace Removed extra whitespace. | py |
diff --git a/skyfield/units.py b/skyfield/units.py
index <HASH>..<HASH> 100644
--- a/skyfield/units.py
+++ b/skyfield/units.py
@@ -15,8 +15,6 @@ def _to_array(value):
else:
return value
-# Distance and velocity.
-
class UnpackingError(Exception):
"""You cannot iterate directly over a Skyfield meas... | Tweak a few units docstrings | py |
diff --git a/dock/core.py b/dock/core.py
index <HASH>..<HASH> 100644
--- a/dock/core.py
+++ b/dock/core.py
@@ -467,8 +467,11 @@ class DockerTasker(LastLogger):
logger.info("does image exists?")
logger.debug("image_id = '%s'", image_id)
try:
- response = self.d.inspect_image(image_i... | core, image exists: log possible errors | py |
diff --git a/EventRegistry/QueryArticles.py b/EventRegistry/QueryArticles.py
index <HASH>..<HASH> 100644
--- a/EventRegistry/QueryArticles.py
+++ b/EventRegistry/QueryArticles.py
@@ -1,4 +1,6 @@
-from eventregistry.Base import *
+
+import six
+from eventregistry.Base import *
from eventregistry.ReturnInfo import *
... | Add Python 3 support for QueryArticlesIter | py |
diff --git a/moto/sns/models.py b/moto/sns/models.py
index <HASH>..<HASH> 100644
--- a/moto/sns/models.py
+++ b/moto/sns/models.py
@@ -580,7 +580,12 @@ class SNSBackend(BaseBackend):
return subscription.attributes
def set_subscription_attributes(self, arn, name, value):
- if name not in ["RawMess... | Bugfix: RedrivePolicy Issue SNS (#<I>) * Bugfix: S3 time precision issue fixed * Bugfix: S3 time precision issue fixed * s3 timeformat fix * Quickfix S3 timefix * Bugfix: Redrive Policy Allow * Linting Fixed | py |
diff --git a/optlang/interface.py b/optlang/interface.py
index <HASH>..<HASH> 100644
--- a/optlang/interface.py
+++ b/optlang/interface.py
@@ -203,7 +203,7 @@ class Variable(sympy.Symbol):
else:
if (primal <= self.lb) and ((self.lb - primal) <= tolerance):
return self.lb
- ... | Fixed an issue with primal rounding ... again. | py |
diff --git a/pygmsh/common/geometry.py b/pygmsh/common/geometry.py
index <HASH>..<HASH> 100644
--- a/pygmsh/common/geometry.py
+++ b/pygmsh/common/geometry.py
@@ -41,12 +41,7 @@ class CommonGeometry:
def __enter__(self):
- if self.init_argv is None:
- init_argv = []
- else:
- ... | onelined argument passing to gmsh.init | py |
diff --git a/few/few.py b/few/few.py
index <HASH>..<HASH> 100644
--- a/few/few.py
+++ b/few/few.py
@@ -260,7 +260,8 @@ class FEW(BaseEstimator):
# print("survivors:",stacks_2_eqns(survivors))
pop.individuals[:] = survivors
pop.X = np.vstack((pop.X, X_offspring))[survivor_index,:]
... | debugging occasional error about size of X | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -1476,6 +1476,8 @@ class ControlConnection(object):
try:
if self._connection:
self._refresh_schema(self._connection, keyspace, table)
+ ... | Ignore reference errors in the control conn These frequently happen when the cluster is being shutdown and the control connection is refreshing the schema or ring topology | py |
diff --git a/holoviews/element/tabular.py b/holoviews/element/tabular.py
index <HASH>..<HASH> 100644
--- a/holoviews/element/tabular.py
+++ b/holoviews/element/tabular.py
@@ -132,7 +132,7 @@ class ItemTable(Element):
else k): [v] for k, v in self.data.items()})
- def table(self):
+ ... | Fixed incorrect signature of table method on ItemTable | py |
diff --git a/troposphere/emr.py b/troposphere/emr.py
index <HASH>..<HASH> 100644
--- a/troposphere/emr.py
+++ b/troposphere/emr.py
@@ -475,7 +475,7 @@ class Studio(AWSObject):
"ServiceRole": (str, True),
"SubnetIds": ([str], True),
"Tags": (Tags, False),
- "UserRole": (str, True),
+ ... | making user role optional for emr studio | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,11 @@ setup(
version='1.0.1',
author='Saul Shanabrook',
author_email='s.shanabrook@gmail.com',
- packages=['simpleimages', 'simpleimages.management.commands'],
+ packages=[
+ 'simpleimages',... | Added intermediate management command directory to setup.py ala <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(
url="http://github.com/tobami/littlechef",
download_url="http://github.com/tobami/littlechef/tags",
keywords=["chef", "devops", "operations", "sysadmin"],
- install_requires=['fabric>=1.... | Add version constrain to jinja2. | py |
diff --git a/stanza/utils/datasets/ner/prepare_ner_dataset.py b/stanza/utils/datasets/ner/prepare_ner_dataset.py
index <HASH>..<HASH> 100644
--- a/stanza/utils/datasets/ner/prepare_ner_dataset.py
+++ b/stanza/utils/datasets/ner/prepare_ner_dataset.py
@@ -18,13 +18,14 @@ IJCNLP 2008 produced a few Indian language NER da... | Fix command line for hindi datasets | py |
diff --git a/monolithe/generators/vspk/cli.py b/monolithe/generators/vspk/cli.py
index <HASH>..<HASH> 100755
--- a/monolithe/generators/vspk/cli.py
+++ b/monolithe/generators/vspk/cli.py
@@ -53,8 +53,8 @@ def main(argv=sys.argv):
args = parser.parse_args()
- if not args.vsdurl and "VSD_API_URL" in os.enviro... | Fixed using environment variable when forcing swagger path usage | py |
diff --git a/monitoring/noxfile.py b/monitoring/noxfile.py
index <HASH>..<HASH> 100644
--- a/monitoring/noxfile.py
+++ b/monitoring/noxfile.py
@@ -122,7 +122,8 @@ def system(session):
session.install("-e", ".")
# Additional setup for VPCSC system tests
- if os.environ.get("GOOGLE_CLOUD_TESTS_IN_VPCSC") !... | fix(monitoring): make VPCSC env comparison case-insensitive (#<I>) | py |
diff --git a/odl/set/domain.py b/odl/set/domain.py
index <HASH>..<HASH> 100644
--- a/odl/set/domain.py
+++ b/odl/set/domain.py
@@ -259,8 +259,12 @@ class IntervalProd(Set):
maxs = np.fromiter((np.max(vec) for vec in vecs), dtype=float)
return np.all(mins >= self.begin) and np.all(maxs <= self.... | ENH: make contains_all work for 1d arrays | py |
diff --git a/cme/cmedb.py b/cme/cmedb.py
index <HASH>..<HASH> 100644
--- a/cme/cmedb.py
+++ b/cme/cmedb.py
@@ -157,10 +157,9 @@ class CMEDatabaseNavigator(cmd.Cmd):
password = cred[5]
cred_type = cred[6]
- if port == '445/tcp' and proto == '(smb)':
- ... | Fixed if statement in msf credential import code | py |
diff --git a/pysat/utils/files.py b/pysat/utils/files.py
index <HASH>..<HASH> 100644
--- a/pysat/utils/files.py
+++ b/pysat/utils/files.py
@@ -430,11 +430,6 @@ def construct_searchstring_from_format(format_str, wildcard=False):
else:
raise ValueError("Couldn't determine formatting width")
... | ENH: Removed code not needed | py |
diff --git a/soco.py b/soco.py
index <HASH>..<HASH> 100644
--- a/soco.py
+++ b/soco.py
@@ -146,7 +146,8 @@ class SoCo(object):
""" Adds a given track to the queue.
Returns:
- True if the Sonos speaker successfully added the track
+ If the Sonos speaker successfully added the track, ret... | Had add_to_queue return the queue position of the newly added track | py |
diff --git a/ceph_deploy/hosts/suse/install.py b/ceph_deploy/hosts/suse/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/hosts/suse/install.py
+++ b/ceph_deploy/hosts/suse/install.py
@@ -123,6 +123,7 @@ def repo_install(distro, repo_name, baseurl, gpgkey, **kw):
enabled = kw.get('enabled', 1)
gpgcheck... | make suse use the new custom_repo callable | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -32,6 +32,6 @@ setup(
long_description=long_description,
name='pixelscan',
packages=find_packages(exclude=['tests']),
- url='https://github.com/dpmcmlxxvi/pixelscan',
+ url='https://github.com/dpmcmlxxvi/p... | Add tarball url to setup | py |
diff --git a/openquake/hazard/disagg/core.py b/openquake/hazard/disagg/core.py
index <HASH>..<HASH> 100644
--- a/openquake/hazard/disagg/core.py
+++ b/openquake/hazard/disagg/core.py
@@ -35,6 +35,7 @@ from openquake.job import config as job_cfg
from openquake.output import hazard_disagg as hazard_output
from openquak... | DisaggMixin now uses Calculator for it's base class. | py |
diff --git a/safe/impact_functions/generic/classified_polygon_building/metadata_definitions.py b/safe/impact_functions/generic/classified_polygon_building/metadata_definitions.py
index <HASH>..<HASH> 100644
--- a/safe/impact_functions/generic/classified_polygon_building/metadata_definitions.py
+++ b/safe/impact_functio... | Change the default value of the hazard zone attribute to KRB for classified polygon IF on building. | py |
diff --git a/modeltranslation/tests/__init__.py b/modeltranslation/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/tests/__init__.py
+++ b/modeltranslation/tests/__init__.py
@@ -739,11 +739,16 @@ class ForeignKeyFieldsTest(ModeltranslationTestBase):
self.assertEqual(inst.optional_en_id, te... | Add caching test for relation fields. | py |
diff --git a/openquake/hazardlib/source/point.py b/openquake/hazardlib/source/point.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/source/point.py
+++ b/openquake/hazardlib/source/point.py
@@ -403,9 +403,9 @@ class CollapsedPointSource(ParametricSeismicSource):
def count_ruptures(self):
"""
- ... | Fixed weight [skip CI] | py |
diff --git a/shap/explainers/tree.py b/shap/explainers/tree.py
index <HASH>..<HASH> 100644
--- a/shap/explainers/tree.py
+++ b/shap/explainers/tree.py
@@ -494,14 +494,14 @@ class TreeExplainer(Explainer):
The one reference Shapley value for all features.
"""
assert have_cext, "C extension was... | Modified independent tree shap to use np.nan to check for missing values | py |
diff --git a/django_enumfield/tests/models.py b/django_enumfield/tests/models.py
index <HASH>..<HASH> 100644
--- a/django_enumfield/tests/models.py
+++ b/django_enumfield/tests/models.py
@@ -13,7 +13,7 @@ class LampState(Enum):
class Lamp(models.Model):
- state = EnumField(LampState)
+ state = EnumField(Lamp... | Set verbose_name in test model to check for errors | py |
diff --git a/room.py b/room.py
index <HASH>..<HASH> 100644
--- a/room.py
+++ b/room.py
@@ -121,3 +121,10 @@ class Room(CampfireEntity):
self._load()
return result["success"]
+
+ def get_users(self):
+ self._load()
+ return self.users
+
+ def get_uploads(self):
+ return self._connection.get("room/%s/uploads"... | Implementing get_users and get_uploads for room | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -1485,9 +1485,9 @@ class PrefetchTestCase(ModelTestCase):
for g in range(2):
gc = Category.create(name='g%d' % g)
for p in range(2):
- pc = Category.create(name='g%d-p%d' % (g,... | Fxing small bug in the category alias prefetch stuff | py |
diff --git a/pyxmpp/stanzapayload.py b/pyxmpp/stanzapayload.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/stanzapayload.py
+++ b/pyxmpp/stanzapayload.py
@@ -32,8 +32,8 @@ class StanzaPayload:
"""Abstract base class for stanza payload objects."""
__metaclass__ = ABCMeta
- def __init__(self, data):
- ... | 'Do nothing' constructor for StanzaPayload abc | py |
diff --git a/safe_qgis/report/html_renderer.py b/safe_qgis/report/html_renderer.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/report/html_renderer.py
+++ b/safe_qgis/report/html_renderer.py
@@ -245,8 +245,9 @@ class HtmlRenderer():
html += aggregation_table
if attribution_table is not Non... | Fix issue with printing maps for impacts without full_report | py |
diff --git a/perceval/_version.py b/perceval/_version.py
index <HASH>..<HASH> 100644
--- a/perceval/_version.py
+++ b/perceval/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.11.5"
+__version__ = "0.11.6" | Update version number to <I> | py |
diff --git a/HARK/ConsumptionSaving/ConsIndShockModel.py b/HARK/ConsumptionSaving/ConsIndShockModel.py
index <HASH>..<HASH> 100644
--- a/HARK/ConsumptionSaving/ConsIndShockModel.py
+++ b/HARK/ConsumptionSaving/ConsIndShockModel.py
@@ -2958,7 +2958,6 @@ class KinkedRconsumerType(IndShockConsumerType):
"""
ti... | remove Rfree from KinkedRconsumerType | py |
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index <HASH>..<HASH> 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -65,8 +65,7 @@ def parse_args():
"slaves across multiple (an additional $0.01/Gb for bandwidth" +
"between zones applies)")
parser.add_option("-a", "--ami", default="l... | Removing now defunct ami documentation | py |
diff --git a/hydra_base/lib/units.py b/hydra_base/lib/units.py
index <HASH>..<HASH> 100644
--- a/hydra_base/lib/units.py
+++ b/hydra_base/lib/units.py
@@ -292,6 +292,18 @@ def get_unit_dimension(measure_or_unit_abbreviation,**kwargs):
dimension = db.DBSession.query(Dimension).filter(Dimension.id==units[0].dime... | added the way to recover a dimension by the id of one of its units | py |
diff --git a/tests/base.py b/tests/base.py
index <HASH>..<HASH> 100644
--- a/tests/base.py
+++ b/tests/base.py
@@ -44,8 +44,8 @@ class TestCaseBackendArchive(unittest.TestCase):
def _test_fetch_from_archive(self, **kwargs):
"""Test whether the method fetch_from_archive works properly"""
- items =... | [tests] Modify tests when fetching from archive This patch modifies the generic test used to check the fetch_from_archive method. Now two different backend objects are used, thus it ensures that backend and method params are initialized in the same way independently from which method is called (fetch or fetch_from_arc... | py |
diff --git a/ipyxact/ipyxact.py b/ipyxact/ipyxact.py
index <HASH>..<HASH> 100644
--- a/ipyxact/ipyxact.py
+++ b/ipyxact/ipyxact.py
@@ -37,7 +37,7 @@ class IpxactInt(int):
if not args:
return int()
- expr = args[0]
+ expr = args[0].strip()
base = 10
if len(expr) ... | Strip leading and trailing spaces from ints | py |
diff --git a/pyramid_orb/__init__.py b/pyramid_orb/__init__.py
index <HASH>..<HASH> 100644
--- a/pyramid_orb/__init__.py
+++ b/pyramid_orb/__init__.py
@@ -43,6 +43,12 @@ def includeme(config):
# set the max limit when desired
utils.DEFAULT_MAX_LIMIT = int(settings.pop('orb.settings.default_max_limit', utils.D... | * loading the settings before defining the database | py |
diff --git a/code/lamost/li_giants/residuals.py b/code/lamost/li_giants/residuals.py
index <HASH>..<HASH> 100644
--- a/code/lamost/li_giants/residuals.py
+++ b/code/lamost/li_giants/residuals.py
@@ -8,6 +8,8 @@ import matplotlib.gridspec as gridspec
from matplotlib.colors import LogNorm
plt.rc('text', usetex=True)
f... | add TheCannon to sys path | py |
diff --git a/pecan/commands/serve.py b/pecan/commands/serve.py
index <HASH>..<HASH> 100644
--- a/pecan/commands/serve.py
+++ b/pecan/commands/serve.py
@@ -1,7 +1,6 @@
"""
PasteScript serve command for Pecan.
"""
-from paste import httpserver
from paste.script.serve import ServeCommand as _ServeCommand
from base ... | a very simple approach for serving http requests | py |
diff --git a/tests/sos_tests.py b/tests/sos_tests.py
index <HASH>..<HASH> 100644
--- a/tests/sos_tests.py
+++ b/tests/sos_tests.py
@@ -420,7 +420,10 @@ class BaseSoSReportTest(BaseSoSTest):
"""
if not self.manifest:
self.error("No manifest found, cannot check for %s execution" % plugin)
-... | [tests] Allow lists for plugin enablement assertions Updates `assertPlugin(Not)Included` to allow for lists as well as single strings. | py |
diff --git a/test/test_command_line_interface.py b/test/test_command_line_interface.py
index <HASH>..<HASH> 100644
--- a/test/test_command_line_interface.py
+++ b/test/test_command_line_interface.py
@@ -73,6 +73,7 @@ class ListingCommands(unittest.TestCase):
" testuid2"]
s... | Fix test for international environment One test did fail with a $LANG that is not en_US.UTF-8 so we mock that variable. Fix: #<I> | py |
diff --git a/tweepy/api.py b/tweepy/api.py
index <HASH>..<HASH> 100644
--- a/tweepy/api.py
+++ b/tweepy/api.py
@@ -3894,9 +3894,14 @@ class API:
It is recommended applications request this endpoint when they are
loaded, but no more than once a day.
- :rtype: :class:`JSON` object
+ Retu... | Update and improve documentation for API.configuration | py |
diff --git a/astroid/tests/unittest_brain.py b/astroid/tests/unittest_brain.py
index <HASH>..<HASH> 100644
--- a/astroid/tests/unittest_brain.py
+++ b/astroid/tests/unittest_brain.py
@@ -1429,8 +1429,8 @@ class TestFunctoolsPartial:
''')
for node in ast_nodes:
inferred = next(node.infer()... | Support versions of functools.partial for older Python versions | py |
diff --git a/indy_node/server/domain_req_handler.py b/indy_node/server/domain_req_handler.py
index <HASH>..<HASH> 100644
--- a/indy_node/server/domain_req_handler.py
+++ b/indy_node/server/domain_req_handler.py
@@ -272,7 +272,7 @@ class DomainReqHandler(PHandler):
assert revoc_def_type
tags = cred_def... | [INDY-<I>] flake8 fixes for domain req handler | py |
diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/private/session.py
+++ b/pyghmi/ipmi/private/session.py
@@ -1076,7 +1076,7 @@ class Session(object):
This watches for any activity on IPMI handles and handles registered
by regi... | Update "nework" to "network" in comments Change-Id: I<I>c<I>b<I>b<I>d7deb0e<I>b<I>e<I>c<I> | py |
diff --git a/django_auth_pubtkt/auth_pubtkt.py b/django_auth_pubtkt/auth_pubtkt.py
index <HASH>..<HASH> 100644
--- a/django_auth_pubtkt/auth_pubtkt.py
+++ b/django_auth_pubtkt/auth_pubtkt.py
@@ -16,7 +16,7 @@
# limitations under the License.
-from M2Crypto import RSA, DSA
+from M2Crypto import RSA, DSA, RSA
imp... | Adding loading of RSA public keys | py |
diff --git a/identify/identify.py b/identify/identify.py
index <HASH>..<HASH> 100644
--- a/identify/identify.py
+++ b/identify/identify.py
@@ -136,7 +136,7 @@ def parse_shebang(bytesio):
return ()
first_line = bytesio.readline()
try:
- first_line = first_line.decode('US-ASCII')
+ first_... | Use UTF-8 to decode the shebang line | py |
diff --git a/pyqode/core/api/code_edit.py b/pyqode/core/api/code_edit.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/api/code_edit.py
+++ b/pyqode/core/api/code_edit.py
@@ -819,9 +819,14 @@ class CodeEdit(QtWidgets.QPlainTextEdit):
super().cut()
def copy(self):
+ pos = self.textCursor().positio... | Implement pyQode/pyQode#<I> for cut & copy fix pyQode/pyQode#<I> | py |
diff --git a/tests/calculators/hazard/classical/core_test.py b/tests/calculators/hazard/classical/core_test.py
index <HASH>..<HASH> 100644
--- a/tests/calculators/hazard/classical/core_test.py
+++ b/tests/calculators/hazard/classical/core_test.py
@@ -64,8 +64,14 @@ class ClassicalHazardCalculatorTestCase(unittest.TestC... | tests/calcs/hazard/classical/core_test: Test that the site collection is cached during pre-execute. Former-commit-id: <I>e8a2f9a8b<I>f<I>f4f1d5a<I>c9fb1 | py |
diff --git a/LiSE/LiSE/examples/college.py b/LiSE/LiSE/examples/college.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/examples/college.py
+++ b/LiSE/LiSE/examples/college.py
@@ -212,7 +212,7 @@ def install(eng):
student.rule(rule)
# Apply these previously written rules to each bra... | Apply student rules to .place, since .node won't take them anymore | py |
diff --git a/torment/decorators.py b/torment/decorators.py
index <HASH>..<HASH> 100644
--- a/torment/decorators.py
+++ b/torment/decorators.py
@@ -49,7 +49,7 @@ def log(prefix = ''):
name = function.__self__.__class__.__name__ + '.' + function.__name__
elif len(args):
memb... | only log members' keys After seeing this in action, I'm pleased but the members logging is too verbose. This should clean it up and make it useful in the event it's needed. | py |
diff --git a/lib/basepanel.py b/lib/basepanel.py
index <HASH>..<HASH> 100644
--- a/lib/basepanel.py
+++ b/lib/basepanel.py
@@ -225,6 +225,11 @@ class BasePanel(wx.Panel):
self.ForwardEvent(event=event.guiEvent)
+ def toggle_legend(self, evt=None, show=None):
+ pass
+ def toggle_grid(self, ... | add stubs for toggle_legend/toggle_grid in basepanel | py |
diff --git a/lib/svtplay_dl/fetcher/hls.py b/lib/svtplay_dl/fetcher/hls.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/fetcher/hls.py
+++ b/lib/svtplay_dl/fetcher/hls.py
@@ -47,7 +47,7 @@ def hlsparse(url):
streams = {}
for i in files:
- bitrate = float(i[1]["BANDWIDTH"])/1024
+ bitrate =... | HLS: <I> is the new thing | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -270,7 +270,7 @@ class ConfigCommand(Command):
update_extend(extension_extra, config)
# We don't need macros for these, since they all must exist.
else:
- errors.ap... | Fix small refactoring error in setup.py | py |
diff --git a/ddmrp/models/stock_warehouse_orderpoint.py b/ddmrp/models/stock_warehouse_orderpoint.py
index <HASH>..<HASH> 100644
--- a/ddmrp/models/stock_warehouse_orderpoint.py
+++ b/ddmrp/models/stock_warehouse_orderpoint.py
@@ -141,7 +141,7 @@ class StockWarehouseOrderpoint(models.Model):
"qty_mult... | [<I>][FIX] ddmrp: call _quantity_in_progress with sudo() to avoid ACL errors as is an internal ddmrp engine function | py |
diff --git a/source/rafcon/mvc/state_machine_helper.py b/source/rafcon/mvc/state_machine_helper.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/mvc/state_machine_helper.py
+++ b/source/rafcon/mvc/state_machine_helper.py
@@ -27,7 +27,7 @@ def delete_model(model, raise_exceptions=False):
data from the correspondi... | Satisfy print counter: remove print from block comment | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,10 +27,6 @@ setup(
install_requires=[
'bd2k-python-lib==1.13.dev14',
'dill==0.2.5'],
- tests_require=[
- 'mock==1.0.1',
- 'pytest==2.8.3'],
- test_suite='toil',
extras_requir... | Fix merge error introduced by <I>bf<I>e2f7f<I>d0baf<I>cb<I>dc<I>e<I>b | py |
diff --git a/fc/stats.py b/fc/stats.py
index <HASH>..<HASH> 100644
--- a/fc/stats.py
+++ b/fc/stats.py
@@ -110,14 +110,3 @@ def RCV(data, channel):
q75, q25 = numpy.percentile(data[:,channel], [75 ,25])
return (q75 - q25)/numpy.median(data[:,channel])
-
-def rate(data, channel='Time'):
- ''' Calculate th... | Eliminated rate from stats. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -43,7 +43,7 @@ sys.dont_write_bytecode = True
setup(
name='pipe2py',
- version='0.23.1',
+ version='0.23.2',
description=(
'A project to compile Yahoo! Pipes into Python. '
'The pipe2py pac... | Bump to version <I> | py |
diff --git a/shoebot/data/typography.py b/shoebot/data/typography.py
index <HASH>..<HASH> 100644
--- a/shoebot/data/typography.py
+++ b/shoebot/data/typography.py
@@ -70,20 +70,12 @@ class Text(Grob, ColorMixin):
# then we set fontsize (multiplied by pango.SCALE)
self._fontface.set_absolute_size(self.... | Merge changes to support default style for text | py |
diff --git a/tests/basics/gc1.py b/tests/basics/gc1.py
index <HASH>..<HASH> 100644
--- a/tests/basics/gc1.py
+++ b/tests/basics/gc1.py
@@ -27,3 +27,8 @@ if hasattr(gc, 'threshold'):
assert(gc.threshold() == 0)
assert(gc.threshold(-1) is None)
assert(gc.threshold() == -1)
+
+ # Setting a low threshold ... | tests/basics/gc1: Add test which triggers GC threshold. | py |
diff --git a/tests/shared.py b/tests/shared.py
index <HASH>..<HASH> 100644
--- a/tests/shared.py
+++ b/tests/shared.py
@@ -52,12 +52,13 @@ def read_dir(startdir, excludes=()):
assert isinstance(excludes, list) or isinstance(excludes, tuple), \
"excludes must be a list or a tuple, not " + repr(type(exclude... | use Path in read_dir to handle Windows properly We were running into trouble with tests that passed in an exclude like "a/b", with forward slashes. Running everything through Path handles that. | py |
diff --git a/rootpy/io/file.py b/rootpy/io/file.py
index <HASH>..<HASH> 100644
--- a/rootpy/io/file.py
+++ b/rootpy/io/file.py
@@ -229,7 +229,7 @@ class _DirectoryBase(Object):
"""
cd to the gDirectory before this file was open.
"""
- if isinstance(self._prev_dir, ROOT.TROOT):
+ ... | fix #<I>: File needs to set _prev_dir in post_init | py |
diff --git a/presser/exceptions.py b/presser/exceptions.py
index <HASH>..<HASH> 100644
--- a/presser/exceptions.py
+++ b/presser/exceptions.py
@@ -1,15 +1,18 @@
-class PresserJavaScriptParseError(Exception):
+class PresserError(Exception):
+ pass
+
+class PresserJavaScriptParseError(PresserError):
pass
-class ... | exceptions now inherit from PresserError | py |
diff --git a/saltcloud/clouds/softlayer-hw.py b/saltcloud/clouds/softlayer-hw.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/softlayer-hw.py
+++ b/saltcloud/clouds/softlayer-hw.py
@@ -671,10 +671,17 @@ def destroy(name, call=None):
{'name': name},
)
- ret = {}
node = show_instance(name, c... | Change destroy() to correct usage for hardware instances on softlayer | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.