diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/tasktiger/worker.py b/tasktiger/worker.py
index <HASH>..<HASH> 100644
--- a/tasktiger/worker.py
+++ b/tasktiger/worker.py
@@ -720,8 +720,8 @@ class Worker(object):
then exit.
"""
- self.log.info('ready', queues=self.only_queues,
- exclude_queues=self... | Prettier logging of the "ready" message | py |
diff --git a/rinoh/style.py b/rinoh/style.py
index <HASH>..<HASH> 100644
--- a/rinoh/style.py
+++ b/rinoh/style.py
@@ -728,9 +728,8 @@ def eat_whitespace(chars):
break
-class CharIterator(str):
+class CharIterator(object):
def __init__(self, string):
- super().__init__(string)
self... | Fix a problem with CharIterator initialization CharIterator doesn't need to be a subclass of str. | py |
diff --git a/src/nlpia/transcoders.py b/src/nlpia/transcoders.py
index <HASH>..<HASH> 100644
--- a/src/nlpia/transcoders.py
+++ b/src/nlpia/transcoders.py
@@ -101,6 +101,11 @@ def clean_asciidoc(text):
def clean_markdown(text):
+ r""" Transform markdown text into ASCII natural language text that NL parsers can ... | doctests and block splitter | py |
diff --git a/spam_lists/service_models.py b/spam_lists/service_models.py
index <HASH>..<HASH> 100644
--- a/spam_lists/service_models.py
+++ b/spam_lists/service_models.py
@@ -420,10 +420,9 @@ class HostCollection(HostList):
return val
def _get_match_and_classification(self, host_object):
- ... | Refactor HostCollection._get_match_and_classification The method is being refactored to use HostCollection._get_match method | py |
diff --git a/flask_unchained/pytest.py b/flask_unchained/pytest.py
index <HASH>..<HASH> 100644
--- a/flask_unchained/pytest.py
+++ b/flask_unchained/pytest.py
@@ -1,6 +1,8 @@
import importlib
import pytest
+from click.testing import CliRunner
+from flask.cli import ScriptInfo
from _pytest.fixtures import FixtureLo... | add cli_runner pytest fixture for testing flask cli commands | py |
diff --git a/asammdf/mdf_v3.py b/asammdf/mdf_v3.py
index <HASH>..<HASH> 100644
--- a/asammdf/mdf_v3.py
+++ b/asammdf/mdf_v3.py
@@ -3330,6 +3330,17 @@ class MDF3(object):
return info
+ def set_split_size(self, size):
+ """ set the split size when reading the group's samples
+
+ Parameters
+... | add set_split_size method to mdf version 3 and 2 | py |
diff --git a/metpy/io/nexrad.py b/metpy/io/nexrad.py
index <HASH>..<HASH> 100644
--- a/metpy/io/nexrad.py
+++ b/metpy/io/nexrad.py
@@ -387,6 +387,30 @@ class Level2File(object):
assert data_hdr.rad_length == self._buffer.offset_from(msg_start)
+ def _decode_msg13(self, msg_hdr):
+ data = self._bu... | Add support for decoding NEXRAD message <I>. These contain information about the clutter filter bypass map. | py |
diff --git a/spyder/plugins/editor.py b/spyder/plugins/editor.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/editor.py
+++ b/spyder/plugins/editor.py
@@ -1000,8 +1000,11 @@ class Editor(SpyderPluginWidget):
triggered=self.remove_trailing_spaces)
self.showblanks_acti... | Fix error blank spaces, and indent guides checkboxs in Source menu weren't updated at statup. | py |
diff --git a/discord/enums.py b/discord/enums.py
index <HASH>..<HASH> 100644
--- a/discord/enums.py
+++ b/discord/enums.py
@@ -51,6 +51,8 @@ __all__ = (
'ComponentType',
'ButtonStyle',
'StagePrivacyLevel',
+ 'InteractionType',
+ 'InteractionResponseType',
)
def _create_value_cls(name): | Add interaction enums to __all__ | py |
diff --git a/src/ossos-pipeline/ossos/gui/models.py b/src/ossos-pipeline/ossos/gui/models.py
index <HASH>..<HASH> 100644
--- a/src/ossos-pipeline/ossos/gui/models.py
+++ b/src/ossos-pipeline/ossos/gui/models.py
@@ -181,8 +181,7 @@ class UIModel(object):
return self.get_current_image().get_header()["FILTER"][0]... | Moved calculation of source point from UIModel to ImageReading. | py |
diff --git a/udiskie/dbus.py b/udiskie/dbus.py
index <HASH>..<HASH> 100644
--- a/udiskie/dbus.py
+++ b/udiskie/dbus.py
@@ -143,7 +143,9 @@ class DBusObject(object):
info=None,
name=self.bus_name,
object_path=self.object_path,
- interface_name=name)
+ interfac... | Add cancellable argument for dbus calls The version of PyGObject shipped in Slackware doesn't seem to have cancellable=None as default argument. | py |
diff --git a/datajoint/erd.py b/datajoint/erd.py
index <HASH>..<HASH> 100644
--- a/datajoint/erd.py
+++ b/datajoint/erd.py
@@ -168,7 +168,7 @@ class ERD(nx.DiGraph):
nx.relabel_nodes(graph, mapping, copy=False)
return graph
- def draw(self, pos=None, layout=None, context=None, font_scale=1.5, **l... | excluded ERD.draw() from nosetest coverage | py |
diff --git a/marshmallow_jsonapi/schema.py b/marshmallow_jsonapi/schema.py
index <HASH>..<HASH> 100644
--- a/marshmallow_jsonapi/schema.py
+++ b/marshmallow_jsonapi/schema.py
@@ -107,6 +107,8 @@ class Schema(ma.Schema):
raise IncorrectTypeError(actual=item['type'], expected=self.opts.type_)
payl... | Marshaling payload id | py |
diff --git a/awkward/type.py b/awkward/type.py
index <HASH>..<HASH> 100644
--- a/awkward/type.py
+++ b/awkward/type.py
@@ -17,6 +17,8 @@ def _str(tpe, indent=""):
return indent + str(tpe)
class Type(object):
+ check = True
+
def hascolumn(self, name):
return self._hascolumn(name, set())
@... | add backdoor to skip resolution of complex types that are known to be correct | py |
diff --git a/insights/parsers/ps.py b/insights/parsers/ps.py
index <HASH>..<HASH> 100644
--- a/insights/parsers/ps.py
+++ b/insights/parsers/ps.py
@@ -90,7 +90,7 @@ class PsAuxww(Parser):
def parse_content(self, content):
raw_line_key = "_line"
- if any(line.startswith("USER") and line.endswith("... | Strip lines for ps after <I>bce2cf (#<I>) | py |
diff --git a/spyder_kernels/_version.py b/spyder_kernels/_version.py
index <HASH>..<HASH> 100644
--- a/spyder_kernels/_version.py
+++ b/spyder_kernels/_version.py
@@ -8,5 +8,5 @@
"""Version File."""
-VERSION_INFO = (1, 6, 0)
+VERSION_INFO = (1, 7, 0, 'dev0')
__version__ = '.'.join(map(str, VERSION_INFO)) | Back to work [ci skip] | py |
diff --git a/tests/integration/states/test_file.py b/tests/integration/states/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/test_file.py
+++ b/tests/integration/states/test_file.py
@@ -2256,7 +2256,7 @@ class FileTest(ModuleCase, SaltReturnAssertsMixin):
else:
sel... | Fix string formatting wart in file state tests | py |
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py
index <HASH>..<HASH> 100644
--- a/cmd2/cmd2.py
+++ b/cmd2/cmd2.py
@@ -179,6 +179,14 @@ class Cmd(cmd.Cmd):
:param shortcuts: dictionary containing shortcuts for commands. If not supplied,
then defaults to constants.DEFAULT_SHORTCUTS. If you do... | Updated with missing doc-string for new CommandSet parameters for cmd2.Cmd's constructor | py |
diff --git a/elasticsearch/connection/http_requests.py b/elasticsearch/connection/http_requests.py
index <HASH>..<HASH> 100644
--- a/elasticsearch/connection/http_requests.py
+++ b/elasticsearch/connection/http_requests.py
@@ -67,12 +67,13 @@ class RequestsHttpConnection(Connection):
url = '%s?%s' % (url, ... | Make sure environment settings are merged in for requests Fixes #<I> | py |
diff --git a/oidc_provider/views.py b/oidc_provider/views.py
index <HASH>..<HASH> 100644
--- a/oidc_provider/views.py
+++ b/oidc_provider/views.py
@@ -57,7 +57,8 @@ class AuthorizeView(View):
# Remove `openid` from scope list
# since we don't need to print it.
- author... | Fix openid scope in authorize view. | py |
diff --git a/anyconfig/__init__.py b/anyconfig/__init__.py
index <HASH>..<HASH> 100644
--- a/anyconfig/__init__.py
+++ b/anyconfig/__init__.py
@@ -26,7 +26,8 @@ VERSION = "0.0.3"
__version__ = VERSION
__all__ = [
- 'dump', 'load', 'loads',
+ "load", "loads", "mload", "mload_metaconf",
+ "dump", "dumps",
]... | added some more exports from anyconfig.api | py |
diff --git a/source/rafcon/gui/controllers/state_editor/outcomes.py b/source/rafcon/gui/controllers/state_editor/outcomes.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/controllers/state_editor/outcomes.py
+++ b/source/rafcon/gui/controllers/state_editor/outcomes.py
@@ -329,12 +329,7 @@ class StateOutcomesEdito... | fix (outcomes controller): use correct add controller and recursive destroy methods | py |
diff --git a/rt.py b/rt.py
index <HASH>..<HASH> 100644
--- a/rt.py
+++ b/rt.py
@@ -719,11 +719,26 @@ class Rt:
msg = self.__request('ticket/%s/history' % (str(ticket_id),))
items = []
lines = msg.split('\n')
+ multiline_buffer = ""
+ in_multiline = False
if self.__get_s... | Fixes crash in get_short_history on multiline entries | py |
diff --git a/cryptorito/__init__.py b/cryptorito/__init__.py
index <HASH>..<HASH> 100644
--- a/cryptorito/__init__.py
+++ b/cryptorito/__init__.py
@@ -52,7 +52,6 @@ def gpg_version():
"""Returns the GPG version"""
cmd = flatten([gnupg_bin(), "--version"])
output = stderr_output(cmd)
- print("ASDASD %s... | removed stupid debugging output oi vey | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -909,12 +909,12 @@ class Application(object):
handlers = list(handlers or [])
static_url_prefix = settings.get("static_url_prefix",
... | Making sure StaticFileHandlers get first, if not, a catch all handler would break the static handlers. | py |
diff --git a/hererocks.py b/hererocks.py
index <HASH>..<HASH> 100755
--- a/hererocks.py
+++ b/hererocks.py
@@ -249,7 +249,6 @@ class Program(object):
return
if self.source_kind == "git":
- print("Warning: checksum of {} is not verified (git)".format(self.name))
# Currentl... | Don't warn about checksum when using cached git repos | py |
diff --git a/panphon/distance.py b/panphon/distance.py
index <HASH>..<HASH> 100644
--- a/panphon/distance.py
+++ b/panphon/distance.py
@@ -7,8 +7,7 @@ import pkg_resources
import yaml
import _panphon
-import Levenshtein
-
+import editdistance
class Distance(_panphon.FeatureTable):
def __init__(self, feature... | Changed Levenshtein distance library | py |
diff --git a/bandit/backends/base.py b/bandit/backends/base.py
index <HASH>..<HASH> 100644
--- a/bandit/backends/base.py
+++ b/bandit/backends/base.py
@@ -38,17 +38,19 @@ class HijackBackendMixin(object):
to_send.append(message)
else:
context = {'message': message,
- ... | Clear cc/bcc, pass 'previous_cc' and 'previous_bcc' to template context | py |
diff --git a/rest_api/api.py b/rest_api/api.py
index <HASH>..<HASH> 100644
--- a/rest_api/api.py
+++ b/rest_api/api.py
@@ -213,10 +213,14 @@ def eidos_process_text():
"""Process text with EIDOS and return INDRA Statements."""
if request.method == 'OPTIONS':
return {}
- response = request.body.read... | Handle missing webservice arg in REST API | py |
diff --git a/hepdata_validator/__init__.py b/hepdata_validator/__init__.py
index <HASH>..<HASH> 100644
--- a/hepdata_validator/__init__.py
+++ b/hepdata_validator/__init__.py
@@ -28,6 +28,8 @@ from .version import __version__
__all__ = ('__version__', )
+LATEST_SCHEMA_VERSION = 'v2'
+
class Validator(object):
... | Add a constant for latest schema version | py |
diff --git a/dxf/__main__.py b/dxf/__main__.py
index <HASH>..<HASH> 100644
--- a/dxf/__main__.py
+++ b/dxf/__main__.py
@@ -4,7 +4,7 @@
# dxf push-blob <repo> <file> [@alias] upload blob from file, print hash
# and optionally set alias to it
# dxf pull-blob <repo> <hash>|@<a... | Delete alias as well as blob | py |
diff --git a/tests/test_memcached.py b/tests/test_memcached.py
index <HASH>..<HASH> 100644
--- a/tests/test_memcached.py
+++ b/tests/test_memcached.py
@@ -31,3 +31,9 @@ def test_memcached_url_multiple_locations():
os.environ['CACHE_URL'] = 'memcached://127.0.0.1:11211,192.168.0.100:11211?key_prefix=site1'
con... | Test socket url with memcached | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -26,7 +26,7 @@ on_rtd = os.getenv('READTHEDOCS') == 'True'
#sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))
-MOCK_MODULES = ['aiohttp', 'requests']
+MOCK_MODULES = ['aioht... | sphinx uses requests, don't mock it. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -17,7 +17,7 @@ setup(
'jmespath==0.9.2',
'configobj>=5.0.6,<6.0.0',
'requests>=2.0.0,<3.0.0',
- 'six>=1.1.0,<2.0.0'
+ 'six>=1.10.0,<2.0.0'
],
entry_points={ | Depend on six>=<I> to ensure healthy SDK This is all about handling pypa/pip#<I> Resolves #<I> | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -37,9 +37,10 @@ else:
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
- return Mock()
+ return Mock()
-MOCK_MODULES = ['scipy', 'numpy', 'odlpp']
+MOCK_MODULES = ['bui... | added mocs to conf.py | py |
diff --git a/phonopy/cui/settings.py b/phonopy/cui/settings.py
index <HASH>..<HASH> 100644
--- a/phonopy/cui/settings.py
+++ b/phonopy/cui/settings.py
@@ -530,6 +530,8 @@ class ConfParser(object):
if line.find('=') != -1:
left, right = [x.strip() for x in line.split('=')]... | Fix conf parser to correctly handle .TRUE. and .FALSE. | py |
diff --git a/astroplan/core.py b/astroplan/core.py
index <HASH>..<HASH> 100644
--- a/astroplan/core.py
+++ b/astroplan/core.py
@@ -103,10 +103,13 @@ def transform_target_list_to_altaz(times, targets, location):
if not isinstance(targets, list) and targets.isscalar:
targets = [targets]
- repeated_time... | working to speed things up with @eteq [ci skip] | py |
diff --git a/example_project/urls.py b/example_project/urls.py
index <HASH>..<HASH> 100644
--- a/example_project/urls.py
+++ b/example_project/urls.py
@@ -4,7 +4,9 @@ from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
- (r'^activity/', include('actstream.urls')),
(r'^admin/doc/... | activities at base, added comments and accounts | py |
diff --git a/account/views.py b/account/views.py
index <HASH>..<HASH> 100644
--- a/account/views.py
+++ b/account/views.py
@@ -348,9 +348,9 @@ class ChangePasswordView(FormView):
def form_valid(self, form):
self.change_password(form)
return redirect(self.get_success_url())
-
+
def get_su... | Corrected password change redirect url. | py |
diff --git a/sphinxcontrib/dotnetdomain.py b/sphinxcontrib/dotnetdomain.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/dotnetdomain.py
+++ b/sphinxcontrib/dotnetdomain.py
@@ -8,7 +8,7 @@ from itertools import chain
from six import iteritems
-from sphinx import addnodes
+from sphinx import addnodes, version_inf... | Add support for sphinx <I> latex writer Adds support for multiple formats of entry listing for the latex writer. I'm not sure if there is an easy way to mock out the latex builder, it seems to be more complicated than the others. Fixes #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -44,6 +44,7 @@ setup(name='PyVISA',
maintainer='Hernan E. Grecco',
maintainer_email='hernan.grecco@gmail.com',
url='https://github.com/hgrecco/pyvisa',
+ test_suite='pyvisa.testsuite.testsuite',
... | Added test suite to setup.py | py |
diff --git a/solidity/python/Formula/__init__.py b/solidity/python/Formula/__init__.py
index <HASH>..<HASH> 100644
--- a/solidity/python/Formula/__init__.py
+++ b/solidity/python/Formula/__init__.py
@@ -54,19 +54,19 @@ def calculateSaleReturn(_supply, _reserveBalance, _reserveRatio, _sellAmount):
if (_sellAmount =... | Cosmetic Variable 'baseN' should be named 'baseD'. | py |
diff --git a/salt/modules/nagios_json.py b/salt/modules/nagios_json.py
index <HASH>..<HASH> 100644
--- a/salt/modules/nagios_json.py
+++ b/salt/modules/nagios_json.py
@@ -19,9 +19,9 @@ from salt.ext.six.moves.urllib.parse import urljoin as _urljoin
try:
import requests
from requests.exceptions import Connect... | Add more meaning to the import constraint and add log debug entry. | py |
diff --git a/zappa/handler.py b/zappa/handler.py
index <HASH>..<HASH> 100644
--- a/zappa/handler.py
+++ b/zappa/handler.py
@@ -154,10 +154,9 @@ class LambdaHandler(object):
whole_function = event['command']
app_function = self.import_module_and_get_function(whole_function)
- resul... | Expose context via WSGI environment. Also pass event payload, context into direct invocations via 'command'. | py |
diff --git a/pfurl/pfurl.py b/pfurl/pfurl.py
index <HASH>..<HASH> 100644
--- a/pfurl/pfurl.py
+++ b/pfurl/pfurl.py
@@ -813,6 +813,7 @@ class Pfurl():
str_msg = 'Removed existing local path... '
self.qprint('Creating empty local path %s...' % str_localPathFull)
... | Fix bug that reports deep dir tree creation as false. | py |
diff --git a/bgen_reader/_dosage.py b/bgen_reader/_dosage.py
index <HASH>..<HASH> 100644
--- a/bgen_reader/_dosage.py
+++ b/bgen_reader/_dosage.py
@@ -79,6 +79,9 @@ def compute_dosage(expec, alt=None):
Examples
--------
+
+ First a quick-start example.
+
.. doctest::
>>> from bgen_reader ... | better dosage snippets ex. | py |
diff --git a/neat/attributes.py b/neat/attributes.py
index <HASH>..<HASH> 100644
--- a/neat/attributes.py
+++ b/neat/attributes.py
@@ -46,7 +46,7 @@ class FloatAttribute(BaseAttribute):
mutate_rate = getattr(config, self.mutate_rate_name)
if r < replace_rate + mutate_rate:
mutate_power = ... | Clamp mutated values in FloatAttribute | py |
diff --git a/dataset/persistence/database.py b/dataset/persistence/database.py
index <HASH>..<HASH> 100644
--- a/dataset/persistence/database.py
+++ b/dataset/persistence/database.py
@@ -121,7 +121,7 @@ class Database(object):
as the primary key of the table. Automatic id is set to be an
auto-incremen... | Reduce default String length of pk to <I> | py |
diff --git a/wakatime/base.py b/wakatime/base.py
index <HASH>..<HASH> 100644
--- a/wakatime/base.py
+++ b/wakatime/base.py
@@ -454,11 +454,15 @@ def main(argv=None):
if not project_name:
project_name = args.alternate_project
+ kwargs = vars(args)
+ if 'project' in kwargs:
+ ... | remove project from args because we pass it separately to send_heartbeat function | py |
diff --git a/main.py b/main.py
index <HASH>..<HASH> 100755
--- a/main.py
+++ b/main.py
@@ -35,8 +35,7 @@ app.config['SERVER_NAME'] = config.server_name
@app.after_request
def set_cache_expiry(r):
- r.headers["Expires"] = "5"
- r.headers['Cache-Control'] = 'public, max-age=5'
+ r.headers['Cache-Control'] = ... | Increase to 5 minutes, not 5 seconds | py |
diff --git a/bcbio/pipeline/config_utils.py b/bcbio/pipeline/config_utils.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/config_utils.py
+++ b/bcbio/pipeline/config_utils.py
@@ -218,6 +218,8 @@ def use_vqsr(algs):
callers = alg.get("variantcaller", "gatk")
if isinstance(callers, basestring):
... | Handle checking for VQSR when not doing variant calling | py |
diff --git a/cleverhans/attacks.py b/cleverhans/attacks.py
index <HASH>..<HASH> 100644
--- a/cleverhans/attacks.py
+++ b/cleverhans/attacks.py
@@ -28,9 +28,9 @@ class Attack(object):
raise Exception("A session should not be provided when using th.")
if not isinstance(model, Model):
if... | Depricate passing callable to attack class | py |
diff --git a/normalize/property/__init__.py b/normalize/property/__init__.py
index <HASH>..<HASH> 100644
--- a/normalize/property/__init__.py
+++ b/normalize/property/__init__.py
@@ -131,7 +131,7 @@ class LazyProperty(Property):
def init_prop(self, obj, value=_Default):
if value is _Default:
... | Lazy Properties didn't pass through the value to super() This ended up making lazy properties get set to the default if a value was passed during construction. Fix that. | py |
diff --git a/salt/cloud/clouds/digital_ocean.py b/salt/cloud/clouds/digital_ocean.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/digital_ocean.py
+++ b/salt/cloud/clouds/digital_ocean.py
@@ -101,9 +101,9 @@ def avail_images(call=None):
items = query(method='images')
ret = {}
for image in items['i... | Use the image id as name is not unique for DigitalOcean images. Conflicts: salt/cloud/clouds/digital_ocean_v2.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -99,6 +99,7 @@ setup(
'scripts/setup_indy_node_iptables',
'scripts/current_validators',
'scripts/node_address_list',
+ 'scripts/generate_bls_proof_of_possession',
... | INDY-<I>: fix problem after merge | py |
diff --git a/lmj/tnn/feedforward.py b/lmj/tnn/feedforward.py
index <HASH>..<HASH> 100644
--- a/lmj/tnn/feedforward.py
+++ b/lmj/tnn/feedforward.py
@@ -146,7 +146,7 @@ class Network(object):
def params(self, **kwargs):
params = self.weights + self.biases
- if 'learn_gains' in self.kwargs:
+ ... | Fix bug in retrieving params. | py |
diff --git a/pyspectral/tests/test_reflectance.py b/pyspectral/tests/test_reflectance.py
index <HASH>..<HASH> 100644
--- a/pyspectral/tests/test_reflectance.py
+++ b/pyspectral/tests/test_reflectance.py
@@ -22,7 +22,7 @@
"""Unit testing the 3.7 micron reflectance calculations."""
-from pyspectral.near_infrared_ref... | Test that default values are used in Calculator | py |
diff --git a/superset/config.py b/superset/config.py
index <HASH>..<HASH> 100644
--- a/superset/config.py
+++ b/superset/config.py
@@ -187,8 +187,8 @@ IMG_UPLOAD_URL = '/static/uploads/'
# IMG_SIZE = (300, 200, True)
CACHE_DEFAULT_TIMEOUT = 60 * 60 * 24
-CACHE_CONFIG = {'CACHE_TYPE': 'simple'}
-TABLE_NAMES_CACHE_CO... | revert the change in config.py (#<I>) | py |
diff --git a/skyfield/nutationlib.py b/skyfield/nutationlib.py
index <HASH>..<HASH> 100644
--- a/skyfield/nutationlib.py
+++ b/skyfield/nutationlib.py
@@ -241,7 +241,6 @@ def iau2000a(jd_tt):
# Summation of luni-solar nutation series (in reverse order).
arg = nals_t.dot(a)
- fmod(arg, tau, out=arg)
... | Remove four fmod() calls that make no difference | py |
diff --git a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
index <HASH>..<HASH> 100644
--- a/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
+++ b/shinken/modules/ndodb_mysql_broker/ndodb_mysql_broker.py
@@ -133,7 +133,7 @@ class Ndodb_Mysql... | Don't compare string and int. The option was always on because 0 != '0' | py |
diff --git a/pypresence/presence.py b/pypresence/presence.py
index <HASH>..<HASH> 100644
--- a/pypresence/presence.py
+++ b/pypresence/presence.py
@@ -104,6 +104,19 @@ class Presence:
self.send_data(1, payload)
return self.loop.run_until_complete(self.read_output())
+ def clear(self,pid=os.getpid... | added clear() (beta) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -159,9 +159,12 @@ class TestCommand(Command):
pid = os.fork()
if pid != 0:
pid, status = os.waitpid(pid, 0)
- returncode = status >> 8 # extract return code
- ... | tests: exit with 1 if the child was killed | py |
diff --git a/etrago/tools/plot.py b/etrago/tools/plot.py
index <HASH>..<HASH> 100644
--- a/etrago/tools/plot.py
+++ b/etrago/tools/plot.py
@@ -728,11 +728,10 @@ def plot_voltage(network, boundaries=[]):
def curtailment(network, carrier='solar', filename=None):
- p_by_carrier = network.generators_t.p.mul(network... | Ignore weighting in curtailment-plot | py |
diff --git a/floyd/model/module.py b/floyd/model/module.py
index <HASH>..<HASH> 100644
--- a/floyd/model/module.py
+++ b/floyd/model/module.py
@@ -58,7 +58,7 @@ class Module(BaseModel):
self.default_container = default_container
self.family_id = family_id
self.outputs = outputs if outputs els... | do not send default input connection to jobs without data mount | py |
diff --git a/coconut/command.py b/coconut/command.py
index <HASH>..<HASH> 100644
--- a/coconut/command.py
+++ b/coconut/command.py
@@ -462,7 +462,7 @@ class cli(object):
else:
install_func = lambda args: subprocess.check_call(args)
try:
- install_func("jupyter --version")
+ ... | Further fixes Jupyter existence check command | py |
diff --git a/gpflow/transforms.py b/gpflow/transforms.py
index <HASH>..<HASH> 100644
--- a/gpflow/transforms.py
+++ b/gpflow/transforms.py
@@ -23,7 +23,8 @@ from .core.base import ITransform
class Transform(ITransform): # pylint: disable=W0223
- pass
+ def __call__(self, other_transform):
+ return Cha... | enable chaining of transforms using __call__ | py |
diff --git a/prospector/__pkginfo__.py b/prospector/__pkginfo__.py
index <HASH>..<HASH> 100644
--- a/prospector/__pkginfo__.py
+++ b/prospector/__pkginfo__.py
@@ -1,2 +1,2 @@
-__version_info__ = (0, 10)
+__version_info__ = (0, 10, 1)
__version__ = '.'.join(map(str, __version_info__)) | Bumping version for hotfix release | py |
diff --git a/mediasync/backends/s3.py b/mediasync/backends/s3.py
index <HASH>..<HASH> 100644
--- a/mediasync/backends/s3.py
+++ b/mediasync/backends/s3.py
@@ -94,7 +94,7 @@ class Client(BaseClient):
key = Key(self._bucket)
key.key = remote_path
- if key.get_metadata('mediasync... | add force option support back into s3 sync | py |
diff --git a/satpy/readers/__init__.py b/satpy/readers/__init__.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/__init__.py
+++ b/satpy/readers/__init__.py
@@ -695,15 +695,15 @@ class FSFile(os.PathLike):
"""Representation of the object."""
return '<FSFile "' + str(self._file) + '">'
- def ope... | Add args and kwargs to FSFile.open method. | py |
diff --git a/tickets/urls.py b/tickets/urls.py
index <HASH>..<HASH> 100644
--- a/tickets/urls.py
+++ b/tickets/urls.py
@@ -1,8 +1,9 @@
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
-from views import MyTicketListView
+from views import MyTicketListView, MyTicke... | add url for my ticket detail view | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -1,8 +1,13 @@
+import sys
import unittest
from tests.test_jinjasql import JinjaSqlTest
-from tests.test_django import DjangoTest
+
def all_tests():
suite = unittest.TestSuite()
... | One more attempt to disable django tests for <I>.x | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -256,7 +256,7 @@ metadata = dict(
# runtime dependencies
install_requires=['numpy>=1.6.0',
'scipy>=0.11',
- 'mdtraj',
+ 'mdtraj>=1.4.0',
... | [setup] changed mdtraj-<I> as minimum requirement | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -58,7 +58,7 @@ setup(
],
install_requires=[
- "distribute",
+ "setuptools",
],
packages=PKGS, | Changed from distribute to setuptools. Closes #<I> | py |
diff --git a/api/python/setup.py b/api/python/setup.py
index <HASH>..<HASH> 100644
--- a/api/python/setup.py
+++ b/api/python/setup.py
@@ -4,7 +4,7 @@ import sys
from setuptools import setup, find_packages
from setuptools.command.install import install
-VERSION = "3.1.1"
+VERSION = "3.1.2"
def readme():
rea... | Update setup.py for release <I> (#<I>) Release Notes for <I> and <I> - Added support for adding an in-memory object (such as a pandas.DataFrame) to a package via package.set() - Fix to work with pyarrow <I> - Performance improvements for list_packages and delete_package - Added list_package_versions function | py |
diff --git a/salt/state.py b/salt/state.py
index <HASH>..<HASH> 100644
--- a/salt/state.py
+++ b/salt/state.py
@@ -318,11 +318,12 @@ class Compiler(object):
# Add the requires to the reqs dict and check them
# all for recursive requisites.
... | Force prereq to be formed as a list | py |
diff --git a/django_countries/ioc_data.py b/django_countries/ioc_data.py
index <HASH>..<HASH> 100644
--- a/django_countries/ioc_data.py
+++ b/django_countries/ioc_data.py
@@ -324,7 +324,7 @@ def check_ioc_countries(verbosity=1):
if verbosity: # pragma: no cover
print("Checking if all IOC codes map correc... | Skip an unnecessary test line to bump up to <I>% coverage | py |
diff --git a/lib/opsmgr.py b/lib/opsmgr.py
index <HASH>..<HASH> 100644
--- a/lib/opsmgr.py
+++ b/lib/opsmgr.py
@@ -195,7 +195,7 @@ def get_products():
def flatten(properties):
flattened = {}
for key1, value1 in properties.iteritems():
- if type(value1) is dict:
+ if type(value1) is dict and value1.keys() != ['se... | Don't flatten secret password structures. | py |
diff --git a/src/hamster/widgets/facttree.py b/src/hamster/widgets/facttree.py
index <HASH>..<HASH> 100644
--- a/src/hamster/widgets/facttree.py
+++ b/src/hamster/widgets/facttree.py
@@ -321,6 +321,7 @@ class FactTree(graphics.Scene, gtk.Scrollable):
return facts_ids.index(self.current_fact.id)
def on_m... | call on_mouse_move in on_mouse_down otherwise the hover information is sometimes not up to date | py |
diff --git a/putio.py b/putio.py
index <HASH>..<HASH> 100755
--- a/putio.py
+++ b/putio.py
@@ -217,8 +217,7 @@ class _File(_BaseResource):
crcbin = 0
with open(filepath, 'rb') as f:
while True:
- chunk = f.read(256 * 1024) # Chunk size is 256kb
-
+ chunk = f.... | use same chunk size when reading from disk | py |
diff --git a/examples/cupoftee/db.py b/examples/cupoftee/db.py
index <HASH>..<HASH> 100644
--- a/examples/cupoftee/db.py
+++ b/examples/cupoftee/db.py
@@ -40,7 +40,7 @@ class Database(object):
def __setitem__(self, key, value):
self._local[key] = value
- def __delitem__(self, key, value):
+ def __... | Fix __delitem__ signature (does not accept value) | py |
diff --git a/allauth/socialaccount/providers/vk/provider.py b/allauth/socialaccount/providers/vk/provider.py
index <HASH>..<HASH> 100644
--- a/allauth/socialaccount/providers/vk/provider.py
+++ b/allauth/socialaccount/providers/vk/provider.py
@@ -20,8 +20,10 @@ class VKAccount(ProviderAccount):
return ret
... | Make full name for VK account. VK doesn't provide name field. Available fields are listed at <URL> | py |
diff --git a/commitizen/changelog.py b/commitizen/changelog.py
index <HASH>..<HASH> 100644
--- a/commitizen/changelog.py
+++ b/commitizen/changelog.py
@@ -38,29 +38,6 @@ from commitizen.bump import normalize_tag
from commitizen.exceptions import InvalidConfigurationError
from commitizen.git import GitCommit, GitTag
... | refactor(changelog): removes unused code. duplicates are found in changelog_parser | py |
diff --git a/tensorlayer/models/core.py b/tensorlayer/models/core.py
index <HASH>..<HASH> 100644
--- a/tensorlayer/models/core.py
+++ b/tensorlayer/models/core.py
@@ -509,7 +509,8 @@ class Model():
self._nodes_fixed = True
def __repr__(self):
- tmpstr = self.__class__.__name__ + '(\n'
+ # ... | modify model.__repr__() to report model name | py |
diff --git a/pug/package_info.py b/pug/package_info.py
index <HASH>..<HASH> 100644
--- a/pug/package_info.py
+++ b/pug/package_info.py
@@ -17,7 +17,7 @@ def try_read(filename, path=__package_path__):
return None
-__version__ = '0.1.17'
+__version__ = '0.1.18'
# __name__ = __package__
__license__ = tr... | python-dateutil>=<I> rather than ==<I> in setup.py files | py |
diff --git a/cmsplugin_cascade/clipboard/admin.py b/cmsplugin_cascade/clipboard/admin.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/clipboard/admin.py
+++ b/cmsplugin_cascade/clipboard/admin.py
@@ -104,17 +104,17 @@ class CascadeClipboardAdmin(admin.ModelAdmin):
"""
def plugins_from_data(pare... | renamed plugin -> plugin_type | py |
diff --git a/astromodels/functions/functions.py b/astromodels/functions/functions.py
index <HASH>..<HASH> 100644
--- a/astromodels/functions/functions.py
+++ b/astromodels/functions/functions.py
@@ -1312,7 +1312,7 @@ class Log_parabola(Function1D):
r"""
description :
- A log-parabolic function. NOTE:... | Removed the : which was confusing yaml | py |
diff --git a/sc2common/commonUtilFuncs.py b/sc2common/commonUtilFuncs.py
index <HASH>..<HASH> 100644
--- a/sc2common/commonUtilFuncs.py
+++ b/sc2common/commonUtilFuncs.py
@@ -101,9 +101,9 @@ def Dumper(obj, indent=0, increase=4, encoding='utf-8'):
print("%s%s"%(" "*(indent), p(obj))) # universally convert ... | - more clarity in Dumper exception handling | py |
diff --git a/bugwarrior/services/githubutils.py b/bugwarrior/services/githubutils.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/githubutils.py
+++ b/bugwarrior/services/githubutils.py
@@ -45,8 +45,12 @@ def get_issues(username, repo, auth):
def get_directly_assigned_issues(auth):
- """ username and r... | Updating an inaccurate docstring. | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -51,7 +51,7 @@ copyright = u'2012, coagulant'
# The short X.Y version.
version = '0.2.3'
# The full version, including alpha/beta/rc tags.
-release = '0.2.3dev'
+release = '0.2.3'
# The language for conte... | Bumped version to <I> | py |
diff --git a/pybar/fei4/register_utils.py b/pybar/fei4/register_utils.py
index <HASH>..<HASH> 100644
--- a/pybar/fei4/register_utils.py
+++ b/pybar/fei4/register_utils.py
@@ -67,7 +67,7 @@ class FEI4RegisterUtils(object):
self.send_command(command=concatenated_cmd, repeat=repeat, wait_for_finish=wait_f... | ENH: allow repeat to be 0 to run forever | py |
diff --git a/sortinghat/_version.py b/sortinghat/_version.py
index <HASH>..<HASH> 100644
--- a/sortinghat/_version.py
+++ b/sortinghat/_version.py
@@ -1,2 +1,2 @@
# Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440
-__version__ = "0.5.0"
+__version__ = "0.5.1" | Update version number to <I> | 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
@@ -235,7 +235,7 @@ class SSH(object):
self.tgt_type = self.opts['selected_target_option'] \
if self.opts['selected_target_option']... | Bugfix: use set to self options, instead of their copies from parameters | py |
diff --git a/src/conduit/setup.py b/src/conduit/setup.py
index <HASH>..<HASH> 100644
--- a/src/conduit/setup.py
+++ b/src/conduit/setup.py
@@ -28,15 +28,15 @@ else:
setup(
install_requires=[
- 'PyPDF3>=1.0.0',
+ 'PyPDF3>=1.0.1',
'pdfrw',
- 'PyMuPDF',
+ 'PyMuPDF>=1.13.20',
... | Updated setup.py install requires | py |
diff --git a/ospd/ospd.py b/ospd/ospd.py
index <HASH>..<HASH> 100644
--- a/ospd/ospd.py
+++ b/ospd/ospd.py
@@ -654,7 +654,7 @@ class OSPDaemon:
elif progress == ScanProgress.DEAD_HOST:
dead_hosts.append(finished_host)
else:
- logger.warning(
+ log... | Change message log level The scan just ends with an interrupted scan. At this point in OSPD, we don't know what caused the interrupted scan. Before, the possible cause of an interrupted openvas scan were a duplicated host in target, unresolved host name, a race condition, and others. Many of the issues were already add... | py |
diff --git a/tests/test_project.py b/tests/test_project.py
index <HASH>..<HASH> 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -12,10 +12,10 @@ class TestProject():
hash = urlsafe_b64encode(
sha256(proj.pipfile_location.encode()).digest()[:6]).decode()
- assert proj.nam... | this doesn't work on ci | py |
diff --git a/inquirer/questions.py b/inquirer/questions.py
index <HASH>..<HASH> 100644
--- a/inquirer/questions.py
+++ b/inquirer/questions.py
@@ -254,6 +254,8 @@ class Path(Text):
if current is None:
raise errors.ValidationError(current)
+ current = self.normalize_value(current)
+
... | Fixing validating Path's normalized value | py |
diff --git a/pyneuroml/tune/NeuroMLSimulation.py b/pyneuroml/tune/NeuroMLSimulation.py
index <HASH>..<HASH> 100644
--- a/pyneuroml/tune/NeuroMLSimulation.py
+++ b/pyneuroml/tune/NeuroMLSimulation.py
@@ -7,15 +7,15 @@ from pyneuroml.lems import generate_lems_file_for_neuroml
try:
import pyelectro # Not used he... | fix: use sys.exit exit() is a helper for the interactive shell, sys.exit() should be used in programs | py |
diff --git a/qface/__about__.py b/qface/__about__.py
index <HASH>..<HASH> 100644
--- a/qface/__about__.py
+++ b/qface/__about__.py
@@ -9,7 +9,7 @@ except NameError:
__title__ = "qface"
__summary__ = "A generator framework based on a common modern IDL"
__url__ = "https://pelagicore.github.io/qface/"
-__version__ = "1... | bumped version to <I> | py |
diff --git a/edisgo/tools/pypsa_io.py b/edisgo/tools/pypsa_io.py
index <HASH>..<HASH> 100644
--- a/edisgo/tools/pypsa_io.py
+++ b/edisgo/tools/pypsa_io.py
@@ -556,10 +556,13 @@ def lv_to_pypsa(network):
line['type'].append("")
line['x'].append(
- l['line'].type['L'] * omega / 1e3 * l['lin... | Consider quantity in first creation of pypsa representation This will not change the results as of now, as ding0 grids are the only supported source for grid topologies and line quantity is so far always 1. | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -19,7 +19,7 @@
#
# import os
# import sys
-# sys.path.insert(0, os.path.abspath('.'))
+sys.path.insert(0, os.path.abspath('..'))
import sphinx_rtd_theme
# -- General configura... | Make the docs build against the project path When the package is not yet installed, this allow you to build the docs without explicitly setting the PYTHONPATH. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.