diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/safe_qgis/tools/shake_grid/shake_grid.py b/safe_qgis/tools/shake_grid/shake_grid.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/tools/shake_grid/shake_grid.py
+++ b/safe_qgis/tools/shake_grid/shake_grid.py
@@ -533,6 +533,11 @@ class ShakeGrid(object):
# Now run GDAL warp scottie...
self._... | [Realtime] Use simple keywords name to pass the tests on windows. | py |
diff --git a/a10_neutron_lbaas/logging_client.py b/a10_neutron_lbaas/logging_client.py
index <HASH>..<HASH> 100644
--- a/a10_neutron_lbaas/logging_client.py
+++ b/a10_neutron_lbaas/logging_client.py
@@ -3,6 +3,8 @@ import six.moves.builtins
from oslo_log.helpers import logging as logging
+from a10_neutron_lbaas im... | Implementation of PatientProxy to deal with Invalid Admin Session errors | py |
diff --git a/web3/providers/eth_tester/middleware.py b/web3/providers/eth_tester/middleware.py
index <HASH>..<HASH> 100644
--- a/web3/providers/eth_tester/middleware.py
+++ b/web3/providers/eth_tester/middleware.py
@@ -263,7 +263,7 @@ def guess_from(web3, transaction):
def guess_gas(web3, transaction):
- return... | ugly, temporary patch until gas estimates improve | py |
diff --git a/reana_db/version.py b/reana_db/version.py
index <HASH>..<HASH> 100755
--- a/reana_db/version.py
+++ b/reana_db/version.py
@@ -14,4 +14,4 @@ and parsed by ``setup.py``.
from __future__ import absolute_import, print_function
-__version__ = "0.5.0.dev20190125"
+__version__ = "0.5.0.dev20190213" | release: <I>.de<I> | py |
diff --git a/muffin_redis.py b/muffin_redis.py
index <HASH>..<HASH> 100644
--- a/muffin_redis.py
+++ b/muffin_redis.py
@@ -340,6 +340,14 @@ try:
self._pubsubs.append(fps)
return fps
+ @asyncio.coroutine
+ def pubsub_channels(self):
+ channels = set()
+ for... | Added simulated FakeRedis.pubsub_channels | py |
diff --git a/u2flib_server/__init__.py b/u2flib_server/__init__.py
index <HASH>..<HASH> 100644
--- a/u2flib_server/__init__.py
+++ b/u2flib_server/__init__.py
@@ -25,4 +25,4 @@
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
-__version__ = "3.3.0-dev"
+__version__ = "... | Increment version to <I> | py |
diff --git a/vasppy/poscar.py b/vasppy/poscar.py
index <HASH>..<HASH> 100644
--- a/vasppy/poscar.py
+++ b/vasppy/poscar.py
@@ -20,7 +20,29 @@ class Poscar:
self.coordinate_type = 'Direct'
self.coordinates = np.array( [ [ 0.0, 0.0, 0.0 ] ] )
self.selective_dynamics = False
-
+
+ def coord... | Added methods for sorting POSCAR by atomic species | py |
diff --git a/napalm/ios/ios.py b/napalm/ios/ios.py
index <HASH>..<HASH> 100644
--- a/napalm/ios/ios.py
+++ b/napalm/ios/ios.py
@@ -540,9 +540,10 @@ class IOSDriver(NetworkDriver):
elif source_config:
kwargs = dict(ssh_conn=self.device, source_config=source_config, dest_file=dest_file,
... | throw an error if scp not configured | py |
diff --git a/prefsync.py b/prefsync.py
index <HASH>..<HASH> 100755
--- a/prefsync.py
+++ b/prefsync.py
@@ -48,6 +48,10 @@ def main():
xml = quote(os.path.abspath(os.path.expanduser(args.destination)))
throttleinterval = quote(str(args.throttle_interval))
+ # Make sure the xml file exists, since launchd w... | Make sure the xml file exists | py |
diff --git a/django_auth_adfs/rest_framework.py b/django_auth_adfs/rest_framework.py
index <HASH>..<HASH> 100644
--- a/django_auth_adfs/rest_framework.py
+++ b/django_auth_adfs/rest_framework.py
@@ -1,3 +1,5 @@
+from __future__ import absolute_import
+
import logging
from django.contrib.auth import authenticate | Make sure we don't have a import namespace clash with DRF For python <I> you need to add from __future__ import absolute_import | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -4,7 +4,7 @@ from setuptools import find_packages, setup
MIN_PY_VERSION = "3.9"
PACKAGES = find_packages(exclude=["tests", "tests.*"])
-VERSION = "103"
+VERSION = "104"
setup(
name="pydeconz", | Bump to <I> (#<I>) | py |
diff --git a/source/rafcon/gui/models/abstract_state.py b/source/rafcon/gui/models/abstract_state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/models/abstract_state.py
+++ b/source/rafcon/gui/models/abstract_state.py
@@ -213,9 +213,10 @@ class AbstractStateModel(MetaModel, Hashable):
self.input_data_... | fix(abstract_state model): fix destructor action_signal is needed by the modification history | py |
diff --git a/python_modules/dagster/dagster/core/telemetry.py b/python_modules/dagster/dagster/core/telemetry.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagster/dagster/core/telemetry.py
+++ b/python_modules/dagster/dagster/core/telemetry.py
@@ -24,6 +24,7 @@ import sys
import time
import uuid
import zlib
+... | Wrap telemetry decorator Summary: This is required for docstrings to be available on the wrapped functions. Test Plan: Unit Reviewers: catherinewu, sashank Reviewed By: sashank Differential Revision: <URL> | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -30,7 +30,6 @@ extensions = [
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
'sphinx.ext.coverage',
- 'sphinx.ext.mathjax',
'sphinx.ext.viewcode'
] | DOC: Removed mathjax from docs. Closes #<I>. | py |
diff --git a/hot_redis.py b/hot_redis.py
index <HASH>..<HASH> 100644
--- a/hot_redis.py
+++ b/hot_redis.py
@@ -110,6 +110,17 @@ class Iterable(Base):
def __iter__(self):
return iter(self.value)
+ def __lt__(self, value):
+ return self.value < self._to_value(value)
+
+ def __le__(self, value... | Iterable comparison methods and Set counterparts | py |
diff --git a/satpy/dataset/dataid.py b/satpy/dataset/dataid.py
index <HASH>..<HASH> 100644
--- a/satpy/dataset/dataid.py
+++ b/satpy/dataset/dataid.py
@@ -469,7 +469,7 @@ class DataID(dict):
popitem = _immutable
clear = _immutable
update = _immutable # type: ignore
- setdefault = _immutable
+ setd... | Ignore mypy error on stdlib overloaded method | py |
diff --git a/config/selenium_config.py b/config/selenium_config.py
index <HASH>..<HASH> 100644
--- a/config/selenium_config.py
+++ b/config/selenium_config.py
@@ -17,9 +17,25 @@ dirname = os.path.dirname(os.path.abspath(filename))
# LOGS determines whether Selenium tests will capture logs. Turning it
# on makes the t... | Added support for LOGS="force". | py |
diff --git a/moto/sqs/models.py b/moto/sqs/models.py
index <HASH>..<HASH> 100644
--- a/moto/sqs/models.py
+++ b/moto/sqs/models.py
@@ -281,7 +281,7 @@ class SQSBackend(BaseBackend):
if len(result) >= count:
break
- if time.time() > polling_end:
+ if result o... | Return messages once they are gathered If one or more messages are available, stop waiting and return them. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@ def readme():
setup(
name="quilt",
- version="2.1.0",
+ version="2.2.0",
packages=find_packages(),
description='Quilt is an open-source data frame registry',
long_description=readme(... | Update version (#<I>) * Update version * Update release tag | py |
diff --git a/src/automate/statusobject.py b/src/automate/statusobject.py
index <HASH>..<HASH> 100644
--- a/src/automate/statusobject.py
+++ b/src/automate/statusobject.py
@@ -86,7 +86,7 @@ class StatusObject(AbstractStatusObject, ProgrammableSystemObject, CompareMixin)
history_transpose = Property(transient=True, ... | Change default history length from <I> to <I> | py |
diff --git a/tests_python/test_convert_utilities.py b/tests_python/test_convert_utilities.py
index <HASH>..<HASH> 100644
--- a/tests_python/test_convert_utilities.py
+++ b/tests_python/test_convert_utilities.py
@@ -143,10 +143,10 @@ def test_zip_paths(tmpdir):
for i, zip_basename in enumerate(('MY1.zip', 'my2.eg... | Fix for tests in python <I>. | py |
diff --git a/disqus/templatetags/disqus_tags.py b/disqus/templatetags/disqus_tags.py
index <HASH>..<HASH> 100644
--- a/disqus/templatetags/disqus_tags.py
+++ b/disqus/templatetags/disqus_tags.py
@@ -49,7 +49,7 @@ def disqus_show_comments(shortname=''):
shortname = getattr(settings, 'DISQUS_WEBSITE_SHORTNAME', shor... | asynchronous javascript added for faster loading. Thanks egonSchiele | py |
diff --git a/psamm/commands/fluxcheck.py b/psamm/commands/fluxcheck.py
index <HASH>..<HASH> 100644
--- a/psamm/commands/fluxcheck.py
+++ b/psamm/commands/fluxcheck.py
@@ -102,8 +102,6 @@ class FluxConsistencyCommand(SolverCommandMixin, Command):
for reaction_id, (lo, hi) in fluxanalysis.flux_variabilit... | fluxcheck: Remove excessive output when using FVA method. | py |
diff --git a/h2o-py/tests/testdir_tree/pyunit_xgboost_tree.py b/h2o-py/tests/testdir_tree/pyunit_xgboost_tree.py
index <HASH>..<HASH> 100644
--- a/h2o-py/tests/testdir_tree/pyunit_xgboost_tree.py
+++ b/h2o-py/tests/testdir_tree/pyunit_xgboost_tree.py
@@ -62,7 +62,7 @@ def xgboost_tree_test():
H2OTree(xgbModel,... | Fixed assertion in XGBoost tree fetching test | py |
diff --git a/spyder_kernels/utils/nsview.py b/spyder_kernels/utils/nsview.py
index <HASH>..<HASH> 100644
--- a/spyder_kernels/utils/nsview.py
+++ b/spyder_kernels/utils/nsview.py
@@ -533,13 +533,13 @@ def is_known_type(item):
def get_human_readable_type(item):
"""Return human-readable type string of an item"""
... | Improve type of Numpy arrays | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,8 +48,12 @@ setup(
license="BSDv3",
url="https://github.com/hyperspy/start_jupyter_cm",
classifiers=[
- "Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
+ ... | Update python minimum requirement to <I> since we use shutil.which. | py |
diff --git a/test/unit/Geometry/SGL10Test.py b/test/unit/Geometry/SGL10Test.py
index <HASH>..<HASH> 100644
--- a/test/unit/Geometry/SGL10Test.py
+++ b/test/unit/Geometry/SGL10Test.py
@@ -1,3 +1,9 @@
+import OpenPNM
+
+
class SGL10Test:
- def test_generate(self):
- pass
+ def setup_class(self):
+ se... | Testing SGL<I>, just basically running the code. | py |
diff --git a/python/segyio/line.py b/python/segyio/line.py
index <HASH>..<HASH> 100644
--- a/python/segyio/line.py
+++ b/python/segyio/line.py
@@ -14,10 +14,10 @@ def sanitize_slice(s, source):
increasing = step is None or step > 0
if start is None:
- start = source[0] if increasing else source[-1]
+... | Use min/max over getitem when sanitising slices By using min/max over source[0]/source[-1], sanitize_slice handles all iterables, and not just lists. | py |
diff --git a/python/gumbo/html5lib_adapter_test.py b/python/gumbo/html5lib_adapter_test.py
index <HASH>..<HASH> 100644
--- a/python/gumbo/html5lib_adapter_test.py
+++ b/python/gumbo/html5lib_adapter_test.py
@@ -135,6 +135,10 @@ class Html5libAdapterTest(unittest.TestCase):
expected = re.compile(r'^(\s*)<(\S+)>',... | Handle template contents in html5lib_adapter_tests. | py |
diff --git a/salt/runners/manage.py b/salt/runners/manage.py
index <HASH>..<HASH> 100644
--- a/salt/runners/manage.py
+++ b/salt/runners/manage.py
@@ -261,7 +261,6 @@ def versions():
for minion in sorted(version_status[key]):
ret.setdefault(labels[key], {})[minion] = version_status[key][mi... | Remove extra line to fix manage.py pylint error | py |
diff --git a/bika/lims/browser/dashboard/dashboard.py b/bika/lims/browser/dashboard/dashboard.py
index <HASH>..<HASH> 100644
--- a/bika/lims/browser/dashboard/dashboard.py
+++ b/bika/lims/browser/dashboard/dashboard.py
@@ -8,6 +8,7 @@ from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from bika.li... | Changed to the new Worksheet Listing Catalog. | py |
diff --git a/semver.py b/semver.py
index <HASH>..<HASH> 100644
--- a/semver.py
+++ b/semver.py
@@ -26,9 +26,15 @@ def parse(version):
def compare(ver1, ver2):
+ def nat_cmp(a, b):
+ a, b = a and str(a) or '', b and str(b) or ''
+ convert = lambda text: int(text) if text.isdigit() else text.lower()... | Fix rc build comparison via natural cmp helper. | py |
diff --git a/post_office/tests/backends.py b/post_office/tests/backends.py
index <HASH>..<HASH> 100644
--- a/post_office/tests/backends.py
+++ b/post_office/tests/backends.py
@@ -4,7 +4,7 @@ from django.test import TestCase
from django.test.utils import override_settings
from ..models import Email, STATUS, PRIORITY... | Changed the import path of one of the test, to explicitly require settings file | py |
diff --git a/tests/test_graphics.py b/tests/test_graphics.py
index <HASH>..<HASH> 100644
--- a/tests/test_graphics.py
+++ b/tests/test_graphics.py
@@ -16,7 +16,7 @@ import shutil
from nose.tools import assert_equal, assert_less, nottest
from pyani import pyani_graphics, pyani_config
-from average_nucleotide_identit... | fix import from command-line script in tests | py |
diff --git a/sdk/schemaregistry/azure-schemaregistry-avroencoder/samples/async_samples/encode_and_decode_with_message_content_async.py b/sdk/schemaregistry/azure-schemaregistry-avroencoder/samples/async_samples/encode_and_decode_with_message_content_async.py
index <HASH>..<HASH> 100644
--- a/sdk/schemaregistry/azure-sc... | [SchemaRegistry] avro fix sample (#<I>) | py |
diff --git a/pyads/symbol.py b/pyads/symbol.py
index <HASH>..<HASH> 100644
--- a/pyads/symbol.py
+++ b/pyads/symbol.py
@@ -141,7 +141,7 @@ class AdsSymbol:
# type
self.symbol_type = info.symbol_type # Save the type as string
- def _read_write_check(self) -> None:
+ def _check_for_open_connect... | Rename _read_write_check to _check_for_open_connection Just to make the function more descriptive | py |
diff --git a/iyzipay/__init__.py b/iyzipay/__init__.py
index <HASH>..<HASH> 100644
--- a/iyzipay/__init__.py
+++ b/iyzipay/__init__.py
@@ -5,9 +5,9 @@
# Nurettin Bakkal <nurettin.bakkal@iyzico.com>
# Configuration variables
-api_key = 'mrI3mIMuNwGiIxanQslyJBRYa8nYrCU5'
-secret_key = '9lkVluNHBABPw0LIvyn50oYZcrSJ8oN... | ide file added to gitignore | py |
diff --git a/discord/gateway.py b/discord/gateway.py
index <HASH>..<HASH> 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -241,7 +241,7 @@ DWS = TypeVar('DWS', bound='DiscordWebSocket')
class DiscordWebSocket:
- """Implements a WebSocket for Discord's gateway v6.
+ """Implements a WebSocket for D... | Update gateway version docstring in DiscordWebSocket | py |
diff --git a/tests/integration/modules/test_pkg.py b/tests/integration/modules/test_pkg.py
index <HASH>..<HASH> 100644
--- a/tests/integration/modules/test_pkg.py
+++ b/tests/integration/modules/test_pkg.py
@@ -14,6 +14,7 @@ from tests.support.helpers import (
requires_network,
requires_salt_modules,
req... | skip pkg test on mac that can't run as root | py |
diff --git a/gwpy/table/gravityspy.py b/gwpy/table/gravityspy.py
index <HASH>..<HASH> 100644
--- a/gwpy/table/gravityspy.py
+++ b/gwpy/table/gravityspy.py
@@ -192,7 +192,8 @@ class GravitySpyTable(EventTable):
@classmethod
def search(cls, uniqueID, howmany=10):
- """If table contains Gravity Spy trig... | Removing some non sensical doc strings that where inherited from a copy and paste. Adding in some useful docstrings | py |
diff --git a/tornado/websocket.py b/tornado/websocket.py
index <HASH>..<HASH> 100644
--- a/tornado/websocket.py
+++ b/tornado/websocket.py
@@ -210,6 +210,7 @@ class WebSocketHandler(tornado.web.RequestHandler):
Once the close handshake is successful the socket will be closed.
"""
self.ws_conn... | Break reference cycle between WebSocketHandler and WebSocketProtocol on close. This isn't strictly necessary, but it allows the refcounting CPython GC to clean things up without waiting for a full GC. Closes #<I>. | py |
diff --git a/i3situation/plugins/_plugin.py b/i3situation/plugins/_plugin.py
index <HASH>..<HASH> 100644
--- a/i3situation/plugins/_plugin.py
+++ b/i3situation/plugins/_plugin.py
@@ -52,8 +52,8 @@ class Plugin():
doesn't set it.
"""
if event['button'] == 1 and 'button1' in self.options:
- ... | Fixed a bug that meant multi word commands caused exceptions. | py |
diff --git a/gsh/buffered_dispatcher.py b/gsh/buffered_dispatcher.py
index <HASH>..<HASH> 100644
--- a/gsh/buffered_dispatcher.py
+++ b/gsh/buffered_dispatcher.py
@@ -91,3 +91,4 @@ class buffered_dispatcher(asyncore.file_dispatcher):
(len(self.write_buffer), str(self)),
... | Try to write the data just dispatched. This fix the 'add' command in the ctrl shell when using Zsh. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,7 +42,7 @@ setup(name='blimpy',
description='Python utilities for Breakthrough Listen SETI observations',
long_description="Python utilities for Breakthrough Listen SETI observations. It includes data handlin... | Update license in setup.py to BSD | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,6 @@ tests_require = [
'invenio-records>=1.0.0b4',
'mock>=1.3.0',
'pydocstyle>=1.0.0',
- 'pytest-cache>=1.0',
'pytest-cov>=1.8.0',
'pytest-pep8>=1.0.6',
'pytest>=2.8.0,!=3.3.0', | installation: removed pytest-cache dependency | py |
diff --git a/rtv/submission_page.py b/rtv/submission_page.py
index <HASH>..<HASH> 100644
--- a/rtv/submission_page.py
+++ b/rtv/submission_page.py
@@ -412,7 +412,7 @@ class SubmissionPage(Page):
attr = self.term.attr('Created')
self.term.add_space(win)
- self.term.add_line(win, '{created_long... | Verbose time stamp on submission page. | py |
diff --git a/pydle/features/rfc1459/client.py b/pydle/features/rfc1459/client.py
index <HASH>..<HASH> 100644
--- a/pydle/features/rfc1459/client.py
+++ b/pydle/features/rfc1459/client.py
@@ -283,6 +283,12 @@ class RFC1459Support(BasicClient):
and yield from this function as follows:
info = yield sel... | If a nickname contains a space, then the WHOIS result should just be None. Of course, this won't work great on Rizon where the stupi^Wbrilliant network administrators put spaces in their nicknames... | py |
diff --git a/pyxmpp/streamtls.py b/pyxmpp/streamtls.py
index <HASH>..<HASH> 100644
--- a/pyxmpp/streamtls.py
+++ b/pyxmpp/streamtls.py
@@ -149,19 +149,20 @@ class StreamTLSMixIn:
"""Read data pending on the stream socket and pass it to the parser."""
if self.eof:
return
- try:
+ ... | - fixed delay on encrypted stream input: now all data is processed when received | py |
diff --git a/tests/test.py b/tests/test.py
index <HASH>..<HASH> 100644
--- a/tests/test.py
+++ b/tests/test.py
@@ -524,7 +524,6 @@ class TestComponentGetterAPI(HedgehogAPITestCase):
)
-@unittest.skip
class TestComponentGetterProcessAPI(HedgehogAPITestCase):
class HedgehogComponentGetterClient(Hedgeho... | activate TestComponentGetterProcessAPI tests, as they do work | py |
diff --git a/code/macroeco/form_func.py b/code/macroeco/form_func.py
index <HASH>..<HASH> 100644
--- a/code/macroeco/form_func.py
+++ b/code/macroeco/form_func.py
@@ -46,17 +46,15 @@ def get_metadata(asklist, folder_name, dataname):
def get_files(filetype, num, direct):
- '''This functoin gets the .txt files fr... | Checked in KRIL and RMJB datasets Had to make alot of assumptions about the KRIL dataset that need to be validated. | py |
diff --git a/pipenv/cli/command.py b/pipenv/cli/command.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli/command.py
+++ b/pipenv/cli/command.py
@@ -734,7 +734,7 @@ def scripts(state, args):
for k, v in scripts.items():
rpt += u"{0}\t{1}".format(k, v)
echo(rpt)
- return
+ return 0
if __name_... | Provide a success return value to the `scripts` command. | py |
diff --git a/examples/charts/file/lines.py b/examples/charts/file/lines.py
index <HASH>..<HASH> 100644
--- a/examples/charts/file/lines.py
+++ b/examples/charts/file/lines.py
@@ -18,7 +18,6 @@ df['date'] = pd.date_range('1/1/2015', periods=len(df.index), freq='D')
# default behavior for dataframe input is to plot ea... | Only show all line charts at once in example file. | py |
diff --git a/telethon/client/dialogs.py b/telethon/client/dialogs.py
index <HASH>..<HASH> 100644
--- a/telethon/client/dialogs.py
+++ b/telethon/client/dialogs.py
@@ -41,7 +41,7 @@ class _DialogsIter(RequestIter):
messages = {}
for m in r.messages:
- m._finish_init(self, entities, None)
+... | Fix DialogsIter not passing the client to the built objects | py |
diff --git a/amo2kinto/synchronize.py b/amo2kinto/synchronize.py
index <HASH>..<HASH> 100644
--- a/amo2kinto/synchronize.py
+++ b/amo2kinto/synchronize.py
@@ -33,6 +33,10 @@ def get_diff(source, dest):
to_check = source_keys - to_create - to_delete
for record_id in to_check:
+ # Make sure to remove p... | Add comments. @leplatrem review. | py |
diff --git a/imhotep/main.py b/imhotep/main.py
index <HASH>..<HASH> 100644
--- a/imhotep/main.py
+++ b/imhotep/main.py
@@ -74,6 +74,7 @@ class RepoManager(object):
log.debug("Cleaning up %s", repo_dir)
run('rm -rf %s' % repo_dir)
+
def run_analysis(repo, filenames=set()):
resul... | defaults for config file location, since it not existing is idempotent. | py |
diff --git a/torchvision/datasets/folder.py b/torchvision/datasets/folder.py
index <HASH>..<HASH> 100644
--- a/torchvision/datasets/folder.py
+++ b/torchvision/datasets/folder.py
@@ -86,8 +86,8 @@ def make_dataset(
continue
for root, _, fnames in sorted(os.walk(target_dir, followlinks=True)):
... | Faster dataset indexing (#<I>) | py |
diff --git a/tests/test_suite.py b/tests/test_suite.py
index <HASH>..<HASH> 100755
--- a/tests/test_suite.py
+++ b/tests/test_suite.py
@@ -87,3 +87,13 @@ class AdminHoneypotTest(TestCase):
response = self.client.get(url.rstrip('/'), follow=True)
self.assertRedirects(response, redirect_url, status_co... | Add a test to check that the real admin url isn't leaked in the honeypot page. | py |
diff --git a/cobe/brain.py b/cobe/brain.py
index <HASH>..<HASH> 100644
--- a/cobe/brain.py
+++ b/cobe/brain.py
@@ -297,7 +297,7 @@ with its two nodes"""
pass
def _get_reply_key(self, reply):
- return tuple([(edge.prev, edge.next) for edge in reply.edges])
+ return tuple([edge.e... | Use edge_id in _get_reply_key rather than prev/next ids This is a mild memory improvement. | py |
diff --git a/Geometry/constants.py b/Geometry/constants.py
index <HASH>..<HASH> 100644
--- a/Geometry/constants.py
+++ b/Geometry/constants.py
@@ -4,6 +4,8 @@
from sys import float_info
epsilon = float_info.epsilon
+pi_half = 1.5707963267948966
+two_pi = 6.283185307179586
del(float_info) | two_pi and pi_half seemed useful | py |
diff --git a/helpers/postgresql.py b/helpers/postgresql.py
index <HASH>..<HASH> 100644
--- a/helpers/postgresql.py
+++ b/helpers/postgresql.py
@@ -85,8 +85,12 @@ class Postgresql:
os.fchmod(f.fileno(), 0600)
f.write('{hostname}:{port}:*:{username}:{password}\n'.format(**r))
- return o... | Set environment variable PGPASSFILE via os.environ before running pg_basebackup and unset it afterwards | py |
diff --git a/mesh_tensorflow/ops.py b/mesh_tensorflow/ops.py
index <HASH>..<HASH> 100644
--- a/mesh_tensorflow/ops.py
+++ b/mesh_tensorflow/ops.py
@@ -1201,7 +1201,9 @@ class MeshImpl(object):
divisor = list_product(self.shape.to_integer_list[mesh_axis + 1:])
modulus = self.shape[mesh_axis].size
def my_f... | Mask a bug in TPU execution. PiperOrigin-RevId: <I> | py |
diff --git a/scour/scour.py b/scour/scour.py
index <HASH>..<HASH> 100644
--- a/scour/scour.py
+++ b/scour/scour.py
@@ -2913,8 +2913,8 @@ def scourString(in_string, options=None):
return False
else:
for element in doc.getElementsByTagName("*"):
- for attrName in six.iterkeys(element... | Compatibility fix for Python <I> (NamedNodeList seems not to have had the iterkeys method back then) | py |
diff --git a/grammpy/IsMethodsRuleExtension.py b/grammpy/IsMethodsRuleExtension.py
index <HASH>..<HASH> 100644
--- a/grammpy/IsMethodsRuleExtension.py
+++ b/grammpy/IsMethodsRuleExtension.py
@@ -13,12 +13,11 @@ from .exceptions import RuleException, UselessEpsilonException, RuleSyntaxExcept
NonterminalDoesNotExist... | Remove recursive requires betwen grammar and rule | py |
diff --git a/instalooter/pages.py b/instalooter/pages.py
index <HASH>..<HASH> 100644
--- a/instalooter/pages.py
+++ b/instalooter/pages.py
@@ -139,6 +139,15 @@ class HashtagIterator(PageIterator):
"after": cursor
}
+ def __next__(self):
+ item = super(HashtagIterator, self).__next__()
... | Fix missing `__typename` from hashtag medias | py |
diff --git a/looper/looper.py b/looper/looper.py
index <HASH>..<HASH> 100755
--- a/looper/looper.py
+++ b/looper/looper.py
@@ -440,7 +440,8 @@ class Runner(Executor):
except AttributeError:
skip_reasons.append("Sample has no protocol")
else:
- if protocol not in... | allow samples through if specific protocol isn't mapped but the generic one is | py |
diff --git a/asn1crypto/core.py b/asn1crypto/core.py
index <HASH>..<HASH> 100644
--- a/asn1crypto/core.py
+++ b/asn1crypto/core.py
@@ -15,7 +15,7 @@ from ._int_conversion import int_to_bytes, int_from_bytes
if sys.version_info <= (3,):
str_cls = unicode #pylint: disable=E0602
byte_cls = str
- int_types =... | Fixed a linting error in core | py |
diff --git a/tests/test_pgextras.py b/tests/test_pgextras.py
index <HASH>..<HASH> 100755
--- a/tests/test_pgextras.py
+++ b/tests/test_pgextras.py
@@ -97,13 +97,10 @@ class TestPgextras(unittest.TestCase):
with PgExtras(dsn=self.dsn) as pg:
if pg.is_pg_at_least_nine_two():
self.cr... | Bug fix for unit test when running against postgres version less than <I> | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -88,7 +88,7 @@ class WooCommerceTestCase(unittest.TestCase):
with HTTMock(woo_test_mock):
# call requests
- status = self.api.get("products", params={'sku': 10001}).status_code
+ s... | better example of using params for real-world usage | py |
diff --git a/vaex/file/other.py b/vaex/file/other.py
index <HASH>..<HASH> 100644
--- a/vaex/file/other.py
+++ b/vaex/file/other.py
@@ -992,7 +992,9 @@ class DatasetAstropyTable(DatasetArrays):
if "ucd" in column._meta:
self.ucds[clean_name] = column._meta["ucd"]
if column.unit:
- self.units[clean_na... | fix: converting unit string to units for astropy tables | py |
diff --git a/ropetest/refactor/extracttest.py b/ropetest/refactor/extracttest.py
index <HASH>..<HASH> 100644
--- a/ropetest/refactor/extracttest.py
+++ b/ropetest/refactor/extracttest.py
@@ -1208,6 +1208,7 @@ class ExtractMethodTest(unittest.TestCase):
''')
self.assertEqual(expected, refactored)
+ ... | fixed version restriction in tests for NamedExpr | py |
diff --git a/draw_test.py b/draw_test.py
index <HASH>..<HASH> 100644
--- a/draw_test.py
+++ b/draw_test.py
@@ -18,12 +18,28 @@ class App(pyxel.App):
self.image.set(0, 0, 16, 16, image_data)
self.bank(0, self.image)
+ self.space = False
+
def update(self):
+ self.space = self.btn(p... | Added the clip and pal command tests | py |
diff --git a/tests/test_repr.py b/tests/test_repr.py
index <HASH>..<HASH> 100644
--- a/tests/test_repr.py
+++ b/tests/test_repr.py
@@ -4,18 +4,21 @@ import six
class ReprTest(unittest.TestCase):
+ """Checks that the string representations of charts and entries are correct.
+ """
+
+ @classmethod
+ def ... | Merge tests to reduce number of HTTP requests | py |
diff --git a/gns3server/version.py b/gns3server/version.py
index <HASH>..<HASH> 100644
--- a/gns3server/version.py
+++ b/gns3server/version.py
@@ -23,8 +23,8 @@
# or negative for a release candidate or beta (after the base version
# number has been incremented)
-__version__ = "2.2.3"
-__version_info__ = (2, 2, 3, 0... | Development on <I>dev1 | py |
diff --git a/cirq-google/cirq_google/engine/engine_client.py b/cirq-google/cirq_google/engine/engine_client.py
index <HASH>..<HASH> 100644
--- a/cirq-google/cirq_google/engine/engine_client.py
+++ b/cirq-google/cirq_google/engine/engine_client.py
@@ -922,19 +922,13 @@ def _processor_name_from_ids(project_id: str, proce... | Use f-strings consistently in engine_client.py helpers (#<I>) Review: @wcourtney | py |
diff --git a/webvtt/parsers.py b/webvtt/parsers.py
index <HASH>..<HASH> 100644
--- a/webvtt/parsers.py
+++ b/webvtt/parsers.py
@@ -27,7 +27,7 @@ class TextBasedParser(GenericParser):
encoding = 'utf-8'
with open(file, encoding=encoding) as f:
- lines = [line.rstrip() for line in f.rea... | Only strip return when parsing the lines from the captions file | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -17,9 +17,9 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
-# import os
-# import sys
-# sy... | will this fix readthedocs? | py |
diff --git a/mhctools/mhcflurry.py b/mhctools/mhcflurry.py
index <HASH>..<HASH> 100644
--- a/mhctools/mhcflurry.py
+++ b/mhctools/mhcflurry.py
@@ -37,20 +37,21 @@ class MHCflurry(BasePredictor):
self,
alleles,
default_peptide_lengths=[9],
- models_dir=None):
+ ... | update MHCflurry to take predictor instead of models_dir Enables user to reuse one MHCflurry predictor for queries across different alleles, an important speed optimization | py |
diff --git a/parsl/providers/slurm/slurm.py b/parsl/providers/slurm/slurm.py
index <HASH>..<HASH> 100644
--- a/parsl/providers/slurm/slurm.py
+++ b/parsl/providers/slurm/slurm.py
@@ -255,15 +255,6 @@ class SlurmProvider(ClusterProvider, RepresentationMixin):
return rets
- def _test_add_resource(self, jo... | Remove unused test code from slurm provider (#<I>) | py |
diff --git a/rootpy/plotting/hist.py b/rootpy/plotting/hist.py
index <HASH>..<HASH> 100644
--- a/rootpy/plotting/hist.py
+++ b/rootpy/plotting/hist.py
@@ -1319,7 +1319,7 @@ class _HistBase(Plottable, NamedObject):
# skip this axis
continue
elif binning is not N... | hist: better binning duck typing with __iter__ | py |
diff --git a/curtsies/curtsieskeys.py b/curtsies/curtsieskeys.py
index <HASH>..<HASH> 100644
--- a/curtsies/curtsieskeys.py
+++ b/curtsies/curtsieskeys.py
@@ -104,4 +104,6 @@ CURTSIES_NAMES = dict([
(b"\x1b[OF", u'<END>'), # end (1)
(b"\x1b[OH", u'<HOME>'), # home (7)
+ # reported by cool... | F3 as submitted by cool-RR | py |
diff --git a/dvc/version.py b/dvc/version.py
index <HASH>..<HASH> 100644
--- a/dvc/version.py
+++ b/dvc/version.py
@@ -7,7 +7,7 @@ import os
import subprocess
-_BASE_VERSION = "0.77.3"
+_BASE_VERSION = "0.78.0"
def _generate_version(base_version): | dvc: bump to <I> | py |
diff --git a/src/future/builtins/newround.py b/src/future/builtins/newround.py
index <HASH>..<HASH> 100644
--- a/src/future/builtins/newround.py
+++ b/src/future/builtins/newround.py
@@ -32,10 +32,10 @@ def newround(number, ndigits=None):
exponent = Decimal('10') ** (-ndigits)
- if PYPY:
- # Work aro... | Support NumPy's specialized int types in builtins.round | py |
diff --git a/chardet/charsetprober.py b/chardet/charsetprober.py
index <HASH>..<HASH> 100644
--- a/chardet/charsetprober.py
+++ b/chardet/charsetprober.py
@@ -118,6 +118,7 @@ class CharSetProber(object):
prev = 0
for curr in range(len(buf)):
+ # Slice here to get bytes instead of an int w... | Add comment about why we're slicing in filter_with_english_letters | py |
diff --git a/py3status/module.py b/py3status/module.py
index <HASH>..<HASH> 100644
--- a/py3status/module.py
+++ b/py3status/module.py
@@ -458,6 +458,12 @@ class Module(Thread):
del mod_config[param]
deprecation_log(item)
+ # apply module configurat... | fix bug for update_placeholder_format | py |
diff --git a/devassistant/utils.py b/devassistant/utils.py
index <HASH>..<HASH> 100644
--- a/devassistant/utils.py
+++ b/devassistant/utils.py
@@ -3,7 +3,7 @@ try: # ugly hack for using imp instead of importlib on Python <= 2.6
except ImportError:
import imp as importlib
def import_module(name):
- fp,... | Argh... now fix it without a typo | 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
@@ -1084,7 +1084,10 @@ class Superset(BaseSupersetView):
return json_error_response(utils.error_msg_from_exception(e))
status = 200
- if paylo... | [payload] Set status code on error rather than query status | py |
diff --git a/src/feat/database/query.py b/src/feat/database/query.py
index <HASH>..<HASH> 100644
--- a/src/feat/database/query.py
+++ b/src/feat/database/query.py
@@ -39,8 +39,10 @@ class Field(object):
keeps_value = False
- def __init__(self, field, view, id_key='_id', **kwargs):
+ def __init__(self, fi... | Support customizing index name used by the query.Field(). | py |
diff --git a/tests/bagatom/test_getters.py b/tests/bagatom/test_getters.py
index <HASH>..<HASH> 100644
--- a/tests/bagatom/test_getters.py
+++ b/tests/bagatom/test_getters.py
@@ -46,7 +46,7 @@ def people_xml():
"""
-def test_getBagTags_returns_dict(monkeypatch):
+def test_getBagTags_returns_dict():
"""
... | Remove monkeypatch where it is no more used | py |
diff --git a/tests/test_main.py b/tests/test_main.py
index <HASH>..<HASH> 100755
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -2743,6 +2743,32 @@ def test_illidan():
assert illidan.dead
+def test_illidan_knife_juggler():
+ game = prepare_game()
+ illidan = game.player1.give("EX1_614")
+ illidan.play()
+ j... | Add more Illidan/Knife Juggler tests | py |
diff --git a/pyxel/__init__.py b/pyxel/__init__.py
index <HASH>..<HASH> 100644
--- a/pyxel/__init__.py
+++ b/pyxel/__init__.py
@@ -189,6 +189,31 @@ GAMEPAD_2_LEFT: int = _get_constant_number("GAMEPAD_2_LEFT")
#
+# Color class
+#
+class Color:
+ BLACK = 0
+ NAVY = 1
+ PERPLE = 2
+ GREEN = 3
+ BROWN =... | Add Color class (#<I>) To set colors with words | py |
diff --git a/moto/sqs/models.py b/moto/sqs/models.py
index <HASH>..<HASH> 100644
--- a/moto/sqs/models.py
+++ b/moto/sqs/models.py
@@ -8,7 +8,7 @@ from xml.sax.saxutils import escape
import boto.sqs
from moto.core import BaseBackend
-from moto.core.utils import camelcase_to_underscores, get_random_message_id, unix_... | sqs: Use unix_time in place of time.time() (#<I>) unix_time() from moto.core.utils is used as the time source through moto, and it is identical to time.time() in output. Hence, using unix_time() since it makes mocking easier during testing (when time is mocked out). | py |
diff --git a/src/vistir/misc.py b/src/vistir/misc.py
index <HASH>..<HASH> 100644
--- a/src/vistir/misc.py
+++ b/src/vistir/misc.py
@@ -383,7 +383,7 @@ def run(
spinner=sp,
combine_stderr=combine_stderr,
start_text=start_text,
- write_to_stdout=True,
+ write_t... | Fix write_to_stdout=True | py |
diff --git a/arcrest/admin/cmdline.py b/arcrest/admin/cmdline.py
index <HASH>..<HASH> 100644
--- a/arcrest/admin/cmdline.py
+++ b/arcrest/admin/cmdline.py
@@ -421,7 +421,8 @@ createcacheschemaargs.add_argument('-TO', '--tile-origin',
'Ex: "-20037508.342787 20037508.342787"')
creat... | Tweaks to format list in cache | py |
diff --git a/tests/test_blob.py b/tests/test_blob.py
index <HASH>..<HASH> 100644
--- a/tests/test_blob.py
+++ b/tests/test_blob.py
@@ -23,8 +23,8 @@ def test_pack():
x = [1, 2, 3, 4]
assert_array_equal(x, unpack(pack(x)), "List did not pack/unpack correctly")
- x = [1, 2, 3, 4].__iter__()
- assert_arr... | Change testing of iterator serialization to BLOB | py |
diff --git a/eventsourcing/__init__.py b/eventsourcing/__init__.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/__init__.py
+++ b/eventsourcing/__init__.py
@@ -238,4 +238,4 @@ Example application
"""
-__version__ = '3.0.0dev'
+__version__ = '3.0.0.dev0' | Changed version number, to be a proper version number. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ if __name__ == '__main__':
zip_safe=False,
extras_require={
'docs': [
- 'sphinx<1.7.0',
+ 'sphinx>=1.7.4',
],
'tests': [
... | attempting to fix readthedocs | py |
diff --git a/napalm_logs/server.py b/napalm_logs/server.py
index <HASH>..<HASH> 100644
--- a/napalm_logs/server.py
+++ b/napalm_logs/server.py
@@ -304,6 +304,8 @@ class NapalmLogsServerProc(NapalmLogsProc):
message_key = base64.b64encode(message)
if six.PY3:
... | Including an else statment for the default message_key | py |
diff --git a/script/lib/git.py b/script/lib/git.py
index <HASH>..<HASH> 100644
--- a/script/lib/git.py
+++ b/script/lib/git.py
@@ -40,13 +40,17 @@ def get_repo_root(path):
return get_repo_root(parent_path)
-def am(repo, patch_data, threeway=False, directory=None,
+def am(repo, patch_data, threeway=False, directo... | build: optionally exclude some parts of patches from being applied (#<I>) | py |
diff --git a/Lib/fontmake/font_project.py b/Lib/fontmake/font_project.py
index <HASH>..<HASH> 100644
--- a/Lib/fontmake/font_project.py
+++ b/Lib/fontmake/font_project.py
@@ -22,7 +22,6 @@ import plistlib
import re
import tempfile
-from booleanOperations import BooleanOperationManager
from cu2qu.pens import Revers... | font_project: move booleanOperations import inside 'remove_overalap' method If one passes --keep-overalap option, then booleanOperations should not be required by fontmake. | py |
diff --git a/src/cryptojwt/jws.py b/src/cryptojwt/jws.py
index <HASH>..<HASH> 100644
--- a/src/cryptojwt/jws.py
+++ b/src/cryptojwt/jws.py
@@ -540,8 +540,7 @@ class JWS(JWx):
raise UnknownAlgorithm(_alg)
_input = jwt.pack(parts=[self.msg])
- sig = _signer.sign(_input.encode("utf-8"),
- ... | Removed alg as parameter from get_key method call. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.