diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/bcbio/cwl/defs.py b/bcbio/cwl/defs.py
index <HASH>..<HASH> 100644
--- a/bcbio/cwl/defs.py
+++ b/bcbio/cwl/defs.py
@@ -133,7 +133,7 @@ def _variant_vc(checkpoints):
"gatk", "gatk4", "gatk-framework",
"htslib", "picard", "platypus-variant", "pythonpy"... | CWL: bump R to <I> release | py |
diff --git a/bigquery/tests/test_query_builder.py b/bigquery/tests/test_query_builder.py
index <HASH>..<HASH> 100644
--- a/bigquery/tests/test_query_builder.py
+++ b/bigquery/tests/test_query_builder.py
@@ -295,6 +295,35 @@ class TestGroupings(unittest.TestCase):
self.assertEqual(result, "")
+class TestRen... | Unit Test for HAVING Clause | py |
diff --git a/cumulusci/cli/logger.py b/cumulusci/cli/logger.py
index <HASH>..<HASH> 100644
--- a/cumulusci/cli/logger.py
+++ b/cumulusci/cli/logger.py
@@ -27,6 +27,7 @@ def init_logger(log_requests=False):
formatter = coloredlogs.ColoredFormatter(fmt="%(asctime)s: %(message)s")
handler = logging.StreamHandl... | Don't use terminator on StreamHandler | py |
diff --git a/pavement.py b/pavement.py
index <HASH>..<HASH> 100644
--- a/pavement.py
+++ b/pavement.py
@@ -23,7 +23,7 @@ setup(name='wheeler.dmf-control-board-firmware',
packages=['dmf_control_board_firmware'],
include_package_data=True,
install_requires=['arduino_helpers>=0.3.post4', 'decorator', ... | Bump the base_node version requirement to <I> | py |
diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py
+++ b/openstack_das... | Correct IP Proto sec group rules help txt The IP Proto field contains a tip to use -1, which is not supported in our validator or from the neutron cli. Closes-Bug: #<I> Change-Id: Ic<I>d<I>cefba3ded5fbfc<I>f3f6c<I> | py |
diff --git a/demosys/project/base.py b/demosys/project/base.py
index <HASH>..<HASH> 100644
--- a/demosys/project/base.py
+++ b/demosys/project/base.py
@@ -89,19 +89,27 @@ class BaseProject:
getattr(resources, meta.resource_type).add(meta)
def get_effect(self, label):
- return self._effects... | Provide proper error messages when resource labels are not found | py |
diff --git a/ravel.py b/ravel.py
index <HASH>..<HASH> 100644
--- a/ravel.py
+++ b/ravel.py
@@ -629,9 +629,6 @@ def _message_interface_dispatch(connection, message, bus) :
out_signature = dbus.parse_signature(call_info["out_signature"])
async def await_result(coro) :
... | no more fudging: handler must always return a sequence | py |
diff --git a/porespy/networks/__funcs__.py b/porespy/networks/__funcs__.py
index <HASH>..<HASH> 100644
--- a/porespy/networks/__funcs__.py
+++ b/porespy/networks/__funcs__.py
@@ -495,7 +495,7 @@ def label_boundary_cells(network=None, boundary_faces=None):
def label_phases(
network,
- alias={1: 'void'... | changed label_boundaries add pore.boundary as well as pore.left | py |
diff --git a/f90nml/findex.py b/f90nml/findex.py
index <HASH>..<HASH> 100644
--- a/f90nml/findex.py
+++ b/f90nml/findex.py
@@ -31,7 +31,7 @@ class FIndex(object):
state = self.current[:]
for rank, idx in enumerate(self.current):
- if self.end[rank] and idx < (self.end[rank] - 1):
+ ... | Unbounded index bugfix Unbounded existence check was logically incorrect, resolved with a `not`. | py |
diff --git a/hdbscan/hdbscan_.py b/hdbscan/hdbscan_.py
index <HASH>..<HASH> 100644
--- a/hdbscan/hdbscan_.py
+++ b/hdbscan/hdbscan_.py
@@ -191,7 +191,7 @@ def _hdbscan_sparse_distance_matrix(X, min_samples=5, alpha=1.0,
# Sort edges of the min_spanning_tree by weight
min_spanning_tree = min_spanning_tree[np... | Fix a minor bug in sparse distance matrix handling | py |
diff --git a/bcbio/variation/annotation.py b/bcbio/variation/annotation.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/annotation.py
+++ b/bcbio/variation/annotation.py
@@ -193,7 +193,7 @@ def add_genome_context(orig_file, data):
out_handle.write('file = "%s"\n' % fname)
... | validation: no dups in stratification annotation | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ except (ImportError, IOError, RuntimeError) as e:
LDESC = ''
setup(name='brother_ql',
- version = '0.7.0',
+ version = '0.7.dev0',
description = 'Python package to talk to Brother QL lab... | reset version to <I>.dev0 | py |
diff --git a/pubmed_lookup/pubmed_lookup.py b/pubmed_lookup/pubmed_lookup.py
index <HASH>..<HASH> 100644
--- a/pubmed_lookup/pubmed_lookup.py
+++ b/pubmed_lookup/pubmed_lookup.py
@@ -101,8 +101,12 @@ class Publication(object):
Parse PubMed XML dictionary to retrieve abstract.
"""
abstract_par... | Lookup abstract text within a try/except block | py |
diff --git a/tests/test_bootstrap_sampler.py b/tests/test_bootstrap_sampler.py
index <HASH>..<HASH> 100644
--- a/tests/test_bootstrap_sampler.py
+++ b/tests/test_bootstrap_sampler.py
@@ -246,7 +246,6 @@ class SamplerTests(unittest.TestCase):
func,
bad_re... | Completed initial test suite for bootstrap_samplyer.py | py |
diff --git a/zhaquirks/xiaomi/aqara/opple_remote.py b/zhaquirks/xiaomi/aqara/opple_remote.py
index <HASH>..<HASH> 100644
--- a/zhaquirks/xiaomi/aqara/opple_remote.py
+++ b/zhaquirks/xiaomi/aqara/opple_remote.py
@@ -1041,7 +1041,7 @@ class RemoteB686OPCN01V3(XiaomiCustomDevice):
2: {
PROFIL... | Update opple_remote.py (#<I>) | py |
diff --git a/responders/UmbrellaBlacklister/UmbrellaBlacklister.py b/responders/UmbrellaBlacklister/UmbrellaBlacklister.py
index <HASH>..<HASH> 100644
--- a/responders/UmbrellaBlacklister/UmbrellaBlacklister.py
+++ b/responders/UmbrellaBlacklister/UmbrellaBlacklister.py
@@ -16,7 +16,7 @@ class UmbrellaBlacklister(Respo... | Keep ioc_types in list instead of dict | py |
diff --git a/examples/dataset_matching/dataset_matching.py b/examples/dataset_matching/dataset_matching.py
index <HASH>..<HASH> 100644
--- a/examples/dataset_matching/dataset_matching.py
+++ b/examples/dataset_matching/dataset_matching.py
@@ -169,7 +169,7 @@ deduper.writeSettings(settings_file)
# them in to blocks. Ea... | Passing the constrained_matching flag to blockData | py |
diff --git a/jax/numpy/lax_numpy.py b/jax/numpy/lax_numpy.py
index <HASH>..<HASH> 100644
--- a/jax/numpy/lax_numpy.py
+++ b/jax/numpy/lax_numpy.py
@@ -1154,10 +1154,10 @@ def squeeze(a, axis: Union[int, Tuple[int, ...]] = None):
def expand_dims(a, axis: Union[int, Tuple[int, ...]]):
# TODO(https://github.com/google... | Fix mypy (#<I>) | py |
diff --git a/benchmarks/pmap_benchmark.py b/benchmarks/pmap_benchmark.py
index <HASH>..<HASH> 100644
--- a/benchmarks/pmap_benchmark.py
+++ b/benchmarks/pmap_benchmark.py
@@ -39,7 +39,7 @@ def pmap_shard_sharded_device_array_benchmark():
"""
def get_benchmark_fn(nargs, nshards):
- pmap_fn = pmap(lambda *args... | fix benchmark sums (#<I>) | py |
diff --git a/conllu/parser.py b/conllu/parser.py
index <HASH>..<HASH> 100644
--- a/conllu/parser.py
+++ b/conllu/parser.py
@@ -33,7 +33,13 @@ def parse_token_and_metadata(data, fields=None, field_parsers=None):
raise ParseException("Can't create TokenList, no data sent to constructor.")
fields = fields ... | Allow field_parsers to be set to a subset of all fields. | py |
diff --git a/twilio/rest/resources/phone_numbers.py b/twilio/rest/resources/phone_numbers.py
index <HASH>..<HASH> 100644
--- a/twilio/rest/resources/phone_numbers.py
+++ b/twilio/rest/resources/phone_numbers.py
@@ -147,7 +147,7 @@ class PhoneNumbers(ListResource):
def search(self, **kwargs):
"""
... | Corrected search country attribute to be non us/ca specific | py |
diff --git a/autoclass/tests/conftest.py b/autoclass/tests/conftest.py
index <HASH>..<HASH> 100644
--- a/autoclass/tests/conftest.py
+++ b/autoclass/tests/conftest.py
@@ -1,6 +1,5 @@
from py.xml import html
import pytest
-from setuptools_scm import find_matching_entrypoint
from setuptools_scm.git import GitWorkdir
... | * fixed bug in travis with other versions of setuptools_scm | py |
diff --git a/neomodel/util.py b/neomodel/util.py
index <HASH>..<HASH> 100644
--- a/neomodel/util.py
+++ b/neomodel/util.py
@@ -44,7 +44,6 @@ class Database(local):
self._pid = None
def set_connection(self, url):
- self.url = url
u = urlparse(url)
if u.netloc.find('@') > -1 and... | fix service unavailable issue (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -32,7 +32,7 @@ setuptools.setup(
packages=setuptools.find_packages(),
scripts=glob.glob('scripts/*'),
url='https://github.com/GoogleCloudPlatform/compute-image-packages',
- version='2.3.5',
+ version='2.3.... | Version bump the Google Python package to <I>. (#<I>) | py |
diff --git a/datacats/docker.py b/datacats/docker.py
index <HASH>..<HASH> 100644
--- a/datacats/docker.py
+++ b/datacats/docker.py
@@ -78,7 +78,7 @@ def _get_docker():
# workaround for connection issue when old version specified
# on some clients
version_client = Client(**_docker_... | Fix issue where lazy instantiation still referred to old name for a variable. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
author='Chris Kiehl',
author_email='audionautic@gmail.com',
package_data={
- '': ['*.txt', '*.png', '*.jpg', '*.json']
+ '': ['*.txt', '*.png', '*.jpg', '*.json', '*.ico']
... | Fixing error of 'icon.ico' not being present in filesystem when running mockapplication | py |
diff --git a/blockstore/blockstored.py b/blockstore/blockstored.py
index <HASH>..<HASH> 100644
--- a/blockstore/blockstored.py
+++ b/blockstore/blockstored.py
@@ -638,7 +638,7 @@ def blockstore_name_revoke( name, privatekey, tx_only=False, pay_fee=True, subsi
log.debug("revoke <%s>" % name )
return resp... | Only try to close the logfile if it exists | py |
diff --git a/mailmerge/main.py b/mailmerge/main.py
index <HASH>..<HASH> 100644
--- a/mailmerge/main.py
+++ b/mailmerge/main.py
@@ -8,8 +8,7 @@ import os
import sys
import smtplib
import email.parser
-import ConfigParser #FIXME: not python3 compatible
-from builtins import input # for Python 2 and 3 compatibility
+i... | Updated library usage for python3 | py |
diff --git a/vcr/cassette.py b/vcr/cassette.py
index <HASH>..<HASH> 100644
--- a/vcr/cassette.py
+++ b/vcr/cassette.py
@@ -38,20 +38,18 @@ class CassetteContextDecorator(object):
with contextlib2.ExitStack() as exit_stack:
for patcher in build_patchers(cassette):
exit_stack.enter_... | Python version agnostic way of getting the next item in the generator. | py |
diff --git a/hotdoc/core/doc_tree.py b/hotdoc/core/doc_tree.py
index <HASH>..<HASH> 100644
--- a/hotdoc/core/doc_tree.py
+++ b/hotdoc/core/doc_tree.py
@@ -72,6 +72,11 @@ class Page(object):
else:
self.symbol_names = OrderedSet()
+ if meta and 'short-description' in meta:
+ self... | doc_tree: retrieve short description from metadata | py |
diff --git a/zounds/learn/pytorch_model.py b/zounds/learn/pytorch_model.py
index <HASH>..<HASH> 100644
--- a/zounds/learn/pytorch_model.py
+++ b/zounds/learn/pytorch_model.py
@@ -408,8 +408,26 @@ class PyTorchAutoEncoder(PyTorchNetwork):
trained_network = self.trainer.train(data)
- ff = self._forwar... | Ensure that out-of-memory GPU errors don't disrupt the learning phase | py |
diff --git a/unfriendly/templatetags/unfriendly_tags.py b/unfriendly/templatetags/unfriendly_tags.py
index <HASH>..<HASH> 100644
--- a/unfriendly/templatetags/unfriendly_tags.py
+++ b/unfriendly/templatetags/unfriendly_tags.py
@@ -23,7 +23,7 @@ def obfuscate(value, juice=None):
Include some SEO juice:
... | Enable/disable filter settings. Still needs tests. | py |
diff --git a/bibliopixel/control/midi.py b/bibliopixel/control/midi.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/control/midi.py
+++ b/bibliopixel/control/midi.py
@@ -1,5 +1,6 @@
import fractions
from . import control
+from .. util import log
try:
import mido
@@ -46,9 +47,28 @@ class Midi(control.Extracte... | MIDI monitor command prints MIDI at the keyboard | py |
diff --git a/datatableview/helpers.py b/datatableview/helpers.py
index <HASH>..<HASH> 100644
--- a/datatableview/helpers.py
+++ b/datatableview/helpers.py
@@ -416,3 +416,5 @@ def make_processor(func, arg=None):
extra_arg = []
return func(value, *extra_arg)
return helper
+
+through_filter = ma... | Oops, forgot to alias the helper Want to stay backward compatible with <I> | py |
diff --git a/imhotep/testing_utils.py b/imhotep/testing_utils.py
index <HASH>..<HASH> 100644
--- a/imhotep/testing_utils.py
+++ b/imhotep/testing_utils.py
@@ -16,6 +16,7 @@ class JsonWrapper(object):
def json(self):
return self.payload
+
class Requester(object):
def __init__(self, fixture):
... | E<I> expected 2 blank lines, found 1 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,6 @@ sponsor_url = "https://github.com/sponsors/fabiocaccamo/"
twitter_url = "https://twitter.com/fabiocaccamo"
package_name = "django-admin-interface"
package_url = "{}/{}".format(github_url, package_name)
-packa... | Corrected wrong PyPI project urls. | py |
diff --git a/angr/exploration_techniques/loop_seer.py b/angr/exploration_techniques/loop_seer.py
index <HASH>..<HASH> 100644
--- a/angr/exploration_techniques/loop_seer.py
+++ b/angr/exploration_techniques/loop_seer.py
@@ -42,7 +42,8 @@ class LoopSeer(ExplorationTechnique):
if type(loops) in (list, tuple) an... | Fix List Out of Range in Loop Seer (#<I>) | py |
diff --git a/anchore/anchore-modules/gates/13_file_content_check.py b/anchore/anchore-modules/gates/13_file_content_check.py
index <HASH>..<HASH> 100755
--- a/anchore/anchore-modules/gates/13_file_content_check.py
+++ b/anchore/anchore-modules/gates/13_file_content_check.py
@@ -43,16 +43,20 @@ fname_regexps = list()
i... | ensure that parameters regexp strings are more permissive for the content search gate | py |
diff --git a/bulbs/indexable/conf/defaults.py b/bulbs/indexable/conf/defaults.py
index <HASH>..<HASH> 100644
--- a/bulbs/indexable/conf/defaults.py
+++ b/bulbs/indexable/conf/defaults.py
@@ -19,8 +19,9 @@ ES_SETTINGS = {
"tokenizer": {
"edge_ngram_tokenizer": {
"type" ... | Fixing up the autocomplete ngram | py |
diff --git a/matrix_client/api.py b/matrix_client/api.py
index <HASH>..<HASH> 100644
--- a/matrix_client/api.py
+++ b/matrix_client/api.py
@@ -379,10 +379,11 @@ class MatrixHttpApi(object):
def forget_room(self, room_id):
"""Perform POST /rooms/$room_id/forget
+
Args:
room_id(str):... | Fix docstring and adjust `_send` call slightly | py |
diff --git a/gandi/cli/modules/status.py b/gandi/cli/modules/status.py
index <HASH>..<HASH> 100644
--- a/gandi/cli/modules/status.py
+++ b/gandi/cli/modules/status.py
@@ -1,6 +1,7 @@
""" Status commands module. """
-from datetime import datetime
+import urllib
+
from gandi.cli.core.base import GandiModule
@@ -3... | Use urrllib to properly encode querystring and use new filter for current events | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -1439,10 +1439,9 @@ class Cluster(object):
for ks_chunk in chunks:
messages = [PrepareMessage(query=s.query_string) for s in ks_chunk]
... | while repreparing, don't fail on first error also fixes iteration through responses for debug logging | py |
diff --git a/timeside/server/tests/test_items.py b/timeside/server/tests/test_items.py
index <HASH>..<HASH> 100644
--- a/timeside/server/tests/test_items.py
+++ b/timeside/server/tests/test_items.py
@@ -34,7 +34,7 @@ class ItemTests(TimeSideTestServer):
response = self.client.get(item_list_url, format='json')
... | fix assertion dict.keys type fail | py |
diff --git a/pymongo/bson.py b/pymongo/bson.py
index <HASH>..<HASH> 100644
--- a/pymongo/bson.py
+++ b/pymongo/bson.py
@@ -36,6 +36,12 @@ try:
except ImportError:
_use_c = False
+try:
+ import uuid
+ _use_uuid = True
+except ImportError:
+ _use_uuid = False
+
def _get_int(data):
try:
@@ -256,12... | only try importing uuid once | py |
diff --git a/salt/transport/__init__.py b/salt/transport/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/transport/__init__.py
+++ b/salt/transport/__init__.py
@@ -2,7 +2,7 @@
'''
Encapsulate the different transports available to Salt. Currently this is only ZeroMQ.
'''
-from __future__ import absolute_import
+f... | Use print function, and Salt's `fopen` | py |
diff --git a/publisher/admin.py b/publisher/admin.py
index <HASH>..<HASH> 100644
--- a/publisher/admin.py
+++ b/publisher/admin.py
@@ -121,6 +121,7 @@ class PublisherAdmin(ModelAdmin):
})
return t.render(c)
publisher_status.short_description = 'Last Changes'
+ publisher_status.allow_tag = True... | Add allow_tag to custom column in publisher admin | py |
diff --git a/macroeco/compare.py b/macroeco/compare.py
index <HASH>..<HASH> 100644
--- a/macroeco/compare.py
+++ b/macroeco/compare.py
@@ -207,7 +207,7 @@ def get_ks_two_sample():
"""
-
+ pass
def get_ks_one_sample(): | Added pass in ks_two_sample | py |
diff --git a/ca/django_ca/forms.py b/ca/django_ca/forms.py
index <HASH>..<HASH> 100644
--- a/ca/django_ca/forms.py
+++ b/ca/django_ca/forms.py
@@ -172,7 +172,7 @@ class CreateCertificateForm(forms.ModelForm):
fields = ['csr', 'watchers', 'ca', ]
help_texts = {
'csr': _('''The Certificate ... | change helper text to use <I> keylength | py |
diff --git a/salt/states/firewall.py b/salt/states/firewall.py
index <HASH>..<HASH> 100644
--- a/salt/states/firewall.py
+++ b/salt/states/firewall.py
@@ -2,12 +2,11 @@
'''
State to check firewall configurations
'''
-# import libs
-import os
-import salt.utils
def __virtual__():
+
+
'''
Load o... | Updated firewall.py Fixed py lint errors | py |
diff --git a/depot/io/awss3.py b/depot/io/awss3.py
index <HASH>..<HASH> 100644
--- a/depot/io/awss3.py
+++ b/depot/io/awss3.py
@@ -77,12 +77,18 @@ class S3Storage(FileStorage):
""":class:`depot.io.interfaces.FileStorage` implementation that stores files on S3.
All the files are stored inside a bucket named ... | Improve S3Storage documentation according to increased amount of options | py |
diff --git a/tests/unit/modules/test_zcbuildout.py b/tests/unit/modules/test_zcbuildout.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_zcbuildout.py
+++ b/tests/unit/modules/test_zcbuildout.py
@@ -78,7 +78,7 @@ class Base(TestCase, LoaderModuleMockMixin):
[salt.utils.path.which_bin(KNOWN_VIRT... | Only upgrade to `setuptools<<I>` since the test requires `easy_install` | py |
diff --git a/trustar/models/cursor_page.py b/trustar/models/cursor_page.py
index <HASH>..<HASH> 100644
--- a/trustar/models/cursor_page.py
+++ b/trustar/models/cursor_page.py
@@ -90,10 +90,11 @@ class CursorPage(Page):
next_cursor = response_metadata.get('nextCursor')
return next_cursor
... | made stopping condition more clear for pagination loop | py |
diff --git a/boundary/metric_get.py b/boundary/metric_get.py
index <HASH>..<HASH> 100644
--- a/boundary/metric_get.py
+++ b/boundary/metric_get.py
@@ -32,7 +32,7 @@ class MetricGet(MetricCommon):
MetricCommon.addArguments(self)
self.parser.add_argument('-n', '--metric-name', dest='metric_name', action... | Changed argument that was conflicting with API host | py |
diff --git a/rllib/evaluation/worker_set.py b/rllib/evaluation/worker_set.py
index <HASH>..<HASH> 100644
--- a/rllib/evaluation/worker_set.py
+++ b/rllib/evaluation/worker_set.py
@@ -342,7 +342,8 @@ class WorkerSet:
def stop(self) -> None:
"""Calls `stop` on all rollout workers (including the local one)."... | RLlib: Fix bug: `WorkerSet.stop()` will raise error if `self._local_worker` is None (e.g. in evaluation worker sets). (#<I>) | py |
diff --git a/sample_project/blog/views.py b/sample_project/blog/views.py
index <HASH>..<HASH> 100644
--- a/sample_project/blog/views.py
+++ b/sample_project/blog/views.py
@@ -13,8 +13,8 @@ class ImagePicker(FilePicker):
'name': unicode(obj), 'url': obj.file.url,
'thumb': {
'ur... | Changed append to url width height | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -141,9 +141,9 @@ html_theme_options = {
'show_powered_by': False,
'extra_nav_links': {
'invenio-oauthclient@GitHub':
- 'http://github.com/inveniosoftware/invenio-oauthclient',
+ ... | docs: autodoc configuration and HTTPS fix * Replaces HTTP links with HTTPS where possible. | py |
diff --git a/pypot/server/httpserver.py b/pypot/server/httpserver.py
index <HASH>..<HASH> 100644
--- a/pypot/server/httpserver.py
+++ b/pypot/server/httpserver.py
@@ -65,19 +65,18 @@ class LocalIp(PoppyRequestHandler):
s.close()
return local_ip
- ip = "not found"
-
try:
ip = find_local_ip()
self.s... | feat(restapi): Adds details when Poppy is unable to find its IP. | py |
diff --git a/omego/framework.py b/omego/framework.py
index <HASH>..<HASH> 100755
--- a/omego/framework.py
+++ b/omego/framework.py
@@ -93,11 +93,11 @@ class Command(object):
self.parser.set_defaults(func=self.__call__)
self.parser.add_argument(
- "-v", "--verbose", action="count", default... | Fix flake8 warnings in framework.py | py |
diff --git a/cmd2.py b/cmd2.py
index <HASH>..<HASH> 100755
--- a/cmd2.py
+++ b/cmd2.py
@@ -370,7 +370,9 @@ class Cmd(cmd.Cmd):
- terminator: ['\n', '\n']
- terminator: ['\n', '\n']
'''
- outputParser = pyparsing.oneOf(['>>','>'])('output')
+ #outputParser = pyparsing.oneOf... | do not interpret => as having the redirector > | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ setup(
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
],
- packages=find_packages('.', exclude=('tests*', 'testing*')),
+ pac... | Simplify `find_packages` call | py |
diff --git a/unittests/declarations_tester.py b/unittests/declarations_tester.py
index <HASH>..<HASH> 100644
--- a/unittests/declarations_tester.py
+++ b/unittests/declarations_tester.py
@@ -85,7 +85,7 @@ class declarations_t(parser_test_case.parser_test_case_t):
# qualifier, which is wrong; Keep the test like... | The compiler name is GCC-XML | py |
diff --git a/irc/client.py b/irc/client.py
index <HASH>..<HASH> 100644
--- a/irc/client.py
+++ b/irc/client.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Copyright (C) 1999-2002 Joel Rosdahl
-# Portions Copyright � 2011 Jason R. Coombs
+# Portions Copyright © 2011 Jason R. Coombs
#
# This library is free software... | Use UTF-8 copyright symbol in this file | py |
diff --git a/Lib/fontParts/base/point.py b/Lib/fontParts/base/point.py
index <HASH>..<HASH> 100644
--- a/Lib/fontParts/base/point.py
+++ b/Lib/fontParts/base/point.py
@@ -165,15 +165,11 @@ class BasePoint(BaseObject, TransformationMixin, PointPositionMixin, SelectionMi
)
def _get_base_smooth(self):
- ... | Upon further review, some environments may allow this so don't perform the check. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -29,6 +29,12 @@ data = (
("Mozilla/4.0 (compatible; MSIE 6.0; MSIE 5.5; Windows NT 5.1) Opera 7.02 [en]",
('Windows XP', 'Opera 7.02'),
{'os': {'name': 'Windows', 'version': 'XP'}, 'browser': {'name': 'Opera', 'vers... | added a couple of simple MSIE tests | py |
diff --git a/tensor2tensor/rl/rl_trainer_lib.py b/tensor2tensor/rl/rl_trainer_lib.py
index <HASH>..<HASH> 100644
--- a/tensor2tensor/rl/rl_trainer_lib.py
+++ b/tensor2tensor/rl/rl_trainer_lib.py
@@ -33,9 +33,12 @@ from tensor2tensor.rl.envs import utils
import tensorflow as tf
-def define_train(hparams, environmen... | Allowing lambda's in the environment specification | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -19,10 +19,8 @@
import sys
from os.path import abspath, dirname, join
from recommonmark.parser import CommonMarkParser
-from django.conf import settings
sys.path.append(abspath(join(dirname(__file__), "_e... | Remove vestigial (unused?) Django settings import. We shouldn't need Django and/or project dependencies installed to build docs. | py |
diff --git a/opbeat/contrib/flask/__init__.py b/opbeat/contrib/flask/__init__.py
index <HASH>..<HASH> 100644
--- a/opbeat/contrib/flask/__init__.py
+++ b/opbeat/contrib/flask/__init__.py
@@ -187,8 +187,8 @@ class Opbeat(object):
else:
opbeat.instrumentation.control.instrument()
- sign... | Only listen to Flask signals for the application that is being initialised | py |
diff --git a/src/python/LifeCycleTests/LifeCycleTools/PayloadHandler.py b/src/python/LifeCycleTests/LifeCycleTools/PayloadHandler.py
index <HASH>..<HASH> 100644
--- a/src/python/LifeCycleTests/LifeCycleTools/PayloadHandler.py
+++ b/src/python/LifeCycleTests/LifeCycleTools/PayloadHandler.py
@@ -1,5 +1,5 @@
import copy
... | Use cjson in PayloadHandler | py |
diff --git a/raiden/ui/cli.py b/raiden/ui/cli.py
index <HASH>..<HASH> 100644
--- a/raiden/ui/cli.py
+++ b/raiden/ui/cli.py
@@ -116,15 +116,15 @@ def check_json_rpc(client):
major, minor, patch = [
int(x) for x in re.search('//v(\d)\.(\d)\.(\d)', client_version).groups()
]
- ... | Use tuple comparison in version check Also add bump geth version requirement to geth <I> for the CLI. | py |
diff --git a/riemann/tx/tx.py b/riemann/tx/tx.py
index <HASH>..<HASH> 100644
--- a/riemann/tx/tx.py
+++ b/riemann/tx/tx.py
@@ -198,7 +198,7 @@ class VarInt(ByteData):
ret = VarInt(utils.le2i(num))
if ('zcash' in riemann.get_current_network_name()
- and len(num) != len(byte_string)):
+... | fixed error condition that was untriggerable | py |
diff --git a/pyipma/forecast.py b/pyipma/forecast.py
index <HASH>..<HASH> 100644
--- a/pyipma/forecast.py
+++ b/pyipma/forecast.py
@@ -101,5 +101,8 @@ class Forecast:
return self._weather_type_description[self.weather_type].descIdWeatherTypePT
def __repr__(self):
+ if self.humidity is None:
+ ... | dont print humidity when there is no humidity | py |
diff --git a/gwpy/plot/tests/test_colors.py b/gwpy/plot/tests/test_colors.py
index <HASH>..<HASH> 100644
--- a/gwpy/plot/tests/test_colors.py
+++ b/gwpy/plot/tests/test_colors.py
@@ -57,3 +57,7 @@ def test_format_norm():
assert norm is n
assert norm.vmin == 10
assert norm.vmax == 1000
+
+ # check clim... | gwpy.plot: added regression test see eecac5aa1b<I>c3f3af3ea<I>f<I>af9 | py |
diff --git a/spyder/plugins/plots/widgets/figurebrowser.py b/spyder/plugins/plots/widgets/figurebrowser.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/plots/widgets/figurebrowser.py
+++ b/spyder/plugins/plots/widgets/figurebrowser.py
@@ -497,10 +497,13 @@ class FigureViewer(QScrollArea):
# Scale the image... | Rework how scaled img size is calculated It doesn't make sense to use the scroll bar width here. It is more logical to use pixel metrics related to margins instead. | py |
diff --git a/properties/base/instance.py b/properties/base/instance.py
index <HASH>..<HASH> 100644
--- a/properties/base/instance.py
+++ b/properties/base/instance.py
@@ -143,9 +143,7 @@ class Instance(basic.Property):
return self.from_json(value, **kwargs)
def equal(self, value_a, value_b):
- if... | Rely on properties.equal logic in properties.Instance | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -210,22 +210,6 @@ if not os.path.exists(fn):
"from the repository"
.format(fn))
-# exclude sources that contain a main function
-EXCLUDE = {
- "samtools": (
- ),
- "bcftools": (
- "test", "p... | Remove unused constant This now appears to live in devtools/import.py | py |
diff --git a/msmbuilder/tests/test_alphaanglefeaturizer.py b/msmbuilder/tests/test_alphaanglefeaturizer.py
index <HASH>..<HASH> 100644
--- a/msmbuilder/tests/test_alphaanglefeaturizer.py
+++ b/msmbuilder/tests/test_alphaanglefeaturizer.py
@@ -1,7 +1,6 @@
import numpy as np
from mdtraj.testing import eq, raises
impor... | test_alphaanglefeaturizer fix | py |
diff --git a/master/buildbot/test/integration/test_worker_workerside.py b/master/buildbot/test/integration/test_worker_workerside.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/integration/test_worker_workerside.py
+++ b/master/buildbot/test/integration/test_worker_workerside.py
@@ -311,24 +311,24 @@ class T... | tests: Fix test failure when waiter Deferred is called twice This may happen if multpile keepalives happen before worker.keepalive_waiter is reset after the first call. | py |
diff --git a/km3pipe/pumps/ch.py b/km3pipe/pumps/ch.py
index <HASH>..<HASH> 100644
--- a/km3pipe/pumps/ch.py
+++ b/km3pipe/pumps/ch.py
@@ -25,6 +25,7 @@ class CHPump(Pump):
self.host = self.get('host') or '127.0.0.1'
self.port = self.get('port') or 5553
self.tag = self.get('tag') or 'MSG'
+ ... | Allows multiple tags to be subscrubed at once | py |
diff --git a/airflow/jobs.py b/airflow/jobs.py
index <HASH>..<HASH> 100644
--- a/airflow/jobs.py
+++ b/airflow/jobs.py
@@ -1569,7 +1569,7 @@ class SchedulerJob(BaseJob):
"Waiting for processors to finish since we're using sqlite")
self.processor_agent.wait_until_finished()
- ... | [AIRFLOW-<I>] Change Harvesting DAG parsing results to DEBUG log level (#<I>) | py |
diff --git a/tests/integration/states/pkgrepo.py b/tests/integration/states/pkgrepo.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/pkgrepo.py
+++ b/tests/integration/states/pkgrepo.py
@@ -9,6 +9,7 @@ from salttesting import skipIf
from salttesting.helpers import (
destructiveTest,
ensure_in_sy... | Skip the test if `python-apt` is not installed for Debian like systems. | py |
diff --git a/cobe/brain.py b/cobe/brain.py
index <HASH>..<HASH> 100644
--- a/cobe/brain.py
+++ b/cobe/brain.py
@@ -368,10 +368,16 @@ class Db:
random.shuffle(positions)
for pos in positions:
- q = "SELECT id FROM expr WHERE token%d_id = ? ORDER BY RANDOM()" \
+ q = "SELECT coun... | Use COUNT/OFFSET in get_random_expr. This is a significant performance improvement over ORDER BY RANDOM() | py |
diff --git a/wandb/data_types.py b/wandb/data_types.py
index <HASH>..<HASH> 100644
--- a/wandb/data_types.py
+++ b/wandb/data_types.py
@@ -288,7 +288,9 @@ class Table(Media):
dataframe
), "dataframe argument expects a `pandas.core.frame.DataFrame` object"
self.data = []
- self.colu... | WB-<I> - Stops users from creating Tables with invalid columns from dataframes | py |
diff --git a/sanic/__init__.py b/sanic/__init__.py
index <HASH>..<HASH> 100644
--- a/sanic/__init__.py
+++ b/sanic/__init__.py
@@ -1,6 +1,6 @@
from .sanic import Sanic
from .blueprints import Blueprint
-__version__ = '0.1.8'
+__version__ = '0.1.9'
__all__ = ['Sanic', 'Blueprint'] | Increment version to <I> | py |
diff --git a/src/qinfer/__init__.py b/src/qinfer/__init__.py
index <HASH>..<HASH> 100644
--- a/src/qinfer/__init__.py
+++ b/src/qinfer/__init__.py
@@ -44,3 +44,4 @@ from qinfer.parallel import *
from qinfer.score import *
from qinfer.rb import *
from qinfer.unstructured_models import *
+from qinfer.derived_models im... | Added derived_models to __init__. | py |
diff --git a/pale/adapters/webapp2.py b/pale/adapters/webapp2.py
index <HASH>..<HASH> 100644
--- a/pale/adapters/webapp2.py
+++ b/pale/adapters/webapp2.py
@@ -25,6 +25,13 @@ def pale_webapp2_request_handler_generator(pale_endpoint):
for each pale endpoint.
"""
def pale_handler(self, *args, **kwargs):
+ ... | catch all options and override headers | py |
diff --git a/internetarchive/cli/ia_upload.py b/internetarchive/cli/ia_upload.py
index <HASH>..<HASH> 100644
--- a/internetarchive/cli/ia_upload.py
+++ b/internetarchive/cli/ia_upload.py
@@ -266,6 +266,7 @@ def main(argv, session):
upload_kwargs_copy = deepcopy(upload_kwargs)
if row.ge... | Exclude REMOTE_NAME from the item's metadata on a CSV bulk upload. | py |
diff --git a/pysnmp/entity/rfc3413/cmdgen.py b/pysnmp/entity/rfc3413/cmdgen.py
index <HASH>..<HASH> 100644
--- a/pysnmp/entity/rfc3413/cmdgen.py
+++ b/pysnmp/entity/rfc3413/cmdgen.py
@@ -8,7 +8,7 @@ def getVersionSpecifics(snmpVersion):
pduVersion = snmpVersion
else:
pduVersion = 1
- return pd... | a workaround against wrongly hashed asn1 objects (to be fixed shortly) | py |
diff --git a/tests/test_customer_payments.py b/tests/test_customer_payments.py
index <HASH>..<HASH> 100644
--- a/tests/test_customer_payments.py
+++ b/tests/test_customer_payments.py
@@ -22,7 +22,7 @@ def test_get_all_customer_payments(client, response):
assert len(set(iterated_payment_ids)) == payments.count, 'Un... | change test_customer_payments to test_customer_payment because only one payment is created | py |
diff --git a/client/cli/ok.py b/client/cli/ok.py
index <HASH>..<HASH> 100644
--- a/client/cli/ok.py
+++ b/client/cli/ok.py
@@ -211,6 +211,10 @@ def main():
# Instantiating assignment
assign = assignment.load_assignment(args.config, args)
+ if assign.decryption_keypage:
+ # do not a... | Disable --local on exams (#<I>) | py |
diff --git a/salt/modules/smbios.py b/salt/modules/smbios.py
index <HASH>..<HASH> 100644
--- a/salt/modules/smbios.py
+++ b/salt/modules/smbios.py
@@ -156,7 +156,6 @@ def records(rec_type=None, fields=None, clean=True):
salt '*' smbios.records 14
salt '*' smbios.records 4 core_count,thread_count,curre... | Drop noisy dmidecode logs down to trace and reformat them | py |
diff --git a/openquake/engine/export/risk.py b/openquake/engine/export/risk.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/export/risk.py
+++ b/openquake/engine/export/risk.py
@@ -65,14 +65,6 @@ def _get_result_export_dest(target, output, file_ext='xml'):
As a side effect, intermediate directories are creat... | export/risk: Removed an obsolete bit of docstring. | py |
diff --git a/diff_cover/diff_reporter.py b/diff_cover/diff_reporter.py
index <HASH>..<HASH> 100644
--- a/diff_cover/diff_reporter.py
+++ b/diff_cover/diff_reporter.py
@@ -253,8 +253,8 @@ class GitDiffReporter(BaseDiffReporter):
return self._diff_dict
# Regular expressions used to parse the diff output
-... | This space will break some very specific files | py |
diff --git a/redongo/redongo_server.py b/redongo/redongo_server.py
index <HASH>..<HASH> 100644
--- a/redongo/redongo_server.py
+++ b/redongo/redongo_server.py
@@ -66,8 +66,13 @@ class RedongoServer(object):
self.completed_bulks = set()
self.objs = []
self.cipher = cipher_utils.AESCipher(__g... | Added loggers for queue load time | py |
diff --git a/arcana/data/file_format.py b/arcana/data/file_format.py
index <HASH>..<HASH> 100644
--- a/arcana/data/file_format.py
+++ b/arcana/data/file_format.py
@@ -427,6 +427,11 @@ targz_format = FileFormat(name='targz', extension='.tar.gz')
standard_formats = [text_format, json_format, directory_format, zip_format... | moved general image formats from Banana to Arcana | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,7 @@
import sys
+from io import open
+
try:
from setuptools import setup, find_packages | Fix python2 setup.py call to `open`. | py |
diff --git a/sos/plugins/devices.py b/sos/plugins/devices.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/devices.py
+++ b/sos/plugins/devices.py
@@ -21,6 +21,8 @@ class Devices(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
plugin_name = 'devices'
profiles = ('system', 'hardware', 'boot')
+ package... | [devices] add missing files and packages lists | py |
diff --git a/fedmsg_meta_fedora_infrastructure/tests/askbot.py b/fedmsg_meta_fedora_infrastructure/tests/askbot.py
index <HASH>..<HASH> 100644
--- a/fedmsg_meta_fedora_infrastructure/tests/askbot.py
+++ b/fedmsg_meta_fedora_infrastructure/tests/askbot.py
@@ -294,6 +294,10 @@ class TestAskbotUpdatedQuestion(Base):
... | Add an example email and avatar test. | py |
diff --git a/redmine/redmine.py b/redmine/redmine.py
index <HASH>..<HASH> 100644
--- a/redmine/redmine.py
+++ b/redmine/redmine.py
@@ -138,8 +138,12 @@ class Project(Redmine_Item):
'''Object representing a Redmine project.
Returned by Redmine getProject calls.
'''
+ # data hints:
id = None
+ name = None
ident... | Added data hints and corrected a comment | py |
diff --git a/constance/admin.py b/constance/admin.py
index <HASH>..<HASH> 100644
--- a/constance/admin.py
+++ b/constance/admin.py
@@ -112,6 +112,7 @@ class ConstanceForm(forms.Form):
class ConstanceAdmin(admin.ModelAdmin):
change_list_template = 'admin/constance/change_list.html'
+ change_list_form = Consta... | Moved ConstanceForm to a property to make it exchangable by inheritance | py |
diff --git a/saharaclient/osc/v1/job_binaries.py b/saharaclient/osc/v1/job_binaries.py
index <HASH>..<HASH> 100644
--- a/saharaclient/osc/v1/job_binaries.py
+++ b/saharaclient/osc/v1/job_binaries.py
@@ -414,15 +414,15 @@ class DownloadJobBinary(command.Command):
if not parsed_args.file:
parsed_arg... | Optimize command job-binary-download The command "dataprocessing job binary download" should raise exception directly if file exists. Change-Id: I0aa5c<I>a<I>d9bf5d<I>db<I>f<I>aa6b<I>d9f4 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.