diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/indra/databases/__init__.py b/indra/databases/__init__.py
index <HASH>..<HASH> 100644
--- a/indra/databases/__init__.py
+++ b/indra/databases/__init__.py
@@ -70,6 +70,11 @@ def get_identifiers_url(db_name, db_id):
url = 'https://arty.scai.fraunhofer.de/artifactory/bel/namespace/selventa-protein-fa... | Added URL generation for LNCRNADB (ENSG id or HGNC symbol) | py |
diff --git a/bcbio/rnaseq/salmon.py b/bcbio/rnaseq/salmon.py
index <HASH>..<HASH> 100644
--- a/bcbio/rnaseq/salmon.py
+++ b/bcbio/rnaseq/salmon.py
@@ -26,8 +26,11 @@ def run_salmon_bam(data):
out_file = salmon_quant_bam(bam_file, salmon_dir, gtf_file, data)
data = dd.set_salmon(data, out_file)
data = dd.... | fix stalled RNA-seq runs when there is no flenDist.txt related to #<I> (#<I>) | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -222,5 +222,5 @@ release = 'latest'
print("Done.")
-def setup(app):
- app.connect("builder-inited", run_apidoc)
+# def setup(app):
+# app.connect("builder-inited", run_apidoc) | see if skipping autodoc helps | py |
diff --git a/satpy/writers/cf_writer.py b/satpy/writers/cf_writer.py
index <HASH>..<HASH> 100644
--- a/satpy/writers/cf_writer.py
+++ b/satpy/writers/cf_writer.py
@@ -226,7 +226,12 @@ def encode_nc(obj):
try:
return _encode_nc(obj)
except ValueError:
- return json.dumps(obj, cls=AttributeEncod... | Decode byte strings and remove trailing quotes | py |
diff --git a/carto/sql.py b/carto/sql.py
index <HASH>..<HASH> 100644
--- a/carto/sql.py
+++ b/carto/sql.py
@@ -115,24 +115,3 @@ class BatchSQLClient(object):
"""
confirmation = self.send(self.api_url + job_id, http_method="DELETE")
return confirmation['status']
-
-
-class BatchSQLManager(obje... | removing batch manager since there's no way to retrieve all jobs this class is not needed anymor | py |
diff --git a/quantrisk/timeseries.py b/quantrisk/timeseries.py
index <HASH>..<HASH> 100644
--- a/quantrisk/timeseries.py
+++ b/quantrisk/timeseries.py
@@ -213,6 +213,15 @@ def calmer_ratio(df_rets, returns_style='calendar'):
else:
return temp
+def omega_ratio(df_rets, annual_return_threshhold=0.0):
+ ... | ENH add omega_ratio to timeseries module, and include in perf_stats. Closes #<I> | py |
diff --git a/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py b/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py
index <HASH>..<HASH> 100644
--- a/cluster/juju/layers/kubernetes-master/reactive/kubernetes_master.py
+++ b/cluster/juju/layers/kubernetes-master/reactive/kubernetes_mas... | The change in channels will be caught config change after the upgrade. | py |
diff --git a/dumper/test/settings.py b/dumper/test/settings.py
index <HASH>..<HASH> 100644
--- a/dumper/test/settings.py
+++ b/dumper/test/settings.py
@@ -1,3 +1,5 @@
+import django
+
from os import path
@@ -13,8 +15,9 @@ DATABASES = {
ROOT_URLCONF = 'dumper.test.urls'
# Testing
-INSTALLED_APPS += ('discover_r... | Only use discover runner on django<<I> | py |
diff --git a/tests/cases/user_test.py b/tests/cases/user_test.py
index <HASH>..<HASH> 100644
--- a/tests/cases/user_test.py
+++ b/tests/cases/user_test.py
@@ -462,3 +462,23 @@ class UserTestCase(base.TestCase):
user=admin)
self.assertStatusOk(resp)
self.assertTrue(resp.jso... | Add a test to make sure admin flag can't be set for normal registration | py |
diff --git a/salt/utils/reactor.py b/salt/utils/reactor.py
index <HASH>..<HASH> 100644
--- a/salt/utils/reactor.py
+++ b/salt/utils/reactor.py
@@ -433,7 +433,19 @@ class ReactWrap(object):
# and kwargs['kwarg'] contain the positional and keyword arguments
# that will be passed to the client in... | Adding space to log message as requested | py |
diff --git a/restless/preparers.py b/restless/preparers.py
index <HASH>..<HASH> 100644
--- a/restless/preparers.py
+++ b/restless/preparers.py
@@ -103,10 +103,10 @@ class FieldsPreparer(Preparer):
if isinstance(data, dict):
# Dictionary enough for us.
- value = data.get(part)
- ... | Fixed #<I>. Fixed all tests that got broken in last changeset. | py |
diff --git a/app/readers/fasta.py b/app/readers/fasta.py
index <HASH>..<HASH> 100644
--- a/app/readers/fasta.py
+++ b/app/readers/fasta.py
@@ -16,8 +16,7 @@ def get_protein_acc_iter(fastafn):
def parse_protein_identifier(record):
- ## FIXME now parsing uniprot only...
- return record.id.split('|')[1]
+ re... | MSGF apparently outputs full fasta IDs, not only accession numbers | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -120,7 +120,7 @@ html_theme = 'alabaster'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a fi... | Remove static path from d ocs. | py |
diff --git a/simuvex/plugins/solver.py b/simuvex/plugins/solver.py
index <HASH>..<HASH> 100644
--- a/simuvex/plugins/solver.py
+++ b/simuvex/plugins/solver.py
@@ -266,7 +266,7 @@ class SimSolver(SimStatePlugin):
raise SimValueError("concretized %d values (%d required) in exactly_n" % (len(r), n))
... | Forgot to actually return the first element... | py |
diff --git a/salt/modules/status.py b/salt/modules/status.py
index <HASH>..<HASH> 100644
--- a/salt/modules/status.py
+++ b/salt/modules/status.py
@@ -11,7 +11,7 @@ import fnmatch
# Import salt libs
import salt.utils
-from salt.utils.network import remote_port_tcp
+from salt.utils.network import remote_port_tcp as ... | Fix failing tests for missing docstrings Also change an imported function to a private function so that it is not exposed in __salt__. | py |
diff --git a/examples/circos/group_labels.py b/examples/circos/group_labels.py
index <HASH>..<HASH> 100644
--- a/examples/circos/group_labels.py
+++ b/examples/circos/group_labels.py
@@ -13,7 +13,7 @@ c = CircosPlot(
node_grouping="class",
node_color="class",
node_order="class",
- node_labels=False,
+... | Changed group_labels example to show both labels | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -57,7 +57,7 @@ CLASSIFIERS = [
]
-AUTHOR = 'google'
+AUTHOR = 'Google'
AUTHOR_EMAIL = 'google-pyfakefs@google.com'
MAINTAINER = 'John McGehee'
MAINTAINER_EMAIL = 'pyfakefs@johnnado.com'
@@ -76,7 +76,9 @@ params = dict(... | Add inline long_description. PyPi can't handle Markdown. | py |
diff --git a/stagpy/field.py b/stagpy/field.py
index <HASH>..<HASH> 100644
--- a/stagpy/field.py
+++ b/stagpy/field.py
@@ -152,7 +152,8 @@ def plot_scalar(step, var, field=None, axis=None, set_cbar=True, **extra):
fig = axis.get_figure()
if step.sdat.par['magma_oceans_in']['magma_oceans_mode']:
- ... | Split line to <I> chars | py |
diff --git a/glances/plugins/glances_processlist.py b/glances/plugins/glances_processlist.py
index <HASH>..<HASH> 100644
--- a/glances/plugins/glances_processlist.py
+++ b/glances/plugins/glances_processlist.py
@@ -295,15 +295,10 @@ class Plugin(GlancesPlugin):
if cmdline == '':
msg = ' {0... | Hide program path in short process view Fix bug introduced in commit e<I>cb5. | py |
diff --git a/uflash.py b/uflash.py
index <HASH>..<HASH> 100644
--- a/uflash.py
+++ b/uflash.py
@@ -27,7 +27,7 @@ will flash the unmodified MicroPython firmware onto the device. Use the -e flag
to recover a Python script from a hex file. Use the -r flag to specify a custom
version of the MicroPython runtime.
-Docume... | Convert readthedocs link for their .org -> .io migration for hosted projects As per [their blog post of the <I>th April](<URL>) ‘Securing subdomains’: > Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some sec... | py |
diff --git a/fontaine/charmaps/gwf_latin.py b/fontaine/charmaps/gwf_latin.py
index <HASH>..<HASH> 100644
--- a/fontaine/charmaps/gwf_latin.py
+++ b/fontaine/charmaps/gwf_latin.py
@@ -23,7 +23,6 @@ class Charmap:
glyphs += [0x20ac] # Euro
glyphs += [0x0152] # OE
glyphs += [0x0153] # oe
- ... | Updating gwf_latin.py charmap to remove duplicate | py |
diff --git a/renumber.py b/renumber.py
index <HASH>..<HASH> 100755
--- a/renumber.py
+++ b/renumber.py
@@ -9,7 +9,7 @@ def sort_events(events):
events.sort(key=lambda x: (x.date, x.number))
def renumber_events(events, start=1):
- for num, event in enumerate(events):
+ for num, event in enumerate(events, s... | renumber: use the start parameter for what it's supposed to do | py |
diff --git a/odl/solvers/functional/default_functionals.py b/odl/solvers/functional/default_functionals.py
index <HASH>..<HASH> 100644
--- a/odl/solvers/functional/default_functionals.py
+++ b/odl/solvers/functional/default_functionals.py
@@ -1906,9 +1906,9 @@ class NuclearNorm(Functional):
def __repr__(self):
... | MAINT: pep8 fixes to nuclear norm | py |
diff --git a/drizzlepac/processInput.py b/drizzlepac/processInput.py
index <HASH>..<HASH> 100644
--- a/drizzlepac/processInput.py
+++ b/drizzlepac/processInput.py
@@ -961,10 +961,10 @@ def buildEmptyDRZ(input, output):
oname = 'final'
output = fileutil.buildNewRootname(oname, extn='_drz.fits')
... | Fix empty drz naming problem (HSTSDP-<I>) (#<I>) | py |
diff --git a/src/toil/provisioners/node.py b/src/toil/provisioners/node.py
index <HASH>..<HASH> 100644
--- a/src/toil/provisioners/node.py
+++ b/src/toil/provisioners/node.py
@@ -130,7 +130,7 @@ class Node(object):
if time.time() - startTime > self.maxWaitTime:
raise RuntimeError("Docker d... | Fix docker daemon detection depending on terminal size | py |
diff --git a/ella/core/feeds.py b/ella/core/feeds.py
index <HASH>..<HASH> 100644
--- a/ella/core/feeds.py
+++ b/ella/core/feeds.py
@@ -54,7 +54,9 @@ class RSSTopCategoryListings(Feed):
# Item metadata
###########################################################################
def item_guid(self, item):
-... | guid in feed is None when using redis-based listing handlers, provide at least something. | py |
diff --git a/troposphere/apigateway.py b/troposphere/apigateway.py
index <HASH>..<HASH> 100644
--- a/troposphere/apigateway.py
+++ b/troposphere/apigateway.py
@@ -95,12 +95,18 @@ class StageDescription(AWSProperty):
props = {
"CacheClusterEnabled": (bool, False),
"CacheClusterSize": (basestring, ... | Update fields in apigateway StageDescription (Fixes #<I>) | py |
diff --git a/OpenSesame/password.py b/OpenSesame/password.py
index <HASH>..<HASH> 100644
--- a/OpenSesame/password.py
+++ b/OpenSesame/password.py
@@ -10,7 +10,7 @@ from OpenSesame.secureutils import lookup_path
def create_passwords():
apg_bin = lookup_path('apg')
- pipe = subprocess.Popen([apg_bin, "-t", "-... | space inbetween -N MS fails on <I>b subprocess | py |
diff --git a/tests/commands/test_global.py b/tests/commands/test_global.py
index <HASH>..<HASH> 100644
--- a/tests/commands/test_global.py
+++ b/tests/commands/test_global.py
@@ -103,8 +103,7 @@ class TestComposeCommand(unittest.TestCase):
self.assertFalse(envelope.sign)
self.assertIs(envelope.sign_ke... | tests/commands/globals: Simplify template_decode test | py |
diff --git a/frojd_fabric/api.py b/frojd_fabric/api.py
index <HASH>..<HASH> 100644
--- a/frojd_fabric/api.py
+++ b/frojd_fabric/api.py
@@ -45,6 +45,9 @@ def init_tasks():
if "cd" not in env:
env.cd = cd
+ if "max_releases" not in env:
+ env.max_releases = 5
+
run_hook("init_tasks")
@@... | Changed folder format to milliseconds. Added max_releases default value | py |
diff --git a/salt/modules/status.py b/salt/modules/status.py
index <HASH>..<HASH> 100644
--- a/salt/modules/status.py
+++ b/salt/modules/status.py
@@ -155,7 +155,6 @@ def uptime():
else:
raise CommandExecutionError('This platform is not supported')
-
utc_time = datetime.datetime.utcfromtimestamp(ti... | Lintfix: E<I> too many blank lines | py |
diff --git a/skew/resources/aws/es.py b/skew/resources/aws/es.py
index <HASH>..<HASH> 100644
--- a/skew/resources/aws/es.py
+++ b/skew/resources/aws/es.py
@@ -23,7 +23,8 @@ class ElasticsearchDomain(AWSResource):
service = 'es'
type = 'domain'
enum_spec = ('list_domain_names', 'DomainNames[].... | Update tags_spec for ElasticsearchDomain (#<I>) We can now retrieve ElasticsearchDomain tag list. | py |
diff --git a/coursera/cookies.py b/coursera/cookies.py
index <HASH>..<HASH> 100644
--- a/coursera/cookies.py
+++ b/coursera/cookies.py
@@ -12,8 +12,7 @@ import requests
from six.moves import StringIO
from six.moves import http_cookiejar as cookielib
from .define import AUTH_URL, CLASS_URL, AUTH_REDIRECT_URL, PATH_CO... | cookies: Add a second csrf cookie. Based on code provided by @fuz-woo. For some reason, it doesn't work for me when I use Python 2, but it does when I use Python 3 and needs further investigation, because this alienates a huge fraction of the users. | py |
diff --git a/pymod2pkg/__init__.py b/pymod2pkg/__init__.py
index <HASH>..<HASH> 100644
--- a/pymod2pkg/__init__.py
+++ b/pymod2pkg/__init__.py
@@ -124,6 +124,7 @@ RDO_PKG_MAP = [
SingleRule('xattr', 'pyxattr'),
SingleRule('XStatic-term.js', 'python-XStatic-termjs'),
SingleRule('horizon', 'openstack-dashb... | Add mappings for networking-vsphere Openstack mappings for the networking-vsphere project: <URL> | py |
diff --git a/hiddenlayer/graph.py b/hiddenlayer/graph.py
index <HASH>..<HASH> 100644
--- a/hiddenlayer/graph.py
+++ b/hiddenlayer/graph.py
@@ -84,6 +84,12 @@ class Node():
# Kernel
kernel = self.params["kernel_shape"]
title += "x".join(map(str, kernel))
+ if "stride" in sel... | Add stride to conv and pooling layers | py |
diff --git a/python/sparknlp/base.py b/python/sparknlp/base.py
index <HASH>..<HASH> 100644
--- a/python/sparknlp/base.py
+++ b/python/sparknlp/base.py
@@ -5,6 +5,7 @@ from pyspark.ml.param.shared import Param, Params, TypeConverters
from pyspark.ml.pipeline import Pipeline, PipelineModel, Estimator, Transformer
from ... | Preferred import of Annotation at an upper level | py |
diff --git a/src/kba/pipeline/test_dedup.py b/src/kba/pipeline/test_dedup.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/test_dedup.py
+++ b/src/kba/pipeline/test_dedup.py
@@ -18,7 +18,7 @@ logger.addHandler(ch)
from _test_data import get_test_chunk_path, get_test_chunk
-def test_dedup_debugging_config():
+... | Fix test to use temporary directory All tests that need temporary storage should use this (or equivalent.) See: <URL> | py |
diff --git a/sciluigi/audit.py b/sciluigi/audit.py
index <HASH>..<HASH> 100644
--- a/sciluigi/audit.py
+++ b/sciluigi/audit.py
@@ -28,8 +28,8 @@ class AuditTrailHelpers():
if not os.path.exists(auditfile):
with open(auditfile, 'w') as afile:
afile.write('[%s]\n' % self.instance_na... | Bugfix: Indentation error: Only first audit log info was written | py |
diff --git a/ait/core/seq.py b/ait/core/seq.py
index <HASH>..<HASH> 100644
--- a/ait/core/seq.py
+++ b/ait/core/seq.py
@@ -54,7 +54,7 @@ class Seq (object):
self.pathname = pathname
self.cmddict = cmddict or cmd.getDefaultCmdDict()
self.crc32 = None
- self.seqid = int(id)
+ self.seqid ... | Issue #<I> - Make Seq sequence id optional on initialization Seq no longer tries to cast the sequence `id` argument on initialization so creating a new Seq without an id is valid. This is useful when creating a Seq from a binary encoded sequence file in which the sequence id is encoded. By default, it will parse this ... | py |
diff --git a/qpformat/file_formats/series_hdf5_hyperspy.py b/qpformat/file_formats/series_hdf5_hyperspy.py
index <HASH>..<HASH> 100644
--- a/qpformat/file_formats/series_hdf5_hyperspy.py
+++ b/qpformat/file_formats/series_hdf5_hyperspy.py
@@ -73,7 +73,7 @@ class SeriesHdf5HyperSpy(SeriesData):
with h5py.File(n... | ref: h5py replace .value with [:] | py |
diff --git a/goristock.py b/goristock.py
index <HASH>..<HASH> 100644
--- a/goristock.py
+++ b/goristock.py
@@ -51,7 +51,15 @@ class goristock(object):
while len(self.raw_data) < data_num:
# start fetch data.
self.csv_read = self.fetch_data(stock_no, datetime.today() - timedelta(days = 30 * star... | Fix fetch no data in the first day of month. | py |
diff --git a/tests/test_component/test_amgr.py b/tests/test_component/test_amgr.py
index <HASH>..<HASH> 100755
--- a/tests/test_component/test_amgr.py
+++ b/tests/test_component/test_amgr.py
@@ -369,13 +369,6 @@ def test_amgr_setup_mqs():
for q in qs:
mq_channel.queue_delete(queue=q)
- with open('.%s... | removed test for queue names, affected by cae<I>f<I>b<I>db<I>b<I>cc<I>bc4b<I> | py |
diff --git a/pydem/dem_processing.py b/pydem/dem_processing.py
index <HASH>..<HASH> 100644
--- a/pydem/dem_processing.py
+++ b/pydem/dem_processing.py
@@ -2018,7 +2018,8 @@ class DEMProcessor(object):
Jdrain = Jdrain[b]
# calculate real distances
- dx = [dX[make_sl... | BUGFIX: I think I've actually figured out what this piece of code does, and I believe this is the proper fix. | py |
diff --git a/trollimage/colormap.py b/trollimage/colormap.py
index <HASH>..<HASH> 100644
--- a/trollimage/colormap.py
+++ b/trollimage/colormap.py
@@ -172,8 +172,7 @@ class Colormap(object):
aren't provided.
values: One dimensional array-like of control points where
each corresponding... | Simplify description of monotonic values in colormap | py |
diff --git a/salt/netapi/rest_cherrypy/app.py b/salt/netapi/rest_cherrypy/app.py
index <HASH>..<HASH> 100644
--- a/salt/netapi/rest_cherrypy/app.py
+++ b/salt/netapi/rest_cherrypy/app.py
@@ -371,7 +371,7 @@ def salt_api_acl_tool(username, request):
if cherrypy_conf:
# ACL Config.
acl ... | Fixing PEP-8/Lint. | py |
diff --git a/ipyrad/assemble/cluster_within.py b/ipyrad/assemble/cluster_within.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/cluster_within.py
+++ b/ipyrad/assemble/cluster_within.py
@@ -39,6 +39,8 @@ def sample_cleanup(data, sample):
sample.files.clusters = os.path.join(data.dirs.clusts,
... | fixed a typo which allowed clustering to run during 'reference' step, which it doesn't need to. | py |
diff --git a/src/openaccess_epub/commands/configure.py b/src/openaccess_epub/commands/configure.py
index <HASH>..<HASH> 100644
--- a/src/openaccess_epub/commands/configure.py
+++ b/src/openaccess_epub/commands/configure.py
@@ -327,9 +327,9 @@ appropriate input-relative path.''')
EpubCheck is a program written and ma... | Updating epubcheck url for users to get copies of releases | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -89,7 +89,7 @@ def runSetup():
license="Apache License v2.0",
install_requires=[
'bd2k-python-lib>=1.14a1.dev35',
- 'dill==0.2.5',
+ 'dill==0.2.7.1',
'six>=1.10... | Update Dill==<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(
zip_safe=False,
install_requires=[
'Django>=1.2.3',
- 'South==0.7.2'
+ 'South>=0.7.2'
],
# test_suite = 'django_cron.tests',
include_package_data=True, | Changing South requirement to be >=<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -18,8 +18,12 @@ setup(
package_data={"xopen": ["py.typed"]},
extras_require={
'dev': ['pytest'],
- # Install isa-l on 64 bit platforms. Wheels are provided.
- ':"64" in platform.machine': ['isa... | More specific platforms to prevent installation errors. | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -37,7 +37,7 @@ if not settings.configured:
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
),
- TEST_RUNNER = 'djang... | fx runtests for Django<<I> | py |
diff --git a/testproject/settings.py b/testproject/settings.py
index <HASH>..<HASH> 100644
--- a/testproject/settings.py
+++ b/testproject/settings.py
@@ -157,9 +157,7 @@ SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/user/close_popup/'
SESSION_SERIALIZER='django.contrib.sessions.serializers.PickleSerializer'
-ALLOWED_HOSTS =... | delete autoskola from setting (testing app) | py |
diff --git a/dddp/api.py b/dddp/api.py
index <HASH>..<HASH> 100644
--- a/dddp/api.py
+++ b/dddp/api.py
@@ -298,7 +298,7 @@ class Collection(APIMixin):
}
# Django supports model._meta -> pylint: disable=W0212
meta = self.model._meta
- connection = router.db_for_read(self.model.objects.n... | Bugfix /app.model/schema helper method to work with more model field types. | py |
diff --git a/mongodb_migrations/cli.py b/mongodb_migrations/cli.py
index <HASH>..<HASH> 100644
--- a/mongodb_migrations/cli.py
+++ b/mongodb_migrations/cli.py
@@ -105,7 +105,7 @@ class MigrationManager(object):
'created_at': datetime.now()})
def _remove_migration(self, ... | Fix downgrading method Mongo does not support remove() method Link: <URL> | py |
diff --git a/flux_led/models_db.py b/flux_led/models_db.py
index <HASH>..<HASH> 100755
--- a/flux_led/models_db.py
+++ b/flux_led/models_db.py
@@ -470,7 +470,7 @@ HARDWARE = [
MODELS = [
LEDENETModel(
model_num=0x01,
- models=[],
+ models=["HF-A11-ZJ002"],
description="Legacy Contr... | Update model db (#<I>) | py |
diff --git a/skyfield/__init__.py b/skyfield/__init__.py
index <HASH>..<HASH> 100644
--- a/skyfield/__init__.py
+++ b/skyfield/__init__.py
@@ -5,6 +5,6 @@ functions and classes there. See the ``documentation`` directory inside
the source code, as well as the http://rhodesmill.org/skyfield/ site!
"""
-VERSION = (1,... | Update version number to <I> | py |
diff --git a/cpuinfo/cpuinfo.py b/cpuinfo/cpuinfo.py
index <HASH>..<HASH> 100644
--- a/cpuinfo/cpuinfo.py
+++ b/cpuinfo/cpuinfo.py
@@ -87,16 +87,21 @@ class Trace(object):
def fail(self, msg):
if not self._is_active: return
+ from inspect import stack
+ frame = stack()[1]
+ file = frame[1]
+ line = frame[2]
... | Added trace line numbers on failure. | py |
diff --git a/gpsdaemon/daemon.py b/gpsdaemon/daemon.py
index <HASH>..<HASH> 100644
--- a/gpsdaemon/daemon.py
+++ b/gpsdaemon/daemon.py
@@ -97,7 +97,7 @@ class GpsDaemon(Daemon):
def _send_dict(self, bus: BusWriter, d: dict):
for key, value in d.items():
- bus.publish(key, value)
+ ... | Fixed a problem that caused exceptions to be raised then publishing non-string values | py |
diff --git a/faker/providers/lt_LT/person.py b/faker/providers/lt_LT/person.py
index <HASH>..<HASH> 100644
--- a/faker/providers/lt_LT/person.py
+++ b/faker/providers/lt_LT/person.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals | lt_LT removed shebang | py |
diff --git a/pytest_asyncio/plugin.py b/pytest_asyncio/plugin.py
index <HASH>..<HASH> 100644
--- a/pytest_asyncio/plugin.py
+++ b/pytest_asyncio/plugin.py
@@ -69,10 +69,7 @@ def event_loop(request):
event_loop = policy.new_event_loop()
policy.set_event_loop(event_loop)
- def _close():
- event_loop... | Various simplifications Removed unneeded local finalizer in event_loop Simplified code in unused_tcp_port | py |
diff --git a/client/g2p.py b/client/g2p.py
index <HASH>..<HASH> 100644
--- a/client/g2p.py
+++ b/client/g2p.py
@@ -1,9 +1,9 @@
# -*- coding: utf-8-*-
import os
+import tempfile
import subprocess
import re
-TEMP_FILENAME = "g2ptemp"
PHONE_MATCH = re.compile(r'<s> (.*) </s>')
PHONETISAURUS_PATH = os.environ['JASP... | Use tempfile in client.g2p | py |
diff --git a/src/salicml/metrics/finance/proponent_projects.py b/src/salicml/metrics/finance/proponent_projects.py
index <HASH>..<HASH> 100644
--- a/src/salicml/metrics/finance/proponent_projects.py
+++ b/src/salicml/metrics/finance/proponent_projects.py
@@ -19,7 +19,7 @@ def proponent_projects(pronac, data):
prop... | Remove project pronac from proponent_projects list | py |
diff --git a/selene/elements.py b/selene/elements.py
index <HASH>..<HASH> 100644
--- a/selene/elements.py
+++ b/selene/elements.py
@@ -362,9 +362,15 @@ class SeleneElement(with_metaclass(DelegatingMeta, IWebElement)):
set_value = set
def scroll_to(self):
- location = self.get_actual_webelement().loca... | #<I>: added waiting for visibility intro scroll_to | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -41,5 +41,5 @@ setup(
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
],
package_data = {'flat':['templates/*.html','style/*'], 'flat.modes.structureeditor':['templates/*.html'], 'flat.m... | dependency version update (flat version not bumped yet) | py |
diff --git a/HARK/core.py b/HARK/core.py
index <HASH>..<HASH> 100644
--- a/HARK/core.py
+++ b/HARK/core.py
@@ -52,6 +52,10 @@ def distanceMetric(thing_A, thing_B):
distance = max(distance_temp)
else:
distance = float(abs(lenA - lenB))
+ # If both inputs are dictionaries, call dista... | Add support for dict's in distanceMetric | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -35,7 +35,7 @@ if not settings.configured:
#'fluent_contents.plugins.oembeditem',
#'fluent_contents.plugins.picture',
'fluent_contents.plugins.rawhtml',
- 'fluent_c... | runtests: disable sharedcontent, migrations fail with tests due to missing Site | py |
diff --git a/tests/unit/modules/test_state.py b/tests/unit/modules/test_state.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_state.py
+++ b/tests/unit/modules/test_state.py
@@ -991,3 +991,17 @@ class StateTestCase(TestCase, LoaderModuleMockMixin):
({}, None)]:
... | Add unit test for _get_pillar_errors when external pillar has errors and internal is clean | py |
diff --git a/unicode_string_literal.py b/unicode_string_literal.py
index <HASH>..<HASH> 100644
--- a/unicode_string_literal.py
+++ b/unicode_string_literal.py
@@ -21,8 +21,8 @@ class UnicodeStringLiteral(object):
def add_options(cls, parser):
parser.add_option('--utter-unicode-string-literals',
... | Migrate to flake8 3.x Since flake8 <I>, registering options is handled differently. See <URL> | py |
diff --git a/checksumdir/__init__.py b/checksumdir/__init__.py
index <HASH>..<HASH> 100644
--- a/checksumdir/__init__.py
+++ b/checksumdir/__init__.py
@@ -46,8 +46,8 @@ def dirhash(dirname, hashfunc='md5', excluded_files=None, ignore_hidden=False,
if ignore_hidden and re.search(r'/\.', root):
cont... | Learning working with github and it's push system... | py |
diff --git a/python/ray/tune/result.py b/python/ray/tune/result.py
index <HASH>..<HASH> 100644
--- a/python/ray/tune/result.py
+++ b/python/ray/tune/result.py
@@ -16,10 +16,10 @@ NODE_IP = "node_ip"
# (Auto-filled) The pid of the training process.
PID = "pid"
-# Number of timesteps in this iteration.
+# Number of e... | [tune] Fix (some more) misleading comments in tune/results.py (#<I>) ## What do these changes do? Fix the misleading comments in code for: - `EPISODES_THIS_ITER` - `EPISODES_TOTAL` Had noted it before and planned to fix it along with some other changes but seemed very relevant to stay next to #<I> so sending... | py |
diff --git a/cobra/oven/aliebrahim/fluxAnalysis.py b/cobra/oven/aliebrahim/fluxAnalysis.py
index <HASH>..<HASH> 100644
--- a/cobra/oven/aliebrahim/fluxAnalysis.py
+++ b/cobra/oven/aliebrahim/fluxAnalysis.py
@@ -1,6 +1,4 @@
import cobra
-from IPython import embed
-
def optimize_minimal_flux(model, already_irreve... | fix bug in pFBA from oven | py |
diff --git a/unittests/from_future_import_tester.py b/unittests/from_future_import_tester.py
index <HASH>..<HASH> 100644
--- a/unittests/from_future_import_tester.py
+++ b/unittests/from_future_import_tester.py
@@ -30,12 +30,7 @@ class tester_t(parser_test_case.parser_test_case_t):
def test_namespace_argument_in... | Use an assertRaises in test, remove exception with pass | py |
diff --git a/s3direct/views.py b/s3direct/views.py
index <HASH>..<HASH> 100644
--- a/s3direct/views.py
+++ b/s3direct/views.py
@@ -5,11 +5,13 @@ from urllib.parse import unquote
from django.conf import settings
from django.http import HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, HttpResponseNotFound, ... | CSRF-protect views in case the user hasn't enabled CSRF middleware. | py |
diff --git a/openquake/calculators/tests/event_based_risk_test.py b/openquake/calculators/tests/event_based_risk_test.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/tests/event_based_risk_test.py
+++ b/openquake/calculators/tests/event_based_risk_test.py
@@ -354,12 +354,12 @@ agg_id
# check aggcurv... | Raised tolerance in EventBasedRiskTestCase::test_case_master | py |
diff --git a/raven/conf/__init__.py b/raven/conf/__init__.py
index <HASH>..<HASH> 100644
--- a/raven/conf/__init__.py
+++ b/raven/conf/__init__.py
@@ -19,7 +19,7 @@ def load(dsn, scope):
>>> raven.load(dsn, locals())
"""
url = urlparse.urlparse(dsn)
- if url.scheme not in ('http', 'https'):
+ if ur... | Support udp scheme in raven.load | py |
diff --git a/treeherder/perf/management/commands/import_perf_data.py b/treeherder/perf/management/commands/import_perf_data.py
index <HASH>..<HASH> 100644
--- a/treeherder/perf/management/commands/import_perf_data.py
+++ b/treeherder/perf/management/commands/import_perf_data.py
@@ -36,7 +36,7 @@ def _add_series(pc, pro... | Bug <I> - Fix import_perf_data exception string formatting (#<I>) Since `.format()` doesn't support `%s`. Found by the eslint `too-many-format-args` rule. | py |
diff --git a/salt/renderers/gpg.py b/salt/renderers/gpg.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/gpg.py
+++ b/salt/renderers/gpg.py
@@ -95,6 +95,7 @@ from salt.exceptions import SaltRenderError
# Import 3rd-party libs
import salt.ext.six as six
+
# pylint: disable=import-error
try:
import gnupg
@@... | Move from basestring to six.string_types which is compatible with python 2 and 3 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ required_packages = ["graphql-core>=2.1", "promise"]
setup(
name="graphql-server-core",
- version="1.1rc0",
+ version="1.1",
description="GraphQL Server tools for powering your server",
lon... | Updated version to <I> | py |
diff --git a/django_q/cluster.py b/django_q/cluster.py
index <HASH>..<HASH> 100644
--- a/django_q/cluster.py
+++ b/django_q/cluster.py
@@ -426,7 +426,6 @@ def save_cached(task, broker):
iter_count = task.get('iter_count', 0)
# if it's a group append to the group list
if group:
- ta... | Fixes bug where task with a group only has a group result. | py |
diff --git a/Imports/fits_image.py b/Imports/fits_image.py
index <HASH>..<HASH> 100644
--- a/Imports/fits_image.py
+++ b/Imports/fits_image.py
@@ -77,11 +77,15 @@ class FitsImage():
# dimensions of length 1
if self._pixels is None:
if len(self.hdu.data.shape) == 2:
- self._... | in response to #<I>, fits_image now exclusively uses NaN for blanked pixels, reguardless of which version of pyfits is used | py |
diff --git a/fudge/__init__.py b/fudge/__init__.py
index <HASH>..<HASH> 100644
--- a/fudge/__init__.py
+++ b/fudge/__init__.py
@@ -267,6 +267,13 @@ class Call(object):
return return_value
def _args_are_equal(self, actual_args, expected_args):
+ if (len(actual_args)<=1 and len(expected_arg... | better detection of simple kwargs | py |
diff --git a/hearthstone/utils.py b/hearthstone/utils.py
index <HASH>..<HASH> 100644
--- a/hearthstone/utils.py
+++ b/hearthstone/utils.py
@@ -189,6 +189,17 @@ UPGRADABLE_CARDS_MAP = {
"DAL_366t2": "DAL_366",
"DAL_366t3": "DAL_366",
"DAL_366t4": "DAL_366",
+ # Galakrond
+ "DRG_600t2": "DRG_600",
+ "DRG_600t3": "D... | Add Galakrond to list of upgraded cards | py |
diff --git a/pygccxml/parser/scanner.py b/pygccxml/parser/scanner.py
index <HASH>..<HASH> 100644
--- a/pygccxml/parser/scanner.py
+++ b/pygccxml/parser/scanner.py
@@ -261,9 +261,19 @@ class scanner_t(xml.sax.handler.ContentHandler):
if "CastXML" in utils.xml_generator:
# These fields are generated... | Add support for clang <I> (trunk) (see bug #<I>) The fields without file defintion have been added to the list of tags which need to be skipped. Chery-picked from develop branch | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ packages = setuptools.find_packages()
setuptools.setup(
name="dialogflow",
- version="0.7.0",
+ version=version,
author="Google LLC",
author_email="googleapis-packages@google.com",
l... | fix: define version once in setup.py (#<I>) | py |
diff --git a/molo/profiles/tests/test_views.py b/molo/profiles/tests/test_views.py
index <HASH>..<HASH> 100644
--- a/molo/profiles/tests/test_views.py
+++ b/molo/profiles/tests/test_views.py
@@ -574,4 +574,16 @@ class ForgotPasswordViewTest(TestCase):
response = self.client.get(
reverse("molo.prof... | layed out tests for ForgotPassword | py |
diff --git a/backtrader/order.py b/backtrader/order.py
index <HASH>..<HASH> 100644
--- a/backtrader/order.py
+++ b/backtrader/order.py
@@ -150,6 +150,8 @@ class OrderData(object):
# price must always be set if pricelimit is set ...
self.price = pricelimit
+ self.plimit = pricelimit
+
... | Add plimit alias to order and orderdata | py |
diff --git a/src/micropython.py b/src/micropython.py
index <HASH>..<HASH> 100755
--- a/src/micropython.py
+++ b/src/micropython.py
@@ -1,2 +1,14 @@
def const(x):
return x
+
+
+def native(f):
+ return f
+
+
+def viper(f):
+ raise SyntaxError("invalid micropython decorator")
+
+
+def asm_thumb(f):
+ raise ... | Add stubs for micropython.natve, viper, and asm_thumb | py |
diff --git a/papermill/preprocess.py b/papermill/preprocess.py
index <HASH>..<HASH> 100644
--- a/papermill/preprocess.py
+++ b/papermill/preprocess.py
@@ -7,6 +7,7 @@ from concurrent import futures
from nbconvert.preprocessors import ExecutePreprocessor
from nbconvert.preprocessors.execute import CellExecutionError
... | add new iopub_timeout default value to account for change in exec order | py |
diff --git a/voluptuous.py b/voluptuous.py
index <HASH>..<HASH> 100644
--- a/voluptuous.py
+++ b/voluptuous.py
@@ -776,6 +776,9 @@ def _compile_itemsort():
def is_extra(key_):
return key_ is Extra
+ def is_remove(key_):
+ return isinstance(key_, Remove)
+
def is_marker(key_):
ret... | set Remove as hightest priority Marker to avoid conflicts | py |
diff --git a/twilio/http/http_client.py b/twilio/http/http_client.py
index <HASH>..<HASH> 100644
--- a/twilio/http/http_client.py
+++ b/twilio/http/http_client.py
@@ -5,7 +5,9 @@ from twilio.http.response import Response
class TwilioHttpClient(HttpClient):
- """General purpose HTTP Client for interacting with t... | Document `http/http_client.py` | py |
diff --git a/hepdata_converter/testsuite/test_rootwriter.py b/hepdata_converter/testsuite/test_rootwriter.py
index <HASH>..<HASH> 100644
--- a/hepdata_converter/testsuite/test_rootwriter.py
+++ b/hepdata_converter/testsuite/test_rootwriter.py
@@ -55,7 +55,7 @@ class ROOTWriterTestSuite(WriterTestSuite):
f.Clos... | Ensure we use a binary output file for root | py |
diff --git a/opan/hess.py b/opan/hess.py
index <HASH>..<HASH> 100644
--- a/opan/hess.py
+++ b/opan/hess.py
@@ -410,12 +410,26 @@ class OrcaHess(SuperOpanHess):
Retrieves individual lines of the frequencies block.
- p_jobs_block: Entire job list block
- p_jobs_line: Individual lines of the... | DOC: Bit of progress on OrcaHess | py |
diff --git a/synapse/lib/ingest.py b/synapse/lib/ingest.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/ingest.py
+++ b/synapse/lib/ingest.py
@@ -221,6 +221,7 @@ class Ingest(EventBus):
raise Exception('Ingest Info Not Found: %s' % (path,))
for data in self._openDataSorc(path,info):
+ ... | initial mm prep code for inet ingest | py |
diff --git a/autoapi/extension.py b/autoapi/extension.py
index <HASH>..<HASH> 100644
--- a/autoapi/extension.py
+++ b/autoapi/extension.py
@@ -161,7 +161,21 @@ def _traverse_parent(node, objtypes):
def doctree_resolved(app, doctree, docname):
- "Add domain objects to the toctree"
+ """
+ Add domain object... | Write up a more descriptive docstring | py |
diff --git a/skflow/models.py b/skflow/models.py
index <HASH>..<HASH> 100644
--- a/skflow/models.py
+++ b/skflow/models.py
@@ -29,7 +29,11 @@ def linear_regression(X, y):
Predictions and loss tensors.
"""
with tf.variable_scope('linear_regression'):
- output_shape = y.get_shape()[1]
+ y... | Fix for shape inference when y is rank == 1 | py |
diff --git a/spyder/utils/encoding.py b/spyder/utils/encoding.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/encoding.py
+++ b/spyder/utils/encoding.py
@@ -249,4 +249,7 @@ def is_text_file(filename):
"""
Test if the given path is a text-like file.
"""
- return not is_binary(filename)
+ try:
... | Catch error raised in isbinaryornot when trying to open a directory | py |
diff --git a/salt/grains/napalm.py b/salt/grains/napalm.py
index <HASH>..<HASH> 100644
--- a/salt/grains/napalm.py
+++ b/salt/grains/napalm.py
@@ -222,7 +222,7 @@ def uptime(proxy=None):
CLI Example - select all devices started/restarted within the last hour:
- .. code-block: bash
+ .. code-block:: bash
... | Fix docstring for uptime grain | py |
diff --git a/tensor2tensor/mesh_tensorflow/research/moe.py b/tensor2tensor/mesh_tensorflow/research/moe.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/mesh_tensorflow/research/moe.py
+++ b/tensor2tensor/mesh_tensorflow/research/moe.py
@@ -475,6 +475,10 @@ def _top_2_gating(
inputs, experts_dim, use_bias=Fals... | Get bf<I> activations working with mixture-of-experts. PiperOrigin-RevId: <I> | py |
diff --git a/vcr/serializers/compat.py b/vcr/serializers/compat.py
index <HASH>..<HASH> 100644
--- a/vcr/serializers/compat.py
+++ b/vcr/serializers/compat.py
@@ -24,7 +24,7 @@ def convert_body_to_bytes(resp):
http://pyyaml.org/wiki/PyYAMLDocumentation#Python3support
"""
try:
- if not isinstance(r... | VCR AttributeError: 'NoneType' object has no attribute 'encode' Hi, Using an old fork but may be usefull. I think checking the string is required like on line <I>. Best regards | py |
diff --git a/zake/fake_client.py b/zake/fake_client.py
index <HASH>..<HASH> 100644
--- a/zake/fake_client.py
+++ b/zake/fake_client.py
@@ -195,10 +195,10 @@ class FakeClient(object):
return path
def create_async(self, path, value=b"", acl=None,
- ephemeral=False, sequence=False):
+ ... | Include makepath on the create_async method | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.