diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/parsedmarc/elastic.py b/parsedmarc/elastic.py
index <HASH>..<HASH> 100644
--- a/parsedmarc/elastic.py
+++ b/parsedmarc/elastic.py
@@ -301,10 +301,10 @@ def save_aggregate_report_to_elasticsearch(aggregate_report,
org_name = metadata["org_name"]
report_id = metadata["report_id"]
domain = aggr... | Use UTC datetimes for Elastic. Elastic by default expects UTC. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,9 @@
from setuptools import setup, find_packages
import os
+import sys
+py_version = sys.version_info
version = __import__('django_ulogin').get_version()
readme = os.path.join(os.path.dirname(__file__), 'README... | what if without importlib? #2 | py |
diff --git a/a10_neutron_lbaas_client/resources/a10_appliance.py b/a10_neutron_lbaas_client/resources/a10_appliance.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas_client/resources/a10_appliance.py
+++ b/a10_neutron_lbaas_client/resources/a10_appliance.py
@@ -78,13 +78,22 @@ RESOURCE_ATTRIBUTE_MAP = {
... | Improvements to neutron a<I>-appliance client. Fix api_version. Allow (and require) api_version to be specified again. Validate protocol is http or https. Convert uppercase protocols to lowercase. Validate api_version is <I> or <I>. | py |
diff --git a/dataviews/plots.py b/dataviews/plots.py
index <HASH>..<HASH> 100644
--- a/dataviews/plots.py
+++ b/dataviews/plots.py
@@ -250,12 +250,20 @@ class Plot(param.Parameterized):
return axis
+ def warning(self, msg):
+ logger = param.parameterized.get_logger()
+ lvl = logger.getEffe... | Plot class now implements warning method that works inside display hook | py |
diff --git a/bokeh/protocol.py b/bokeh/protocol.py
index <HASH>..<HASH> 100644
--- a/bokeh/protocol.py
+++ b/bokeh/protocol.py
@@ -29,6 +29,10 @@ class BokehJSONEncoder(json.JSONEncoder):
vals = obj.values
return self.transform_array(vals)
+ # Check for astype failures (putative Numpy < 1.7)
+ ... | Workaround Numpy <I> datetime<I> astype issue. | py |
diff --git a/atomic_reactor/plugins/post_flatpak_create_oci.py b/atomic_reactor/plugins/post_flatpak_create_oci.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/plugins/post_flatpak_create_oci.py
+++ b/atomic_reactor/plugins/post_flatpak_create_oci.py
@@ -175,14 +175,12 @@ class FlatpakCreateOciPlugin(PostBuildPlugi... | flatpak_create_oci should return per platform metadata for images Just add OSBS2 TBD for now. It will be added when updating the `flatpak_create_oci` plugin. This helps `tag_and_push` to push images using skopeo * CLOUDBLD-<I> | py |
diff --git a/elasticsearch_async/transport.py b/elasticsearch_async/transport.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_async/transport.py
+++ b/elasticsearch_async/transport.py
@@ -38,6 +38,11 @@ class AsyncTransport(Transport):
if self.sniffing_task is None:
self.sniffing_task = ensure_... | When closing the transport close any pending sniffing tasks | py |
diff --git a/standard/models.py b/standard/models.py
index <HASH>..<HASH> 100644
--- a/standard/models.py
+++ b/standard/models.py
@@ -410,7 +410,8 @@ class PayPalPDT(PayPalCommon):
if not settings.PAYPAL_IDENTITY_TOKEN:
raise Exception("You must set settings.PAYPAL_IDENTITY_TOKEN in settings.py, ... | send signals based on success rather than flags | py |
diff --git a/alertaclient/shell.py b/alertaclient/shell.py
index <HASH>..<HASH> 100644
--- a/alertaclient/shell.py
+++ b/alertaclient/shell.py
@@ -46,6 +46,7 @@ OPTIONS = {
}
DEFAULT_SEVERITY = "normal" # "normal", "ok" or "clear"
+DEFAULT_HEARTBEAT_SEVERITY = "major"
DEFAULT_TIMEOUT = 86400 # seconds
MAX_LATEN... | Add optional severity to heartbeats command Add severity to heartbeats command, defaults to major as per existing functionality | py |
diff --git a/alpaca_trade_api/rest.py b/alpaca_trade_api/rest.py
index <HASH>..<HASH> 100644
--- a/alpaca_trade_api/rest.py
+++ b/alpaca_trade_api/rest.py
@@ -246,7 +246,7 @@ class REST(object):
'''Get a list of assets'''
params = {
'status': status,
- 'assert_class': asset_cla... | Fix typo on line <I> | py |
diff --git a/spyderlib/utils/inspector/conf.py b/spyderlib/utils/inspector/conf.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/inspector/conf.py
+++ b/spyderlib/utils/inspector/conf.py
@@ -77,7 +77,11 @@ copyright = u'2009--2012, The Spyder Development Team'
exclude_trees = ['.build']
# The reST default role ... | Object Inspector/conf.py: Change default_role value to None -. With the previous value (math) we were having problems with several numpy docstrings | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ setup(
name="millheater",
packages=["mill"],
install_requires=["aiohttp>=3.7.4,<4", "async_timeout>=1.4.0", "cryptography"],
- version="0.6.0",
+ version="0.6.1",
description="A python3 l... | <I> (#<I>) | py |
diff --git a/runscript/cli.py b/runscript/cli.py
index <HASH>..<HASH> 100644
--- a/runscript/cli.py
+++ b/runscript/cli.py
@@ -139,11 +139,13 @@ def process_command_line():
profile_tree_file = 'var/%s.prof.out' % action_name
prof = cProfile.Profile()
- prof.runctx('action_mod.main... | Save profiling results even if exception has occured | py |
diff --git a/tests/integration/test_cluster.py b/tests/integration/test_cluster.py
index <HASH>..<HASH> 100644
--- a/tests/integration/test_cluster.py
+++ b/tests/integration/test_cluster.py
@@ -66,7 +66,6 @@ class ClusterTests(unittest.TestCase):
host = cluster.metadata.all_hosts()[0]
host.monitor.si... | Fix failing up/down handling integration test | py |
diff --git a/tests/integration/runner/__init__.py b/tests/integration/runner/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/runner/__init__.py
+++ b/tests/integration/runner/__init__.py
@@ -59,6 +59,24 @@ class RunnerModuleTest(integration.ClientCase):
'token': token['token'],
})
... | Add tests for the cmd_sync and cmd_async RunnerClient methods | py |
diff --git a/SALib/util/__init__.py b/SALib/util/__init__.py
index <HASH>..<HASH> 100755
--- a/SALib/util/__init__.py
+++ b/SALib/util/__init__.py
@@ -4,8 +4,31 @@ import numpy as np
# Rescale samples from [0, 1] to [lower, upper]
def scale_samples(params, bounds):
- for i, b in enumerate(bounds):
- p... | Changed scale_samples to inplace numpy operation | py |
diff --git a/edisgo/flex_opt/curtailment.py b/edisgo/flex_opt/curtailment.py
index <HASH>..<HASH> 100644
--- a/edisgo/flex_opt/curtailment.py
+++ b/edisgo/flex_opt/curtailment.py
@@ -191,10 +191,7 @@ def assign_curtailment(curtailment, edisgo_object):
edisgo_object : :class:`edisgo.EDisGo`
The edisgo obje... | Bug Fix for assigning curtialment to 0 when there is no feedin | py |
diff --git a/pysubs2/formats/microdvd.py b/pysubs2/formats/microdvd.py
index <HASH>..<HASH> 100644
--- a/pysubs2/formats/microdvd.py
+++ b/pysubs2/formats/microdvd.py
@@ -63,7 +63,7 @@ class MicroDVDFormat(FormatBase):
subs.append(ev)
@classmethod
- def to_file(cls, subs, fp, format_, fps=None, *... | Framerate-telling line is optional in MicroDVD writer | py |
diff --git a/foolbox/attacks/hop_skip_jump.py b/foolbox/attacks/hop_skip_jump.py
index <HASH>..<HASH> 100644
--- a/foolbox/attacks/hop_skip_jump.py
+++ b/foolbox/attacks/hop_skip_jump.py
@@ -251,7 +251,7 @@ class HopSkipJump(MinimizationAttack):
perturbed = ep.expand_dims(x_advs, 0) + scaled_rv
pertur... | Correctly calculate gradient for HSJ attack (#<I>) | py |
diff --git a/jarn/mkrelease/mkrelease.py b/jarn/mkrelease/mkrelease.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/mkrelease.py
+++ b/jarn/mkrelease/mkrelease.py
@@ -276,11 +276,18 @@ class ReleaseMaker(object):
if args:
err_exit('mkrelease: too many arguments\n%s' % usage)
+ def get_scm... | Selecting the SCM warrants a method of its own. | py |
diff --git a/salt/states/mysql_user.py b/salt/states/mysql_user.py
index <HASH>..<HASH> 100644
--- a/salt/states/mysql_user.py
+++ b/salt/states/mysql_user.py
@@ -2,6 +2,8 @@
Management of MySQL users.
==========================
+NOTE: Ensure that salt.modules.mysql has its dependency and is properly configured.
+
... | add note + how to do hashed pass | py |
diff --git a/nodeconductor/events/log.py b/nodeconductor/events/log.py
index <HASH>..<HASH> 100644
--- a/nodeconductor/events/log.py
+++ b/nodeconductor/events/log.py
@@ -103,9 +103,11 @@ class EventLogger(object):
def compile_context(self, **kwargs):
# Get a list of fields here in order to be sure all mo... | Enable inheritance for event loggers (nc-<I>) | py |
diff --git a/tests/test_config_parser.py b/tests/test_config_parser.py
index <HASH>..<HASH> 100644
--- a/tests/test_config_parser.py
+++ b/tests/test_config_parser.py
@@ -1770,13 +1770,15 @@ test2 = test
def test_quoted_strings_with_ws(self):
config = ConfigFactory.parse_string(
"""
- ... | improved tests for ws at end of quoted strings | py |
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -149,6 +149,6 @@ def test_ar():
)
eq_(
- tokenize('إﻻ', 'ar'),
- ['إلا']
+ tokenize('\ufefb', 'ar'),
+ ['\u0644\u0627']
) | Switch to more explanatory Unicode escapes when testing NFKC normalization. Former-commit-id: <I>c<I>e6fac<I>ec<I>ae3cfccf<I>ecd<I> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -52,14 +52,14 @@ master_doc = 'index'
# General information about the project.
project = u'Scrapple'
-copyright = u'2014, Alex Mathew, Harish Balakrishnan'
+copyright = u'2015, Alex Mathew, Harish Balakrish... | Bump docs to <I> | py |
diff --git a/runway/blueprints/staticsite/dependencies.py b/runway/blueprints/staticsite/dependencies.py
index <HASH>..<HASH> 100755
--- a/runway/blueprints/staticsite/dependencies.py
+++ b/runway/blueprints/staticsite/dependencies.py
@@ -110,9 +110,9 @@ class Dependencies(Blueprint):
Value=artifacts.ref()... | Moving callback hook to proper conditional (#<I>) | py |
diff --git a/tests/scripts/exp_test.py b/tests/scripts/exp_test.py
index <HASH>..<HASH> 100755
--- a/tests/scripts/exp_test.py
+++ b/tests/scripts/exp_test.py
@@ -290,7 +290,6 @@ def assertVoltkv_Voltcache(mod, logC):
"Starting Benchmark":1,
"KV Store Results":1,
"Client Workload Statistics":1,
-"System Server Stati... | Remove latency stats from searchstrings on voltkv. | py |
diff --git a/frag2text.py b/frag2text.py
index <HASH>..<HASH> 100755
--- a/frag2text.py
+++ b/frag2text.py
@@ -99,8 +99,7 @@ def main(endpoint, stype, selector, clean, raw, verbose):
html = endpoint
frag = ftt.select(html, stype, selector)
if not frag:
- sys.stdout.write("Error: selector '%s' ... | allow not found selector error to pass out safely. | py |
diff --git a/subprocrunner/error.py b/subprocrunner/error.py
index <HASH>..<HASH> 100644
--- a/subprocrunner/error.py
+++ b/subprocrunner/error.py
@@ -6,6 +6,9 @@
from __future__ import absolute_import, unicode_literals
+import subprocess
+import sys
+
class CommandError(Exception):
@property
@@ -23,6 +26,... | Add an error class compatible with subprocess module of Python <I> or later | py |
diff --git a/synapse/lib/ast.py b/synapse/lib/ast.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/ast.py
+++ b/synapse/lib/ast.py
@@ -856,7 +856,7 @@ class FormPivot(PivotOper):
yield pivo, path.fork(pivo)
except (s_exc.BadTypeValu, s_exc.BadLiftValu) as e:
... | Remove the traceback from server side errors. | py |
diff --git a/python_jsonschema_objects/validators.py b/python_jsonschema_objects/validators.py
index <HASH>..<HASH> 100644
--- a/python_jsonschema_objects/validators.py
+++ b/python_jsonschema_objects/validators.py
@@ -88,7 +88,7 @@ def pattern(param, value, _):
type_registry = ValidatorRegistry()
@type_registry.re... | Fixed issue in validators.py where the ValidatorRegistry was missing check_array_type and fixed some typos in other type check registries. | py |
diff --git a/allauth/socialaccount/providers/paypal/provider.py b/allauth/socialaccount/providers/paypal/provider.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/providers/paypal/provider.py
+++ b/allauth/socialaccount/providers/paypal/provider.py
@@ -29,6 +29,6 @@ class PaypalProvider(OAuth2Provider):
... | PayPal crashes if only openid scope is used (closes #<I>) | py |
diff --git a/hydra_base/util/hdb.py b/hydra_base/util/hdb.py
index <HASH>..<HASH> 100644
--- a/hydra_base/util/hdb.py
+++ b/hydra_base/util/hdb.py
@@ -407,7 +407,12 @@ def create_default_units_and_dimensions():
else:
#log.critical("UNIT {}.{} EXISTANT".format(dimension_name,json_unit['abbr... | Added a try except to manage an exception | py |
diff --git a/extra/vistrails/vistrailspkg/tej/init.py b/extra/vistrails/vistrailspkg/tej/init.py
index <HASH>..<HASH> 100644
--- a/extra/vistrails/vistrailspkg/tej/init.py
+++ b/extra/vistrails/vistrailspkg/tej/init.py
@@ -190,7 +190,7 @@ class BaseSubmitJob(JobMixin, Job):
"""
return {'destination': ... | Makes sure to get a job_id | py |
diff --git a/application/briefkasten/worker.py b/application/briefkasten/worker.py
index <HASH>..<HASH> 100644
--- a/application/briefkasten/worker.py
+++ b/application/briefkasten/worker.py
@@ -24,7 +24,6 @@ def get_settings(fs_config):
'drop_id',
required=False,
default=None,
- # help=u'provide an o... | for some reason arguments can't have a help text | py |
diff --git a/gitenberg/fetch.py b/gitenberg/fetch.py
index <HASH>..<HASH> 100644
--- a/gitenberg/fetch.py
+++ b/gitenberg/fetch.py
@@ -11,13 +11,12 @@ import sh
class BookFetcher():
+ """ A BookFetcher:
+ - makes a shelf (folder in library directory)
+ - rsyncs the book from PG to the shelf
+ "... | move doc from init to root | py |
diff --git a/auth0/v2/device_credentials.py b/auth0/v2/device_credentials.py
index <HASH>..<HASH> 100644
--- a/auth0/v2/device_credentials.py
+++ b/auth0/v2/device_credentials.py
@@ -3,6 +3,16 @@ from .rest import RestClient
class DeviceCredentials(object):
+ """Auth0 connection endpoints
+
+ Args:
+ ... | Class docstring for DeviceCredentials | py |
diff --git a/pyrogram/client/parser/parser.py b/pyrogram/client/parser/parser.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/parser/parser.py
+++ b/pyrogram/client/parser/parser.py
@@ -42,7 +42,7 @@ class Parser:
if mode == "":
return self.markdown.parse(text)
- if mode in ["markdow... | Only allow either "markdown" or "html" as text style parse mode | py |
diff --git a/tests/minionswarm.py b/tests/minionswarm.py
index <HASH>..<HASH> 100644
--- a/tests/minionswarm.py
+++ b/tests/minionswarm.py
@@ -71,7 +71,7 @@ def parse():
help=('Pass in an alternative configuration directory. Default: '
'%default')
)
- parser.add_option('-u', ... | Moved grabbing/overriding the minionswarm user to parse-time This change provides a single source of truth for what user the swam will be running as. | py |
diff --git a/openstack_dashboard/test/test_plugins/panel_tests.py b/openstack_dashboard/test/test_plugins/panel_tests.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/test/test_plugins/panel_tests.py
+++ b/openstack_dashboard/test/test_plugins/panel_tests.py
@@ -55,9 +55,9 @@ class PanelPluginTests(test.PluginT... | assertEquals is deprecated, use assertEqual Use assertEqual instead. ref:<URL> | py |
diff --git a/smartfile/errors.py b/smartfile/errors.py
index <HASH>..<HASH> 100644
--- a/smartfile/errors.py
+++ b/smartfile/errors.py
@@ -22,10 +22,11 @@ class ResponseError(APIError):
def __init__(self, response, *args, **kwargs):
self.response = response
self.status_code = response.status_code... | Another place we use response.json. It is a method now. | py |
diff --git a/astro_pi/astro_pi.py b/astro_pi/astro_pi.py
index <HASH>..<HASH> 100644
--- a/astro_pi/astro_pi.py
+++ b/astro_pi/astro_pi.py
@@ -227,12 +227,14 @@ class AstroPi(object):
pixel_list.append(self._unpack_bin(f.read(2)))
return pixel_list
- def set_pixel_xy(self, x, y, pix):... | change get/set_pixel_xy to get/set_pixel | py |
diff --git a/python/dllib/src/bigdl/dllib/keras/optimizers.py b/python/dllib/src/bigdl/dllib/keras/optimizers.py
index <HASH>..<HASH> 100644
--- a/python/dllib/src/bigdl/dllib/keras/optimizers.py
+++ b/python/dllib/src/bigdl/dllib/keras/optimizers.py
@@ -39,6 +39,7 @@ class Adam(OptimMethod, ZooKerasCreator):
... | add weightdecay to Adam (#<I>) * add weightdecay * revert * some change * some update * some update | py |
diff --git a/b2handle/handleclient.py b/b2handle/handleclient.py
index <HASH>..<HASH> 100644
--- a/b2handle/handleclient.py
+++ b/b2handle/handleclient.py
@@ -844,10 +844,11 @@ class EUDATHandleClient(object):
LOGGER.debug('register_handle...')
# If already exists and can't be overwritten:
- ... | don't check for existing handle when overwriting | py |
diff --git a/lprelease.py b/lprelease.py
index <HASH>..<HASH> 100755
--- a/lprelease.py
+++ b/lprelease.py
@@ -12,7 +12,6 @@ from argparse import ArgumentParser
import datetime
import os
import subprocess
-from subprocess import CalledProcessError
import sys
import traceback
@@ -29,7 +28,7 @@ def run(command, ve... | Updated CalledProcessError exception. | py |
diff --git a/menu_launcher.py b/menu_launcher.py
index <HASH>..<HASH> 100755
--- a/menu_launcher.py
+++ b/menu_launcher.py
@@ -587,8 +587,8 @@ def get_plugin_status(path_dirs):
p_error_menu.append({'title': "Running Errors", 'subtitle': "Containers that should not be running because they are disabled...", ... | Uncommented if-check for built_errors. | py |
diff --git a/imagen/ndmapping.py b/imagen/ndmapping.py
index <HASH>..<HASH> 100644
--- a/imagen/ndmapping.py
+++ b/imagen/ndmapping.py
@@ -173,6 +173,10 @@ class NdIndexableMapping(param.Parameterized):
self._add_item(key, value)
+ def __str__(self):
+ return repr(self)
+
+
@property
de... | Added missing __str__ and values methods to NdMappings | py |
diff --git a/src/wa_kat/connectors/seeder.py b/src/wa_kat/connectors/seeder.py
index <HASH>..<HASH> 100755
--- a/src/wa_kat/connectors/seeder.py
+++ b/src/wa_kat/connectors/seeder.py
@@ -103,4 +103,13 @@ def download(url_id): # TODO: Add timeout, print error in case of exception
def get_remote_info(url_id):
+ ... | #<I>: Added docstring. | py |
diff --git a/mutant/__init__.py b/mutant/__init__.py
index <HASH>..<HASH> 100644
--- a/mutant/__init__.py
+++ b/mutant/__init__.py
@@ -3,6 +3,6 @@ from __future__ import unicode_literals
import logging
-__version__ = VERSION = (0, 1, 1)
+__version__ = VERSION = (0, 1, 2)
logger = logging.getLogger('mutant') | Bumped version number to <I> | py |
diff --git a/topydo/cli/Main.py b/topydo/cli/Main.py
index <HASH>..<HASH> 100755
--- a/topydo/cli/Main.py
+++ b/topydo/cli/Main.py
@@ -39,6 +39,7 @@ Available commands:
* append (app)
* del (rm)
* dep
+* depri
* do
* edit
* ical | Depri command was missing in `topydo help` | py |
diff --git a/db_tests/db_loader_unittest.py b/db_tests/db_loader_unittest.py
index <HASH>..<HASH> 100644
--- a/db_tests/db_loader_unittest.py
+++ b/db_tests/db_loader_unittest.py
@@ -103,6 +103,13 @@ class NrmlModelLoaderDBTestCase(unittest.TestCase):
class CsvModelLoaderDBTestCase(unittest.TestCase):
+ def set... | added missing setUp method, probably merging conflicts has broken something | py |
diff --git a/tests/jenkins.py b/tests/jenkins.py
index <HASH>..<HASH> 100644
--- a/tests/jenkins.py
+++ b/tests/jenkins.py
@@ -131,7 +131,7 @@ def echo_parseable_environment(options):
])
except ValueError:
print('# Failed to get the PR id from the environment')
- pass
+
... | Remove un-necessary `pass` | py |
diff --git a/test_is_open.py b/test_is_open.py
index <HASH>..<HASH> 100644
--- a/test_is_open.py
+++ b/test_is_open.py
@@ -5,18 +5,18 @@ import unittest
global KEY
-class IsOpenTest(object):
+class IsOpenTest(unittest.TestCase):
def test_no_data(self):
venue_client = VenueApiClient(KEY)
venue_id = "50d70... | made changes in Jason's comments on pull request | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ def get_readme():
setup(
- name='starwars_ipsum',
+ name='starwars-ipsum',
version='0.0.1',
author='Jose Miguel Venegas Mendoza',
author_email='jvenegas@rukbottoland.com', | Changing library name on setup.py file. | py |
diff --git a/sdks/python/sdk_version.py b/sdks/python/sdk_version.py
index <HASH>..<HASH> 100755
--- a/sdks/python/sdk_version.py
+++ b/sdks/python/sdk_version.py
@@ -26,7 +26,7 @@ try:
print(UNTAGGED_VERSION) # this goes to sys.stdout, so it's captured by the Makefile
exit(0)
- rc_version_suffi... | chore: Fix Python version on `-*dev` branches. (#<I>) | py |
diff --git a/tweepy/cursor.py b/tweepy/cursor.py
index <HASH>..<HASH> 100644
--- a/tweepy/cursor.py
+++ b/tweepy/cursor.py
@@ -133,10 +133,13 @@ class PageIterator(BaseIterator):
self.current_page = 0
def next(self):
- self.current_page += 1
+ if self.limit > 0 and self.current_page > self... | Don't make an unnecessary API call in PageIterator | py |
diff --git a/cms_lab_publications/admin.py b/cms_lab_publications/admin.py
index <HASH>..<HASH> 100644
--- a/cms_lab_publications/admin.py
+++ b/cms_lab_publications/admin.py
@@ -132,6 +132,7 @@ class PublicationAdmin(admin.ModelAdmin):
'has_pdf',
'has_supplemental',
'has_image',
+ 'nu... | Display # of Publication Sets in Publication Admin | py |
diff --git a/src/fam/database/firestore.py b/src/fam/database/firestore.py
index <HASH>..<HASH> 100644
--- a/src/fam/database/firestore.py
+++ b/src/fam/database/firestore.py
@@ -310,7 +310,7 @@ class FirestoreWrapper(BaseDatabase):
return self.query_items_iterator(firebase_query, batch_size=batch_size, or... | handle both notfound and None from friestore get | py |
diff --git a/tests/mackup_test.py b/tests/mackup_test.py
index <HASH>..<HASH> 100644
--- a/tests/mackup_test.py
+++ b/tests/mackup_test.py
@@ -49,3 +49,27 @@ class TestMackup(unittest.TestCase):
assert not os.path.exists(filepath)
assert not os.path.exists(subfolder_path)
assert not os.path.e... | Add test case for copying a file | py |
diff --git a/builders/build_novas_tests.py b/builders/build_novas_tests.py
index <HASH>..<HASH> 100644
--- a/builders/build_novas_tests.py
+++ b/builders/build_novas_tests.py
@@ -114,10 +114,10 @@ def output_subroutine_tests(dates):
tie2 = novas.frame_tie(vector, -1)
output(locals(), """\
def test_fo... | Be less optimistic about frame-tie agreement Since the passing test on my laptop failed on Travis CI. | py |
diff --git a/salt/client/ssh/__init__.py b/salt/client/ssh/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/client/ssh/__init__.py
+++ b/salt/client/ssh/__init__.py
@@ -926,10 +926,10 @@ ARGS = {9}\n'''.format(self.minion_config,
pass
# Execute shim
- ret = self.shell.exec_cmd('/bin/sh ... | Keep $HOME from being interpretted by Master shell The command is being sent to a shelled ssh call which allows $HOME to get interpreted by the local shell. This is usually different than the remote user when using sudo (ie, /root vs /home/user) and causes it to fail to find the shim script. Should fix bugs: <URL> | py |
diff --git a/f90nml.py b/f90nml.py
index <HASH>..<HASH> 100644
--- a/f90nml.py
+++ b/f90nml.py
@@ -11,6 +11,7 @@ from collections import OrderedDict
import itertools
import os
import shlex
+import textwrap
__version__ = '0.6'
@@ -147,8 +148,11 @@ def write_nmlgrp(grp_name, grp_vars, nml_file):
for v_name... | Split long entries along <I> characters | py |
diff --git a/tests/support.py b/tests/support.py
index <HASH>..<HASH> 100644
--- a/tests/support.py
+++ b/tests/support.py
@@ -18,6 +18,8 @@
import os, time, subprocess, fcntl, errno, logging, re
+import taskforce.utils as utils
+
class env(object):
"""
Set up some generally useful parameters and manage the c... | statusfmt() that matches what subprocess() returncode yields | py |
diff --git a/lepo_tests/handlers/pets.py b/lepo_tests/handlers/pets.py
index <HASH>..<HASH> 100644
--- a/lepo_tests/handlers/pets.py
+++ b/lepo_tests/handlers/pets.py
@@ -36,7 +36,7 @@ class PetHandler(CRUDModelHandler):
limit = self.args.get('limit')
if limit is not None:
obj... | Call superclass process_object_list (for coverage) | py |
diff --git a/niworkflows/data/getters.py b/niworkflows/data/getters.py
index <HASH>..<HASH> 100644
--- a/niworkflows/data/getters.py
+++ b/niworkflows/data/getters.py
@@ -23,7 +23,7 @@ OSF_RESOURCES = {
'mni152_nlin_sym_ras': ('57fa7fd09ad5a101df35eed0', '65d64ad5a980da86e7d07d95b3ed2ccb'),
'mni_icbm152_linea... | fix: add trailing comma | py |
diff --git a/compliance_checker/runner.py b/compliance_checker/runner.py
index <HASH>..<HASH> 100644
--- a/compliance_checker/runner.py
+++ b/compliance_checker/runner.py
@@ -52,7 +52,7 @@ class ComplianceChecker(object):
"""
cs = CheckSuite()
score_dict = OrderedDict()
- if not isinst... | Fix 2/3 string detection and handle multiple datasets for check suite run | py |
diff --git a/importmagic/index.py b/importmagic/index.py
index <HASH>..<HASH> 100644
--- a/importmagic/index.py
+++ b/importmagic/index.py
@@ -280,7 +280,7 @@ class SymbolIndex(object):
def add(self, name, score):
current_score = self._tree.get(name, 0.0)
- if score > current_score:
+ if i... | Fix SymbolIndex.add() on Python 3. On Python 3, SymbolIndex and float instances cannot be compared. | py |
diff --git a/SECEdgar/filings/base.py b/SECEdgar/filings/base.py
index <HASH>..<HASH> 100644
--- a/SECEdgar/filings/base.py
+++ b/SECEdgar/filings/base.py
@@ -161,7 +161,6 @@ class Filing(_EDGARBase):
if len(txt_urls) == 0:
raise Exception("No text urls")
doc_names = [url.split("/")[-1] f... | removed survived if (no clue why the suggestion didn't apply) | py |
diff --git a/tensorpack/predict/base.py b/tensorpack/predict/base.py
index <HASH>..<HASH> 100644
--- a/tensorpack/predict/base.py
+++ b/tensorpack/predict/base.py
@@ -12,6 +12,7 @@ from ..tfutils.tower import TowerContext
from ..input_source import PlaceholderInput
from ..utils.develop import log_deprecated
from ..u... | don't warn too much about deprecation | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100644
--- a/test.py
+++ b/test.py
@@ -35,6 +35,7 @@ class PbsTestSuite(unittest.TestCase):
with self.assertRaises(TypeError):
ls(_fg=True, _bg=True)
+
def test_exception(self):
from pbs import ls, ErrorRet... | test case for baked args locations | py |
diff --git a/intake/interface/server.py b/intake/interface/server.py
index <HASH>..<HASH> 100644
--- a/intake/interface/server.py
+++ b/intake/interface/server.py
@@ -8,9 +8,9 @@
The simplest possible panel server. To launch a panel server containing the intake gui
run:
-panel serve intake/gui/server.py
+panel serv... | Make interface/server.py do what it says it should | py |
diff --git a/pystache/view.py b/pystache/view.py
index <HASH>..<HASH> 100644
--- a/pystache/view.py
+++ b/pystache/view.py
@@ -5,9 +5,6 @@ This module provides a View class.
"""
-import re
-from types import UnboundMethodType
-
from .context import Context
from .loader import make_template_name
from .renderer i... | Removed re and types.UnboundMethodType imports from view.py. | py |
diff --git a/allegedb/allegedb/window.py b/allegedb/allegedb/window.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/window.py
+++ b/allegedb/allegedb/window.py
@@ -495,7 +495,7 @@ class WindowDict(MutableMapping):
# But handle degenerate case.
if not self:
raise HistoryError("Tried... | Make WindowDict.__delitem__ a little less redundant, more obvious | 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
@@ -1410,7 +1410,7 @@ def path():
'''
# Provides:
# path
- return {'path': os.environ['PATH'].strip()}
+ return {'path': os.environ.get('PATH', '').strip()}
... | Don't assume the `PATH` env var is set | py |
diff --git a/pymer/__init__.py b/pymer/__init__.py
index <HASH>..<HASH> 100644
--- a/pymer/__init__.py
+++ b/pymer/__init__.py
@@ -59,25 +59,43 @@ Counters can be added and subtracted:
>>> kc['GTAC']
0
-Counters may be read and written to a file. A msgpack object describing the
-counter is writen, with arrays compr... | Use file IO in documentation and doctest | py |
diff --git a/zipline/algorithm.py b/zipline/algorithm.py
index <HASH>..<HASH> 100644
--- a/zipline/algorithm.py
+++ b/zipline/algorithm.py
@@ -639,7 +639,9 @@ class TradingAlgorithm(object):
# Assume data is daily if timestamp times are
# standardized, otherwise assume minute bars.
... | ENH: Improve TradingAlgorithm.run daily or minute data freq assumption Changing TradingAlgorithm.run not to assume minute data if data freq is specified as daily and sim params aren't allowed to be overwritten. | py |
diff --git a/pandas/tseries/plotting.py b/pandas/tseries/plotting.py
index <HASH>..<HASH> 100644
--- a/pandas/tseries/plotting.py
+++ b/pandas/tseries/plotting.py
@@ -20,6 +20,7 @@ from pandas.tseries.period import Period, PeriodIndex
from pandas.tseries.index import DatetimeIndex
from pandas.core.index import Index
... | TST: <I>-bit integer checking issues | py |
diff --git a/src/pybel/parser/parse_metadata.py b/src/pybel/parser/parse_metadata.py
index <HASH>..<HASH> 100644
--- a/src/pybel/parser/parse_metadata.py
+++ b/src/pybel/parser/parse_metadata.py
@@ -130,8 +130,6 @@ class MetadataParser(BaseParser):
BaseParser.__init__(self, self.language)
- log.info... | Removed extra logging from metadata parser | py |
diff --git a/tasks.py b/tasks.py
index <HASH>..<HASH> 100644
--- a/tasks.py
+++ b/tasks.py
@@ -6,7 +6,9 @@ AGENT_BASED_INTEGRATIONS = [
'datadog-checks-base',
'disk',
'envoy',
+ 'kube_proxy',
'kubelet',
+ 'prometheus',
'vsphere',
] | Add missing checks to inv test (#<I>) | py |
diff --git a/werkzeug/datastructures.py b/werkzeug/datastructures.py
index <HASH>..<HASH> 100644
--- a/werkzeug/datastructures.py
+++ b/werkzeug/datastructures.py
@@ -488,7 +488,7 @@ class MultiDict(TypeConversionDict):
yield values[0]
def iterlistvalues(self):
- """like :meth:`listvalues` bu... | Fixed typo in MultiDict.iterlistvalues docstring The first letter in a sentence should be a capital one. | py |
diff --git a/salt/states/tomcat.py b/salt/states/tomcat.py
index <HASH>..<HASH> 100644
--- a/salt/states/tomcat.py
+++ b/salt/states/tomcat.py
@@ -79,7 +79,7 @@ def war_deployed(name, war, url='http://localhost:8080/manager', __env__='base',
'changes': {},
'comment': ''}
basename = war.split('/')[-... | rm semicolon from Python in states.tomcat.war_deployed | py |
diff --git a/satpy/composites/__init__.py b/satpy/composites/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/composites/__init__.py
+++ b/satpy/composites/__init__.py
@@ -596,7 +596,10 @@ class NIRReflectance(CompositeBase):
"""
self._init_refl3x(projectables)
_nir, _ = projectables
- ... | Raise an error if data and angles don't match in NIRReflectance | py |
diff --git a/spyderlib/widgets/interactiveshell.py b/spyderlib/widgets/interactiveshell.py
index <HASH>..<HASH> 100644
--- a/spyderlib/widgets/interactiveshell.py
+++ b/spyderlib/widgets/interactiveshell.py
@@ -76,15 +76,20 @@ def create_banner(moreinfo, message=''):
# (easy... just rename a few methods here and ... | Interactive shell/bugfix: avoid errors when subprocess try to write on Interactive shell's stdout/stderr | py |
diff --git a/psiturk/psiturk_shell.py b/psiturk/psiturk_shell.py
index <HASH>..<HASH> 100644
--- a/psiturk/psiturk_shell.py
+++ b/psiturk/psiturk_shell.py
@@ -678,8 +678,8 @@ class PsiturkNetworkShell(PsiturkShell):
' HITs or Ads. Please edit the config.txt file inside your project folder... | more helpful error message - directs people to set host to `<I>` (easier than knowing your ip address) | py |
diff --git a/spyderlib/plugins/ipythonconsole.py b/spyderlib/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/ipythonconsole.py
+++ b/spyderlib/plugins/ipythonconsole.py
@@ -714,8 +714,8 @@ class IPythonConsole(SpyderPluginWidget):
else:
#XXX: not sure it can really h... | IPython Console: Improve warning message when there is no open console | py |
diff --git a/validator.py b/validator.py
index <HASH>..<HASH> 100644
--- a/validator.py
+++ b/validator.py
@@ -7,13 +7,13 @@ import bbltree
import utils
-def validate(bblfile:str, profiling=False):
- """Yield lines of warnings and errors about input bbl file.
+def validate(bbllines:iter, profiling=False):
+ ... | validator: change API: wait for iterable of lines instead of filename | py |
diff --git a/clearly/server/expected_state.py b/clearly/server/expected_state.py
index <HASH>..<HASH> 100644
--- a/clearly/server/expected_state.py
+++ b/clearly/server/expected_state.py
@@ -27,10 +27,10 @@ class ExpectedPath:
for n in self.possibles:
if n.name == name:
return n
-... | increase priority of default, instead of a unique possible path this will enable to ignore one path when needed. | py |
diff --git a/django_cas_ng/models.py b/django_cas_ng/models.py
index <HASH>..<HASH> 100644
--- a/django_cas_ng/models.py
+++ b/django_cas_ng/models.py
@@ -5,7 +5,7 @@ from .utils import (get_cas_client, get_service_url, get_user_from_session)
from importlib import import_module
-
+from cas import CASError
Sessi... | The python function str can only take an encoding in python3 so insted we unwrap the exception. | py |
diff --git a/spacy/lang/en/tokenizer_exceptions.py b/spacy/lang/en/tokenizer_exceptions.py
index <HASH>..<HASH> 100644
--- a/spacy/lang/en/tokenizer_exceptions.py
+++ b/spacy/lang/en/tokenizer_exceptions.py
@@ -35,8 +35,6 @@ for pron in ["i"]:
LEMMA: "be",
NORM: "am",
... | Fix obsolete data in English tokenizer exceptions | py |
diff --git a/spikeextractors/extractors/nwbextractors/nwbextractors.py b/spikeextractors/extractors/nwbextractors/nwbextractors.py
index <HASH>..<HASH> 100644
--- a/spikeextractors/extractors/nwbextractors/nwbextractors.py
+++ b/spikeextractors/extractors/nwbextractors/nwbextractors.py
@@ -62,7 +62,7 @@ class NwbRecord... | Update nwbextractors.py add 'ElectricalSeries' as default value for `acquisition_name` | py |
diff --git a/pw.py b/pw.py
index <HASH>..<HASH> 100644
--- a/pw.py
+++ b/pw.py
@@ -64,7 +64,7 @@ def main():
def collect_entry(node, path):
# expand password-only nodes
- if type(node) != dict:
+ if not isinstance(node, dict):
node = {'P': node}
# add entry
@@ -79,10 +79,10 @@ def main():
... | replaced type() comparison by isinstance() | py |
diff --git a/pythonforandroid/recipes/openssl/__init__.py b/pythonforandroid/recipes/openssl/__init__.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/recipes/openssl/__init__.py
+++ b/pythonforandroid/recipes/openssl/__init__.py
@@ -47,7 +47,7 @@ class OpenSSLRecipe(Recipe):
version = '1.1'
'''the major... | update openssl (#<I>) | py |
diff --git a/django_static/templatetags/django_static.py b/django_static/templatetags/django_static.py
index <HASH>..<HASH> 100644
--- a/django_static/templatetags/django_static.py
+++ b/django_static/templatetags/django_static.py
@@ -217,7 +217,7 @@ def do_staticallfiles(parser, token):
SCRIPTS_REGEX = re.compile('... | Not so common, but images can also have inline data using the data URI scheme. | py |
diff --git a/exclusivebooleanfield/fields.py b/exclusivebooleanfield/fields.py
index <HASH>..<HASH> 100644
--- a/exclusivebooleanfield/fields.py
+++ b/exclusivebooleanfield/fields.py
@@ -1,5 +1,6 @@
from django.db import models, transaction
from django.db.models import Q
+from django.utils.six import string_types
... | Updating field to support Python 3. | py |
diff --git a/wafer/pages/models.py b/wafer/pages/models.py
index <HASH>..<HASH> 100644
--- a/wafer/pages/models.py
+++ b/wafer/pages/models.py
@@ -1,5 +1,4 @@
import logging
-logger = logging.getLogger(__name__)
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse
@@... | Moving logging import further down to make linter happy. | py |
diff --git a/src/naarad/metrics/metric.py b/src/naarad/metrics/metric.py
index <HASH>..<HASH> 100644
--- a/src/naarad/metrics/metric.py
+++ b/src/naarad/metrics/metric.py
@@ -241,7 +241,7 @@ class Metric(object):
def calculate_stats(self):
stats_to_calculate = ['mean', 'std', 'min', 'max'] # TODO: get input ... | including <I>% percentile | py |
diff --git a/bcbio/ngsalign/bwa.py b/bcbio/ngsalign/bwa.py
index <HASH>..<HASH> 100644
--- a/bcbio/ngsalign/bwa.py
+++ b/bcbio/ngsalign/bwa.py
@@ -104,7 +104,7 @@ def _can_use_mem(fastq_file, data, read_min_size=None):
"{seqtk} sample -s42 - {tocheck} | "
"awk '{{if(NR%4==2) print length($1)}}' ... | Do not swallow stderror when checking read length Avoids getting rid of potentially useful error messages. #<I> | py |
diff --git a/timezonefinder/timezonefinder.py b/timezonefinder/timezonefinder.py
index <HASH>..<HASH> 100755
--- a/timezonefinder/timezonefinder.py
+++ b/timezonefinder/timezonefinder.py
@@ -4,15 +4,15 @@ from numpy import fromfile, empty, array
from os.path import join, dirname
try:
- # try loading optimized al... | Improve numba check By just doing `import numba` to check if it's installed, any errors from the importing of `.helpers_numba` won't be suppressed and thus problems with `timezonefinder` can be detected more easily. | py |
diff --git a/vasppy/procar.py b/vasppy/procar.py
index <HASH>..<HASH> 100644
--- a/vasppy/procar.py
+++ b/vasppy/procar.py
@@ -203,6 +203,14 @@ class Procar:
assert( expected_bands == read_occupancy ), "error parsing occupancy data: {} bands in file, {} occupancy data points".format( expected_bands, read_occup... | Added from_files classmethod to read and concatenate a series of PROCAR files | py |
diff --git a/dynaphopy/interface/lammps_link.py b/dynaphopy/interface/lammps_link.py
index <HASH>..<HASH> 100644
--- a/dynaphopy/interface/lammps_link.py
+++ b/dynaphopy/interface/lammps_link.py
@@ -19,7 +19,7 @@ def generate_lammps_trajectory(structure,
sampling=1
- lmp = lammps(cmdargs=['-echo','none', '-... | Improved lammps get forces script to works with older version of numpy | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.