diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/molotov/tests/test_fmwk.py b/molotov/tests/test_fmwk.py
index <HASH>..<HASH> 100644
--- a/molotov/tests/test_fmwk.py
+++ b/molotov/tests/test_fmwk.py
@@ -224,7 +224,7 @@ class TestFmwk(TestLoop):
@setup_session()
async def _setup_session(wid, session):
- json_request("http://... | Use "invalid" domain instead of "NOPE". According to RFC<I> invalid is reserved for this use-case. | py |
diff --git a/falafel/config/specs.py b/falafel/config/specs.py
index <HASH>..<HASH> 100644
--- a/falafel/config/specs.py
+++ b/falafel/config/specs.py
@@ -147,7 +147,7 @@ static_specs = {
"ls_disk" : CommandSpec("/bin/ls -lanR /dev/disk/by-*"),
"ls_dev" : CommandSpec("/bin... | Tweaking this spec to avoid collecting too much For RHEV machines the recursive listing of /var/log can be immense (millions and millions of lines). The handling of this file can cause severe memory pressure resulting in the OOM Killer killing the worker and putting the falafel-web process in a weird state. I've chan... | py |
diff --git a/src/rotest/core/block.py b/src/rotest/core/block.py
index <HASH>..<HASH> 100755
--- a/src/rotest/core/block.py
+++ b/src/rotest/core/block.py
@@ -172,7 +172,8 @@ class TestBlock(AbstractFlowComponent):
Raises:
AttributeError: not all inputs were passed to the block.
"""
- ... | fixed by pylint | py |
diff --git a/turberfield/dialogue/types.py b/turberfield/dialogue/types.py
index <HASH>..<HASH> 100644
--- a/turberfield/dialogue/types.py
+++ b/turberfield/dialogue/types.py
@@ -22,13 +22,19 @@ import random
Name = namedtuple("Name", ["title", "firstname", "nicknames", "surname"])
+class EnumFactory:
+
+ @clas... | Added EnumFactory mixin. | py |
diff --git a/django_payzen/views.py b/django_payzen/views.py
index <HASH>..<HASH> 100644
--- a/django_payzen/views.py
+++ b/django_payzen/views.py
@@ -47,6 +47,7 @@ class ResponseView(generic.View):
.format(response.vads_trans_id))
else:
signals.response_error.send(sender=... | views | added more info in logs in case of failure. | py |
diff --git a/devassistant/command_runners.py b/devassistant/command_runners.py
index <HASH>..<HASH> 100644
--- a/devassistant/command_runners.py
+++ b/devassistant/command_runners.py
@@ -427,7 +427,9 @@ class GitHubCommandRunner(CommandRunner):
Returns:
guessed reponame
"""
- name ... | Fix getting Github reponame if 'name' is path | py |
diff --git a/src/discoursegraphs/readwrite/salt/saltxmi.py b/src/discoursegraphs/readwrite/salt/saltxmi.py
index <HASH>..<HASH> 100755
--- a/src/discoursegraphs/readwrite/salt/saltxmi.py
+++ b/src/discoursegraphs/readwrite/salt/saltxmi.py
@@ -24,7 +24,7 @@ from discoursegraphs.readwrite.salt.edges import (DominanceRela... | flake8: saltxmi.py (unused imports; removed out-commented code) | py |
diff --git a/ceam_tests/test_gbd_data/test_gbd_ms_functions.py b/ceam_tests/test_gbd_data/test_gbd_ms_functions.py
index <HASH>..<HASH> 100644
--- a/ceam_tests/test_gbd_data/test_gbd_ms_functions.py
+++ b/ceam_tests/test_gbd_data/test_gbd_ms_functions.py
@@ -1,5 +1,6 @@
# ~/ceam/ceam_tests/test_gbd_data/test_gbd_ms_fu... | TST: mark expected failure of sbp load func | py |
diff --git a/pyvisa/__init__.py b/pyvisa/__init__.py
index <HASH>..<HASH> 100644
--- a/pyvisa/__init__.py
+++ b/pyvisa/__init__.py
@@ -23,8 +23,11 @@ logger.addHandler(compat.NullHandler())
def log_to_screen(level=logging.DEBUG):
+ log(None, level) # sys.stderr by default
+
+def log(stream_output, level=logging... | Added possibility to redirect logging to file | py |
diff --git a/spyder/widgets/editor.py b/spyder/widgets/editor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/editor.py
+++ b/spyder/widgets/editor.py
@@ -560,6 +560,7 @@ class EditorStack(QWidget):
corner_widgets=corner_widgets)
self.tabs.tabBar().setObjectName('plugin-tab')... | Set editor tabs to be movable | py |
diff --git a/superset/views/core.py b/superset/views/core.py
index <HASH>..<HASH> 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -33,7 +33,7 @@ from flask_appbuilder.security.decorators import has_access, has_access_api
from flask_appbuilder.security.sqla import models as ab_models
from flask_bab... | chore: Leverage SQLALchemy ping rather than explicit SELECT 1 for testconn (#<I>) | py |
diff --git a/pandas/tests/tools/test_numeric.py b/pandas/tests/tools/test_numeric.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/tools/test_numeric.py
+++ b/pandas/tests/tools/test_numeric.py
@@ -568,6 +568,24 @@ def test_downcast_limits(dtype, downcast, min_max):
@pytest.mark.parametrize(
+ "ser,expected",
... | GH<I>: BUG: to_numeric doesn't work uint<I> numbers (#<I>) | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -21,6 +21,10 @@
#
# $Log: scapy.py,v $
+# Revision 1.0.4.12 2006/04/20 13:10:13 pbi
+# - fixed a bug with alias_type in Packet.guess_payload_class() when a field exists only
+# in the alias class
+#
# Revision 1.0.4.1... | - fixed a bug with alias_type in Packet.guess_payload_class() when a field exists only in the alias class | py |
diff --git a/openpnm/models/physics/ad_dif_conductance.py b/openpnm/models/physics/ad_dif_conductance.py
index <HASH>..<HASH> 100644
--- a/openpnm/models/physics/ad_dif_conductance.py
+++ b/openpnm/models/physics/ad_dif_conductance.py
@@ -94,10 +94,6 @@ def ad_dif(target,
Peij[(Peij < 1e-10) & (Peij >= 0)] = 1e-10... | Removed peclet number export in ad_dif_conductance | py |
diff --git a/pyrogram/client/filters/filters.py b/pyrogram/client/filters/filters.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/filters/filters.py
+++ b/pyrogram/client/filters/filters.py
@@ -69,8 +69,8 @@ class Filters:
sticker = build("Sticker", lambda _, m: bool(m.sticker))
"""Filter messages that c... | Rename Filters.gif to Filters.animation | py |
diff --git a/salt/states/module.py b/salt/states/module.py
index <HASH>..<HASH> 100644
--- a/salt/states/module.py
+++ b/salt/states/module.py
@@ -214,7 +214,7 @@ def wait(name, **kwargs):
watch = salt.utils.alias_function(wait, 'watch')
-@with_deprecated(globals(), "Oxygen", policy=with_deprecated.OPT_IN)
+@with_... | Bump removal version from Oxygen to Flourine for module.run This deprecation code was only recently put in for the `nitrogen` release. The policy is to give at least 2 feature releases before the deprecated code is removed. See the [Deprecating Code](<URL>) docs for more information. This PR bumps the warn_until/remo... | py |
diff --git a/pymatgen/io/vasp/outputs.py b/pymatgen/io/vasp/outputs.py
index <HASH>..<HASH> 100644
--- a/pymatgen/io/vasp/outputs.py
+++ b/pymatgen/io/vasp/outputs.py
@@ -1712,7 +1712,13 @@ class Outcar:
else:
if time_patt.search(line):
tok = line.strip().split(":")
- ... | Fixes Outcar parsing for VASP <I>. Details in issue #<I>. | py |
diff --git a/pylint/checkers/imports.py b/pylint/checkers/imports.py
index <HASH>..<HASH> 100644
--- a/pylint/checkers/imports.py
+++ b/pylint/checkers/imports.py
@@ -224,6 +224,8 @@ given file (report RP0402 must not be disabled)'}
self.linter.add_stats(cycles=[])
self.stats = self.linter.stats
... | Get the ignored modules only once and save the result in the imports checker. | py |
diff --git a/openfisca_country_template/__init__.py b/openfisca_country_template/__init__.py
index <HASH>..<HASH> 100644
--- a/openfisca_country_template/__init__.py
+++ b/openfisca_country_template/__init__.py
@@ -4,7 +4,8 @@ import os
from openfisca_core.taxbenefitsystems import TaxBenefitSystem
-from . import e... | Define which examples to use in OpenAPI | py |
diff --git a/test_project/settings.py b/test_project/settings.py
index <HASH>..<HASH> 100644
--- a/test_project/settings.py
+++ b/test_project/settings.py
@@ -24,6 +24,8 @@ INSTALLED_APPS = (
'tester',
)
+SECRET_KEY = 'unique snowflake'
+
TEST_RUNNER = "test_runner.DJCETestSuiteRunner"
CELERY_ALWAYS_EAGER =... | Add dummy SECRET_KEY to test_project settings Required to be non-empty since Django <I> | py |
diff --git a/angr/simos.py b/angr/simos.py
index <HASH>..<HASH> 100644
--- a/angr/simos.py
+++ b/angr/simos.py
@@ -1022,6 +1022,7 @@ os_mapping = defaultdict(lambda: SimOS)
def register_simos(name, cls):
os_mapping[name] = cls
-register_simos('unix', SimLinux)
+# Pulling in all EI_OSABI options supported by elf... | Add EI_OSABI parsing support | py |
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/__init__.py
+++ b/tests/integration/__init__.py
@@ -1018,3 +1018,12 @@ class SaltReturnAssertsMixIn(object):
return self.assertNotEqual(
self.__getWithinSaltReturn(ret, ke... | Added new TestCase for testing the *Client interfaces | py |
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/oqvalidation.py
+++ b/openquake/commonlib/oqvalidation.py
@@ -820,7 +820,6 @@ class OqParam(valid.ParamSet):
if self.export_dir and not os.path.isabs(self.export_dir):
... | Removed a non-interesting log | py |
diff --git a/vyked/pinger.py b/vyked/pinger.py
index <HASH>..<HASH> 100644
--- a/vyked/pinger.py
+++ b/vyked/pinger.py
@@ -76,6 +76,7 @@ class TCPPinger:
self._protocol.send(ControlPacket.ping(self._node_id))
def on_timeout(self):
+ self._protocol.close()
self._handler.on_timeout(self._n... | Closed TCP Connection on Ping Timeout | py |
diff --git a/test/worker.py b/test/worker.py
index <HASH>..<HASH> 100755
--- a/test/worker.py
+++ b/test/worker.py
@@ -496,9 +496,9 @@ class TestBaseSplitCloneResiliency(TestBaseSplitClone):
# for each destination shard ("finding targets" state).
utils.poll_for_vars(
'vtworker', worker_port,
- ... | test: worker.py: Wait for online instead of the offline phase to run the reparent. | py |
diff --git a/src/streamlink/plugins/wwenetwork.py b/src/streamlink/plugins/wwenetwork.py
index <HASH>..<HASH> 100644
--- a/src/streamlink/plugins/wwenetwork.py
+++ b/src/streamlink/plugins/wwenetwork.py
@@ -146,7 +146,7 @@ class WWENetwork(Plugin):
if info.get("session_key"):
self.... | plugins.wwenetwork: use the resolution and bitrate in the stream name | py |
diff --git a/pyphi/actual.py b/pyphi/actual.py
index <HASH>..<HASH> 100644
--- a/pyphi/actual.py
+++ b/pyphi/actual.py
@@ -545,8 +545,8 @@ def big_acmip(context, direction=None):
Returns:
AcBigMip: A nested structure containing all the data from the
- intermediate calculations. The top level ... | Fix docstring in `actual` | py |
diff --git a/vlcp/utils/http.py b/vlcp/utils/http.py
index <HASH>..<HASH> 100644
--- a/vlcp/utils/http.py
+++ b/vlcp/utils/http.py
@@ -12,6 +12,7 @@ from vlcp.event.runnable import RoutineContainer
import base64
import uuid
import json
+from vlcp.event.core import QuitException
try:
from Cookie import SimpleCo... | bug fix: should raise QuitException | py |
diff --git a/kdcount/bootstrap.py b/kdcount/bootstrap.py
index <HASH>..<HASH> 100644
--- a/kdcount/bootstrap.py
+++ b/kdcount/bootstrap.py
@@ -69,20 +69,28 @@ class policy(object):
self.sizes = N
self.size = N.sum()
- def bootstrap(self, rng=None):
- """ create a bootstrap (of strap ids), ... | bootstrap takes a strap list. | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -3347,7 +3347,7 @@ def patch(name,
using this state function.
name
- The file to with the patch will be applied.
+ The file to which the patch will be a... | Typo (with → which) | py |
diff --git a/xclim/sdba/properties.py b/xclim/sdba/properties.py
index <HASH>..<HASH> 100644
--- a/xclim/sdba/properties.py
+++ b/xclim/sdba/properties.py
@@ -350,6 +350,7 @@ def acf(da: xr.DataArray, lag: int = 1, time_res: str = "season") -> xr.DataArra
def acf_last(x, nlags):
"""statsmodels acf calcu... | add comment to explain choice in acf | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -174,5 +174,7 @@ setup(name='llvmlite',
install_requires=install_requires,
license="BSD",
cmdclass=cmdclass,
- ext_modules=[ext_stub],
+ # The `ext_stub` is only needed for making bdist_wheel
+ ... | Fix building with conda-build on win<I> | py |
diff --git a/localshop/apps/permissions/mixins.py b/localshop/apps/permissions/mixins.py
index <HASH>..<HASH> 100644
--- a/localshop/apps/permissions/mixins.py
+++ b/localshop/apps/permissions/mixins.py
@@ -31,6 +31,13 @@ class RepositoryAccessMixin(object):
# Check repository based credentials, move to middle... | force distutils to send HTTP_AUTHORIZATION on register command | py |
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py
index <HASH>..<HASH> 100644
--- a/kafka/consumer/group.py
+++ b/kafka/consumer/group.py
@@ -4,10 +4,6 @@ import copy
import logging
import time
-import six
-
-import kafka.common as Errors
-
from kafka.client_async import KafkaClient
from kafka.consum... | Remove some unused bits from kafka.consumer.group | py |
diff --git a/src/pyrocore/scripts/mktor.py b/src/pyrocore/scripts/mktor.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/scripts/mktor.py
+++ b/src/pyrocore/scripts/mktor.py
@@ -137,6 +137,7 @@ class MetafileCreator(ScriptBaseWithConfig):
metafile.assign_fields(meta, self.options.set)
# Create ... | multi-tracker todo added | py |
diff --git a/pyinfra/api/facts.py b/pyinfra/api/facts.py
index <HASH>..<HASH> 100644
--- a/pyinfra/api/facts.py
+++ b/pyinfra/api/facts.py
@@ -219,6 +219,7 @@ def _get_fact(
status = False
stdout = []
+ combined_output_lines = []
try:
status, combined_output_lines = host.run_shell_command... | Fix UnboundLocalError If `host.run_shell_command` throws an exception on line <I>, then combined_output_lines ends up undefined, causing an UnboundLocalError on line <I>. Resolves #<I>. | py |
diff --git a/awsmfa/__init__.py b/awsmfa/__init__.py
index <HASH>..<HASH> 100755
--- a/awsmfa/__init__.py
+++ b/awsmfa/__init__.py
@@ -283,8 +283,8 @@ def get_credentials(short_term_name, lt_key_id, lt_access_key, args, config):
else:
console_input = prompter()
mfa_token = console_input('Enter AW... | fixed indentation based on PEP8 linter | py |
diff --git a/aiosqlite/core.py b/aiosqlite/core.py
index <HASH>..<HASH> 100644
--- a/aiosqlite/core.py
+++ b/aiosqlite/core.py
@@ -150,14 +150,19 @@ class Connection(Thread):
await self._lock.acquire()
pt = partial(fn, *args, **kwargs)
self._tx.put_nowait(pt)
- while True:
- ... | Performance fix. aiosqlite will always issue an event loop cycle, whereas changing the blocking call to block the first time only yields significant speed ups (~<I>-<I>X for small queries, and even <I>-<I>% for larger queries) | py |
diff --git a/doc/conf.py b/doc/conf.py
index <HASH>..<HASH> 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -47,7 +47,7 @@ for image in glob(".static/*.png"):
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions =... | Enable doctest sphinx extension | py |
diff --git a/plaid/version.py b/plaid/version.py
index <HASH>..<HASH> 100644
--- a/plaid/version.py
+++ b/plaid/version.py
@@ -1 +1 @@
-__version__ = '2.0.1'
+__version__ = '2.0.2' | plaid-python@<I> | py |
diff --git a/keepkeylib/client.py b/keepkeylib/client.py
index <HASH>..<HASH> 100644
--- a/keepkeylib/client.py
+++ b/keepkeylib/client.py
@@ -272,7 +272,7 @@ class TextUIMixin(object):
# capture spaces
return proto.CharacterAck(character=' ')
- elif character_ascii == 127... | Fix backspace capture Backspace characters were not previously recognized, at least not on my system running Arch Linux. Some systems may send a Delete character (ASCII <I>) when the user presses the Backspace key, but this behavior is incorrect, or at least non-standard. The Backspace key should type a Backspace cha... | py |
diff --git a/source/rafcon/gui/mygaphas/tools.py b/source/rafcon/gui/mygaphas/tools.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/mygaphas/tools.py
+++ b/source/rafcon/gui/mygaphas/tools.py
@@ -379,7 +379,7 @@ class MoveHandleTool(HandleTool):
return True
def on_motion_notify(self, event):
... | Gaphas: Fix access to removed property | py |
diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index <HASH>..<HASH> 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -717,8 +717,23 @@ class Block(PandasObject):
block = block.convert(numeric=False)
return block
- except (ValueError, TypeEr... | COMPAT: older numpies compat on dtype upcasting, xref #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -34,5 +34,6 @@ setup(
"Operating System :: OS Independent",
"Topic :: Software Development",
"Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3.3",
],
) | Explicitly state Python <I> support in setup.py | py |
diff --git a/spyder/widgets/mixins.py b/spyder/widgets/mixins.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/mixins.py
+++ b/spyder/widgets/mixins.py
@@ -22,11 +22,11 @@ import textwrap
from qtpy.QtCore import QPoint, Qt
from qtpy.QtGui import QCursor, QTextCursor, QTextDocument
from qtpy.QtWidgets import QAp... | Use else instead when checking for PyQT version as suggested by ccordoba<I>. | py |
diff --git a/bokeh/charts/attributes.py b/bokeh/charts/attributes.py
index <HASH>..<HASH> 100644
--- a/bokeh/charts/attributes.py
+++ b/bokeh/charts/attributes.py
@@ -48,16 +48,6 @@ class AttrSpec(HasProps):
found in `columns` and the attribute value that has been assigned.
""")
- # TODO it is no... | remove iterable frome base class (different types in subclasses) | py |
diff --git a/astromodels/parameter.py b/astromodels/parameter.py
index <HASH>..<HASH> 100644
--- a/astromodels/parameter.py
+++ b/astromodels/parameter.py
@@ -1067,7 +1067,7 @@ class Parameter(ParameterBase):
#The parameter has no boundaries
- return np.random.normal( self.value, variance * ... | The variance for np.random.normal must be positive, added an abs() to account for situation where .value is negative | py |
diff --git a/galpy/snapshot_src/snapshotMovies.py b/galpy/snapshot_src/snapshotMovies.py
index <HASH>..<HASH> 100644
--- a/galpy/snapshot_src/snapshotMovies.py
+++ b/galpy/snapshot_src/snapshotMovies.py
@@ -41,6 +41,17 @@ def snapshotToMovie(snap,filename,*args,**kwargs):
this procedure uses ffmpeg and conver... | note about matplotlib's memory leak | py |
diff --git a/mapillary_tools/exif_read.py b/mapillary_tools/exif_read.py
index <HASH>..<HASH> 100644
--- a/mapillary_tools/exif_read.py
+++ b/mapillary_tools/exif_read.py
@@ -168,8 +168,7 @@ class ExifRead:
capture_time = format_time(capture_time)
sub_sec = self.extract_subsec()
c... | bugfix: extract_capture_time return a wrong microsecond value If a jpg file contains a SubSecTimeOriginal field with a value of <I>, the extract_capture_time method returns a microsecond value of <I> instead of 5 this commit correct this bug | py |
diff --git a/EvoDAG/node.py b/EvoDAG/node.py
index <HASH>..<HASH> 100644
--- a/EvoDAG/node.py
+++ b/EvoDAG/node.py
@@ -745,12 +745,12 @@ class NaiveBayes(Function):
hy = [x.exp() for x in hy]
den = SparseArray.cumsum(hy)
hy = [(x / den).mul2(2).add2(-1.0) for x in hy]
- [x.finite(inpla... | finite in naive bayes | py |
diff --git a/ib_insync/util.py b/ib_insync/util.py
index <HASH>..<HASH> 100644
--- a/ib_insync/util.py
+++ b/ib_insync/util.py
@@ -377,7 +377,9 @@ def timeRange(
assert step > 0
delta = timedelta(seconds=step)
t = _fillDate(start)
- while t < datetime.now():
+ tz = timezone.utc if t.tzinfo else Non... | Allow timezone-aware datetimes in timeRange | py |
diff --git a/salt/states/nftables.py b/salt/states/nftables.py
index <HASH>..<HASH> 100644
--- a/salt/states/nftables.py
+++ b/salt/states/nftables.py
@@ -443,7 +443,7 @@ def flush(name, family='ipv4', **kwargs):
if ignore in kwargs:
del kwargs[ignore]
- if not 'table' in kwargs:
+ if 'tab... | Fix PEP8 E<I> - test for membership should be "not in" | py |
diff --git a/sigal/gallery.py b/sigal/gallery.py
index <HASH>..<HASH> 100644
--- a/sigal/gallery.py
+++ b/sigal/gallery.py
@@ -473,6 +473,10 @@ class Album:
for path in self.subdirs]
@property
+ def nbmedias(self):
+ return len(self.medias) + sum(len(album) for album in self.albums)
+
... | Add .nbmedias to get the nb of files in an album | py |
diff --git a/lib/crtomo/eitManager.py b/lib/crtomo/eitManager.py
index <HASH>..<HASH> 100644
--- a/lib/crtomo/eitManager.py
+++ b/lib/crtomo/eitManager.py
@@ -192,6 +192,9 @@ class eitMan(object):
kwargs = {}
for frequency in frequencies:
+ if frequency in self.tds:
+ # alr... | [eitMan] when initializing frequencies, do not reinitialize tomodirs already present. This is useful if multiple seitdirs are to be imported and we do not want to parse the meshes again and again. However, things could go wrong in case frequencies changes between seitdirs | py |
diff --git a/src/examples/firemdp.py b/src/examples/firemdp.py
index <HASH>..<HASH> 100644
--- a/src/examples/firemdp.py
+++ b/src/examples/firemdp.py
@@ -2,6 +2,31 @@
"""
Created on Sun Mar 9 17:20:30 2014
-@author: steve
+@author: Steven A W Cordwell
"""
+import mdptoolbox as mdp
+
+def getHabitatQuality(time... | define the function to return habitat quality based on years since last fire | py |
diff --git a/airflow/www/views.py b/airflow/www/views.py
index <HASH>..<HASH> 100644
--- a/airflow/www/views.py
+++ b/airflow/www/views.py
@@ -2863,6 +2863,7 @@ class Airflow(AirflowBaseView):
task_dict['end_date'] = task_dict['end_date'] or timezone.utcnow()
task_dict['extraLinks'] = dag.get_... | Fix task instance modal in gantt view (#<I>) | py |
diff --git a/advanced_filters/views.py b/advanced_filters/views.py
index <HASH>..<HASH> 100644
--- a/advanced_filters/views.py
+++ b/advanced_filters/views.py
@@ -55,9 +55,9 @@ class GetFieldChoices(CsrfExemptMixin, StaffuserRequiredMixin,
logger.debug('No choices calculated for field %s of type %s',
... | fix(views): avoid querying all instances for choices unless under MAX_CHOICES | py |
diff --git a/sos/plugins/lxd.py b/sos/plugins/lxd.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/lxd.py
+++ b/sos/plugins/lxd.py
@@ -16,6 +16,7 @@ class LXD(Plugin, UbuntuPlugin):
"""
plugin_name = 'lxd'
profiles = ('container',)
+ packages = ('lxd',)
def setup(self):
self.add_copy_s... | [lxd] Add check for the presence of lxd package Closes: #<I> Resolves: #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ except ImportError:
import os
here = os.path.dirname(os.path.abspath(__file__))
-f = open(os.path.join(here, 'README.md'))
+f = open(os.path.join(here, 'README.rst'))
long_description = f.read().strip()
f.... | change README.md to README.rst in setup.py | py |
diff --git a/tests/test_61_makemeta.py b/tests/test_61_makemeta.py
index <HASH>..<HASH> 100644
--- a/tests/test_61_makemeta.py
+++ b/tests/test_61_makemeta.py
@@ -4,6 +4,7 @@ from saml2 import md
from saml2 import BINDING_HTTP_POST
from saml2 import shibmd
from saml2 import mdui
+from saml2 import extension_elements... | Converting extension elemenst into elements | py |
diff --git a/pipenv/cli.py b/pipenv/cli.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -594,7 +594,8 @@ Usage Examples:
Commands:""".format(
crayons.red('pipenv --three'),
crayons.red('pipenv install --dev'),
- crayons.red('pipenv lock --dev'))
+ crayons.red('pipenv lock --de... | Auto-committing 'cli.py' | py |
diff --git a/pypdflite/pdfobjects/pdftext.py b/pypdflite/pdfobjects/pdftext.py
index <HASH>..<HASH> 100644
--- a/pypdflite/pdfobjects/pdftext.py
+++ b/pypdflite/pdfobjects/pdftext.py
@@ -1,5 +1,5 @@
from math import cos, tan, sin, pi
-
+import re
class PDFText(object):
@@ -89,10 +89,13 @@ class PDFText(obje... | Fixed write bug where too much whitespace was stripped | py |
diff --git a/entrypoints.py b/entrypoints.py
index <HASH>..<HASH> 100644
--- a/entrypoints.py
+++ b/entrypoints.py
@@ -55,7 +55,7 @@ class NoSuchEntryPoint(Exception):
return "No {!r} entry point found in group {!r}".format(self.name, self.group)
-class CaseSensitiveConfigParser(configparser.ConfigParser):... | Specify delimiters for all ConfigParsers The previous commit missed a few ConfigParser instances. | py |
diff --git a/blockstack/blockstackd.py b/blockstack/blockstackd.py
index <HASH>..<HASH> 100644
--- a/blockstack/blockstackd.py
+++ b/blockstack/blockstackd.py
@@ -187,10 +187,6 @@ def get_state_engine():
"""
Get a handle to the blockstack virtual chain state engine.
"""
- if is_indexing():
- # load ... | revert accidental change: reload DB only on re-index, but do so eagerly | py |
diff --git a/multiqc/modules/picard/HsMetrics.py b/multiqc/modules/picard/HsMetrics.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/picard/HsMetrics.py
+++ b/multiqc/modules/picard/HsMetrics.py
@@ -68,7 +68,8 @@ def parse_reports(self):
keys = None
for l in f['f']:
# New log starting... | picard <I> has renamed `CalculateHsMetrics` to `c` ... therefore in order to support both, the module needs to check for both those strings. AFAIK, the output data is the same in both `CalculateHsMetrics ` and `CalculateHsMetrics `. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -129,7 +129,14 @@ setup(
zip_safe=False,
include_package_data=True,
platforms='any',
- entry_points={},
+ entry_points={
+ 'invenio_db.models': [
+ 'invenio_pidstore = invenio_pidstore.mo... | installation: added entry_points * Added missing entry points to invenio_db and invenio_base | py |
diff --git a/cmsplugin_cascade/models_base.py b/cmsplugin_cascade/models_base.py
index <HASH>..<HASH> 100644
--- a/cmsplugin_cascade/models_base.py
+++ b/cmsplugin_cascade/models_base.py
@@ -6,6 +6,7 @@ from django.utils.encoding import python_2_unicode_compatible
from django.utils.html import mark_safe, format_html_j... | If jsonfield is serialized as str reload as json | py |
diff --git a/synapse/lib/storm.py b/synapse/lib/storm.py
index <HASH>..<HASH> 100644
--- a/synapse/lib/storm.py
+++ b/synapse/lib/storm.py
@@ -14,7 +14,7 @@ import synapse.lib.cache as s_cache
import synapse.lib.scope as s_scope
import synapse.lib.syntax as s_syntax
-from synapse.lib.config import Configable
+from ... | Use the confdef() decorator for loading configable options into storm runtime. | py |
diff --git a/src/feat/test/integration/common.py b/src/feat/test/integration/common.py
index <HASH>..<HASH> 100644
--- a/src/feat/test/integration/common.py
+++ b/src/feat/test/integration/common.py
@@ -42,7 +42,7 @@ from feat.gateway.resources import Context
from feat.web import document, http
from feat.agencies.i... | Fix validate_model_tree() to take into account models we cannot access. | py |
diff --git a/lycanthropy/lycanthropy.py b/lycanthropy/lycanthropy.py
index <HASH>..<HASH> 100644
--- a/lycanthropy/lycanthropy.py
+++ b/lycanthropy/lycanthropy.py
@@ -1,4 +1,7 @@
+from __future__ import (division, absolute_import,
+ print_function, unicode_literals)
import re
+import six
d... | Fix python 3 issues | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100644
--- a/runtests.py
+++ b/runtests.py
@@ -1,19 +1,15 @@
# -*- coding: utf-8 -*-
import unittest
+import sys
from fabric.state import env
from fabric.state import output
-def runtests():
+def prepare_test():
import logging
from frojd_fa... | Added support for specifiying unittests | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -139,7 +139,8 @@ class my_build_ext(build_ext):
def initialize_options(self, *args):
from distutils.sysconfig import get_config_vars
(opt,) = get_config_vars('OPT')
- os.environ['OPT'] = ' '.join(... | [setup] check opt is valid | py |
diff --git a/apitools/base/py/credentials_lib.py b/apitools/base/py/credentials_lib.py
index <HASH>..<HASH> 100644
--- a/apitools/base/py/credentials_lib.py
+++ b/apitools/base/py/credentials_lib.py
@@ -39,9 +39,19 @@ from apitools.base.py import util
#
# pylint: disable=wrong-import-order,ungrouped-imports
try:
- ... | Attempt to import newer versions of oauth2client libraries first. We have instances of this library being used in environments where only a portion of the oauth2client library has been updated. This change allows us to find the latest versions of these libraries, when available. | py |
diff --git a/asv/plugins/mercurial.py b/asv/plugins/mercurial.py
index <HASH>..<HASH> 100644
--- a/asv/plugins/mercurial.py
+++ b/asv/plugins/mercurial.py
@@ -104,7 +104,7 @@ class Hg(Repo):
def get_date(self, hash):
# TODO: This works on Linux, but should be extended for other platforms
rev = se... | Mercurial.get_date returns a JavaScript date ...as it does in Git | py |
diff --git a/autograd/numpy/fft.py b/autograd/numpy/fft.py
index <HASH>..<HASH> 100644
--- a/autograd/numpy/fft.py
+++ b/autograd/numpy/fft.py
@@ -46,8 +46,6 @@ def rfft_grad(get_args, irfft_fun, g, ans, vs, gvs, x, *args, **kwargs):
r = match_complex(vs, truncate_pad((irfft_fun(g, *args, **kwargs)), vs.shape))
... | Remove typo line from fft.py | py |
diff --git a/openid/server/server.py b/openid/server/server.py
index <HASH>..<HASH> 100644
--- a/openid/server/server.py
+++ b/openid/server/server.py
@@ -569,7 +569,8 @@ class OpenIDResponse(object):
@type request: L{OpenIDRequest}
@ivar fields: My parameters as a dictionary with each key mapping to
- ... | [project @ server.server: misc docstring tweaks] | py |
diff --git a/class_based_auth_views/__init__.py b/class_based_auth_views/__init__.py
index <HASH>..<HASH> 100644
--- a/class_based_auth_views/__init__.py
+++ b/class_based_auth_views/__init__.py
@@ -4,7 +4,7 @@ __version_info__ = {
'minor': 1,
'micro': 0,
'releaselevel': 'alpha',
- 'serial': 2
+ 's... | version bump to <I>a1 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,6 @@ install_requires = [
'django-polymorphic>=0.6.0',
'djangorestframework>=3.1.0,<3.2.0',
'djangosaml2==0.12.0.dev0',
- 'drf-extensions==0.2.6',
'jsonfield==1.0.0',
'python-cinderclient=... | Remove unused package from setup (nc-<I>) | py |
diff --git a/marrow/mailer/__init__.py b/marrow/mailer/__init__.py
index <HASH>..<HASH> 100644
--- a/marrow/mailer/__init__.py
+++ b/marrow/mailer/__init__.py
@@ -7,6 +7,7 @@ import logging
import warnings
import pkg_resources
+from email import charset
from functools import partial
from marrow.mailer.message i... | utf-8 QP by default. | py |
diff --git a/tests/attrel/base.py b/tests/attrel/base.py
index <HASH>..<HASH> 100644
--- a/tests/attrel/base.py
+++ b/tests/attrel/base.py
@@ -15,3 +15,5 @@ class BaseAttRelTestCase(unittest.TestCase):
max_discrep_percentage)
if errors:
raise AssertionError(st... | tests/attrel/base: base testcase's check() prints statistics to stdout | py |
diff --git a/tests/test_target_convert.py b/tests/test_target_convert.py
index <HASH>..<HASH> 100644
--- a/tests/test_target_convert.py
+++ b/tests/test_target_convert.py
@@ -20,12 +20,14 @@
"""
import unittest
+from unittest.mock import patch
from ospd.network import (
target_str_to_list,
get_hostname... | Mock socket.getfqdn to return "localhost". In case getfqdn("<I>") does not return localhost. | py |
diff --git a/pxml/test.py b/pxml/test.py
index <HASH>..<HASH> 100644
--- a/pxml/test.py
+++ b/pxml/test.py
@@ -72,7 +72,7 @@ class TestPxml(unittest.TestCase):
self.assertMultiLineEqual(out.getvalue(), chk)
#------------------------------------------------------------------------------
-class TestPxmlTestMixin(... | renamed test mixin to "XmlTestMixin" | py |
diff --git a/phoebe/frontend/io.py b/phoebe/frontend/io.py
index <HASH>..<HASH> 100644
--- a/phoebe/frontend/io.py
+++ b/phoebe/frontend/io.py
@@ -494,12 +494,12 @@ def load_legacy(filename, add_compute_legacy=True, add_compute_phoebe=True):
for k in range(len(spotpt)):
param = spotpt[:,0][k].spli... | commented out extraneous print messages in legacy importer | py |
diff --git a/abydos/distance.py b/abydos/distance.py
index <HASH>..<HASH> 100644
--- a/abydos/distance.py
+++ b/abydos/distance.py
@@ -499,15 +499,15 @@ def tanimoto(src, tar, qval=2):
def sim_cosine(src, tar, qval=2):
- """Return the cosine similarity of two strings
+ """Return the cosine similarity (Ochiai... | corrected comment formula, added Ochiai coefficient note | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,5 @@
from setuptools import setup
from distutils.extension import Extension
-from Cython.Distutils import build_ext
import elasticpy | Oops in setup.py no need for Cython | py |
diff --git a/message_sender/views.py b/message_sender/views.py
index <HASH>..<HASH> 100644
--- a/message_sender/views.py
+++ b/message_sender/views.py
@@ -115,7 +115,8 @@ class InboundViewSet(viewsets.ModelViewSet):
vumi_message_id=request.data[reply_field])
except ObjectDoesNotExist:
... | Order outbound messages by creation before using last_sent_time for decr | py |
diff --git a/spacy/util.py b/spacy/util.py
index <HASH>..<HASH> 100644
--- a/spacy/util.py
+++ b/spacy/util.py
@@ -9,6 +9,7 @@ import regex as re
from pathlib import Path
import sys
import textwrap
+import random
from .symbols import ORTH
from .compat import cupy, CudaStream, path2str, basestring_, input_, unico... | Add itershuffle utility function. Maybe belongs in thinc | py |
diff --git a/tests/unittest_modutils.py b/tests/unittest_modutils.py
index <HASH>..<HASH> 100644
--- a/tests/unittest_modutils.py
+++ b/tests/unittest_modutils.py
@@ -264,8 +264,7 @@ class StandardLibModuleTest(resources.SysPathSetup, unittest.TestCase):
self.assertFalse(modutils.is_standard_module("unknown"))... | Back to original file after debugging session | py |
diff --git a/samsungctl/remote_websocket.py b/samsungctl/remote_websocket.py
index <HASH>..<HASH> 100644
--- a/samsungctl/remote_websocket.py
+++ b/samsungctl/remote_websocket.py
@@ -56,7 +56,7 @@ class RemoteWebsocket():
self.connection.send(payload)
time.sleep(self._key_interval)
- _key_interva... | changed key_interval from 1sec to <I>sec | py |
diff --git a/pandas/tests/frame/methods/test_describe.py b/pandas/tests/frame/methods/test_describe.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/frame/methods/test_describe.py
+++ b/pandas/tests/frame/methods/test_describe.py
@@ -367,6 +367,15 @@ class TestDataFrameDescribe:
)
tm.assert_frame_equ... | TST: Add test to ensure DF describe does not throw an error (#<I>) (#<I>) | py |
diff --git a/featurex/tests/test_graph.py b/featurex/tests/test_graph.py
index <HASH>..<HASH> 100644
--- a/featurex/tests/test_graph.py
+++ b/featurex/tests/test_graph.py
@@ -72,6 +72,6 @@ def test_small_pipeline():
nodes = [(TesseractConverter(), 'tesseract',
[(LengthExtractor(), 'length')])]
... | fix MultiIndex bug in graph tests | py |
diff --git a/src/auditlog/models.py b/src/auditlog/models.py
index <HASH>..<HASH> 100644
--- a/src/auditlog/models.py
+++ b/src/auditlog/models.py
@@ -160,7 +160,7 @@ class LogEntry(models.Model):
)
content_type = models.ForeignKey('contenttypes.ContentType', on_delete=models.CASCADE, related_name='+', ... | Code nazi told me to put db_index=True at the front of the queue | py |
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -379,9 +379,11 @@ class Plugin(object):
If no default predicate is set and a `pred` value is passed
it will be returned.
"""
- ... | [Plugin] fix predicate precedence in get_predicate() The get_predicate() method is responsible for evaluating the precedence of the three types of predicate: * Explicit predicate passed as `pred` keyword argument * Implicit command default predicate if processing a command * Implicit plugin default predicate Fix ... | py |
diff --git a/aegea/ssh.py b/aegea/ssh.py
index <HASH>..<HASH> 100644
--- a/aegea/ssh.py
+++ b/aegea/ssh.py
@@ -259,7 +259,9 @@ run_parser.add_argument("instance")
run_parser.add_argument("command")
def ssh_to_ecs_container(instance_id, container_id, ssh_args, use_ssm):
- ssh_args = ssh_parser.parse_args(["-t", "... | Use bless-provided username when connecting to containers | py |
diff --git a/textplot/text.py b/textplot/text.py
index <HASH>..<HASH> 100644
--- a/textplot/text.py
+++ b/textplot/text.py
@@ -210,7 +210,7 @@ class Text(object):
"""
keys = self.redis.keys(self.slug+':*')
- self.redis.delete(keys)
+ if keys: self.redis.delete(*keys)
def insta... | Check to make sure that keys exist before trying to delete them. | py |
diff --git a/test/test_utils.py b/test/test_utils.py
index <HASH>..<HASH> 100644
--- a/test/test_utils.py
+++ b/test/test_utils.py
@@ -3,6 +3,7 @@ import numpy as np
import pandas as pd
from xray import utils
+from xray.pycompat import PY3
from . import TestCase
@@ -80,6 +81,10 @@ class TestDictionaries(TestCa... | Renamed assertion method in Py3 | py |
diff --git a/kerncraft/models/benchmark.py b/kerncraft/models/benchmark.py
index <HASH>..<HASH> 100755
--- a/kerncraft/models/benchmark.py
+++ b/kerncraft/models/benchmark.py
@@ -369,7 +369,7 @@ class Benchmark(PerformanceModel):
raw_results = [mem_results]
# Gather remaining counters
- if no... | unified core check for pheno ecm | py |
diff --git a/src/bezier/__init__.py b/src/bezier/__init__.py
index <HASH>..<HASH> 100644
--- a/src/bezier/__init__.py
+++ b/src/bezier/__init__.py
@@ -69,7 +69,7 @@ except ImportError as exc: # pragma: NO COVER
# and related. This is **entirely** to accomodate builds where
# ``bezier`` is imported from s... | Updating the hardcoded version. | py |
diff --git a/telethon/update_state.py b/telethon/update_state.py
index <HASH>..<HASH> 100644
--- a/telethon/update_state.py
+++ b/telethon/update_state.py
@@ -75,12 +75,16 @@ class UpdateState:
with self._updates_lock:
if isinstance(update, tl.updates.State):
self._state = update
... | Fix UpdateState calling handlers with updates with lower pts | py |
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
@@ -538,6 +538,7 @@ def _variant_sv(checkpoints):
[cwlout("sv_bin_rec", "record",
fields=[cwlout(["regions", "bins", "target"], ["File", "null"]),
... | CWL: support GATK4 during structural variant runs Include additional gcannotated file for correcting for GC and mapping bias. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.