diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/grace/management.py b/grace/management.py
index <HASH>..<HASH> 100644
--- a/grace/management.py
+++ b/grace/management.py
@@ -13,7 +13,6 @@ import requests
logging.basicConfig(level=0)
logging.getLogger('requests').setLevel(logging.WARNING)
logging.getLogger('urllib3').setLevel(logging.WARNING)
-request... | Bugfix * grace should work again properly | py |
diff --git a/angr/vfg.py b/angr/vfg.py
index <HASH>..<HASH> 100644
--- a/angr/vfg.py
+++ b/angr/vfg.py
@@ -342,7 +342,11 @@ class VFG(CFGBase):
# For debugging purpose!
_dbg_exit_status = {}
- for ex in tmp_exits:
+ i = 0
+ while i < len(tmp_exits):
+ ex = tmp_exits[i... | Fixes #<I>. Take care of non-returning functions with the help of CFG. | py |
diff --git a/tango/server.py b/tango/server.py
index <HASH>..<HASH> 100644
--- a/tango/server.py
+++ b/tango/server.py
@@ -16,7 +16,6 @@ from __future__ import print_function
from __future__ import absolute_import
import sys
-import six
import copy
import inspect
import logging
@@ -1493,14 +1492,11 @@ def server... | Instanciate DeviceMeta explicitely | py |
diff --git a/python-package/lightgbm/basic.py b/python-package/lightgbm/basic.py
index <HASH>..<HASH> 100644
--- a/python-package/lightgbm/basic.py
+++ b/python-package/lightgbm/basic.py
@@ -626,6 +626,8 @@ class Sequence(abc.ABC):
- With random access, **data sampling does not need to go through all data**.
... | [docs][python] add versionadded to Sequence class in Python wrapper (#<I>) | py |
diff --git a/bids/layout/layout.py b/bids/layout/layout.py
index <HASH>..<HASH> 100644
--- a/bids/layout/layout.py
+++ b/bids/layout/layout.py
@@ -148,6 +148,16 @@ class BIDSLayout(Layout):
config=None, sources=None, **kwargs)
def add_derivatives(self, path, **kwargs):
+ ''' Add BIDS-... | add docstring for add_derivatives | py |
diff --git a/examples/trio-server.py b/examples/trio-server.py
index <HASH>..<HASH> 100644
--- a/examples/trio-server.py
+++ b/examples/trio-server.py
@@ -149,7 +149,7 @@ class TrioHTTPWrapper:
#
try:
await self.stream.send_eof()
- except trio.BrokenStreamError:
+ except tri... | Update example to keep up with latest Trio release | py |
diff --git a/tests/test_distance.py b/tests/test_distance.py
index <HASH>..<HASH> 100644
--- a/tests/test_distance.py
+++ b/tests/test_distance.py
@@ -1954,6 +1954,15 @@ class EditexTestCases(unittest.TestCase):
self.assertEqual(dist_editex('niall', 'neal'), 0.1)
+class SimTFIDFTestCases(unittest.TestCase)... | added sim_tfidf test stub | py |
diff --git a/openxc/generator/coder.py b/openxc/generator/coder.py
index <HASH>..<HASH> 100644
--- a/openxc/generator/coder.py
+++ b/openxc/generator/coder.py
@@ -26,12 +26,12 @@ class CodeGenerator(object):
def build_source(self):
lines = []
lines.extend(self._build_header())
- lines.exte... | Update coder.py Move the writing of extra_source codes(i.e. initializer, looper) after the variable declarations so the variables could be used. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ try:
"unidecode",
"django-email-extras >= 0.2",
"django >= 1.6.10, < 1.8",
- "future == 0.15.0",
+ "future <= 0.15.0",
],
classifier... | Allow earlier versions of future for better compatibility. | py |
diff --git a/pynexus/jsocket.py b/pynexus/jsocket.py
index <HASH>..<HASH> 100644
--- a/pynexus/jsocket.py
+++ b/pynexus/jsocket.py
@@ -69,9 +69,9 @@ class JSocketDecoder:
raise Exception("Nexus Connection Closed")
self.buf += chunk
- # TODO change so it ends reading an object when it find... | Fix jsonsocket bug when reading only \r when \r\n is present | py |
diff --git a/eventsourcing/infrastructure/datastore/cassandraengine.py b/eventsourcing/infrastructure/datastore/cassandraengine.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/infrastructure/datastore/cassandraengine.py
+++ b/eventsourcing/infrastructure/datastore/cassandraengine.py
@@ -12,7 +12,7 @@ from eventsourc... | Changed default protocol version to 2, since we only use LWT. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ names, convenience methods for quickly looking at data (e.g., ``.head()``, ``.ta
and the ability to get a rich interactive database connection up in only 2 lines
by setting a few required environmental variables... | Increment Travis CI badge in Travis too. | py |
diff --git a/looptools/timer.py b/looptools/timer.py
index <HASH>..<HASH> 100644
--- a/looptools/timer.py
+++ b/looptools/timer.py
@@ -2,7 +2,8 @@ import time
class Timer:
- def __init__(self):
+ def __init__(self, msg=None):
+ self.msg = msg
self.start = time.time()
self.elapsed_str... | Added optional print statement to Timer class | py |
diff --git a/aiogram/types/inline_keyboard.py b/aiogram/types/inline_keyboard.py
index <HASH>..<HASH> 100644
--- a/aiogram/types/inline_keyboard.py
+++ b/aiogram/types/inline_keyboard.py
@@ -66,11 +66,14 @@ class InlineKeyboardMarkup(base.TelegramObject):
Insert button to last row
:param button:
+ ... | Add return self to the InlineKeyboardMarkup's insert method | py |
diff --git a/yandextank/validator/tests/test_docs_gen.py b/yandextank/validator/tests/test_docs_gen.py
index <HASH>..<HASH> 100644
--- a/yandextank/validator/tests/test_docs_gen.py
+++ b/yandextank/validator/tests/test_docs_gen.py
@@ -72,14 +72,14 @@ from yandextank.validator.docs_gen import RSTRenderer, format_option
... | PR from branch users/fomars/yandextank_flake8 fix test docs gen ref:<I>ac<I>ad<I>b<I>f<I>d<I>a<I>b<I>c4e8 | py |
diff --git a/umap/umap_.py b/umap/umap_.py
index <HASH>..<HASH> 100644
--- a/umap/umap_.py
+++ b/umap/umap_.py
@@ -1458,7 +1458,6 @@ class UMAP(BaseEstimator):
False,
1.0,
1.0,
- 1.0,
False,
)
... | Fix issue #<I>. Bandwidth got deprecated. | py |
diff --git a/gpiozero/pins/data.py b/gpiozero/pins/data.py
index <HASH>..<HASH> 100644
--- a/gpiozero/pins/data.py
+++ b/gpiozero/pins/data.py
@@ -849,7 +849,7 @@ class PiBoardInfo(namedtuple('PiBoardInfo', (
'B': '2012Q1' if pcb_revision == '1.0' else '2012Q4',
'A+': '201... | Update for rev <I> 2B | py |
diff --git a/woven/virtualenv.py b/woven/virtualenv.py
index <HASH>..<HASH> 100644
--- a/woven/virtualenv.py
+++ b/woven/virtualenv.py
@@ -278,6 +278,13 @@ def pip_install_requirements():
django_version = django_version[svn_version+4:]
django_req = ''.join(['-e svn+http://code.djangoproject.co... | handle other releases other than svn or pypi releases gracefully. user should explicitly supply a package in this instance | py |
diff --git a/wandb/keras/__init__.py b/wandb/keras/__init__.py
index <HASH>..<HASH> 100644
--- a/wandb/keras/__init__.py
+++ b/wandb/keras/__init__.py
@@ -399,7 +399,7 @@ class WandbCallback(keras.callbacks.Callback):
# if its a binary mask, just return it as grayscale instead of picking the argmax
if... | keras: fix user-passed class colors (#<I>) | py |
diff --git a/salt/modules/ansiblegate.py b/salt/modules/ansiblegate.py
index <HASH>..<HASH> 100644
--- a/salt/modules/ansiblegate.py
+++ b/salt/modules/ansiblegate.py
@@ -215,7 +215,7 @@ def __virtual__():
ret = ansible is not None
msg = not ret and "Ansible is not installed on this system" or None
if ms... | Move logging about load failure to the debug level | py |
diff --git a/troposphere/__init__.py b/troposphere/__init__.py
index <HASH>..<HASH> 100644
--- a/troposphere/__init__.py
+++ b/troposphere/__init__.py
@@ -112,10 +112,10 @@ class AWSObject(object):
pass
def JSONrepr(self):
- for k, v in self.props.items():
- if v[1] and k not in self.p... | Clean up "required" error checking and handle property types better | py |
diff --git a/graphene/relay/connection.py b/graphene/relay/connection.py
index <HASH>..<HASH> 100644
--- a/graphene/relay/connection.py
+++ b/graphene/relay/connection.py
@@ -57,9 +57,6 @@ class ConnectionMeta(ObjectTypeMeta):
options.local_fields = OrderedDict()
assert options.node, 'You have to pr... | relay Connection.node does not have to subclass Node/ObjectType | py |
diff --git a/src/sos/__main__.py b/src/sos/__main__.py
index <HASH>..<HASH> 100755
--- a/src/sos/__main__.py
+++ b/src/sos/__main__.py
@@ -948,6 +948,8 @@ def cmd_execute(args, workflow_args):
os.utime(res_file, None)
#if args.verbosity <= 1:
env.logger.info('{} ``alre... | Write task already completed to err file | py |
diff --git a/requests_oauth2/oauth2.py b/requests_oauth2/oauth2.py
index <HASH>..<HASH> 100644
--- a/requests_oauth2/oauth2.py
+++ b/requests_oauth2/oauth2.py
@@ -1,4 +1,4 @@
-import requests
+import requests
from urllib import quote, urlencode
from urlparse import parse_qs
try:
@@ -34,12 +34,12 @@ class OAuth2(obj... | Validating server certicificate Fixes #GH-3 | py |
diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index <HASH>..<HASH> 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4678,22 +4678,16 @@ class DataFrame(NDFrame):
inplace = validate_bool_kwarg(inplace, "inplace")
duplicated = self.duplicated(subset, keep=keep)
- if i... | CLN: avoid using internals methods for DataFrame.drop_duplicates (#<I>) | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100644
--- a/python/setup.py
+++ b/python/setup.py
@@ -81,7 +81,7 @@ setup(
'flake8==3.5.0'
],
'doc': [
- 'Sphinx==1.8.1'
+ 'Sphinx==1.7.0'
]
}
) | reverted sphinx version back to <I> fix #<I> | py |
diff --git a/tests/test_twitter_bot.py b/tests/test_twitter_bot.py
index <HASH>..<HASH> 100644
--- a/tests/test_twitter_bot.py
+++ b/tests/test_twitter_bot.py
@@ -134,7 +134,7 @@ class TestTwitterBot(unittest.TestCase):
self.assertEqual("@js ... manage things. You lead ...", messages[1])
self.assertEq... | Added test for dry run with mention_id | py |
diff --git a/translate/tests/test_translator.py b/translate/tests/test_translator.py
index <HASH>..<HASH> 100644
--- a/translate/tests/test_translator.py
+++ b/translate/tests/test_translator.py
@@ -19,7 +19,7 @@ class TestTranslator(unittest.TestCase):
def test_love(self):
love = translator('en', 'zh-T... | decode/encode utf-8 | py |
diff --git a/basic_cms/tests/test_api.py b/basic_cms/tests/test_api.py
index <HASH>..<HASH> 100644
--- a/basic_cms/tests/test_api.py
+++ b/basic_cms/tests/test_api.py
@@ -31,8 +31,8 @@ class CMSPagesApiTests(TestCase):
self.assertEqual(response.status_code, 404)
response = self.client.get(reverse('bas... | python <I> support #4 | py |
diff --git a/src/feat/models/model.py b/src/feat/models/model.py
index <HASH>..<HASH> 100644
--- a/src/feat/models/model.py
+++ b/src/feat/models/model.py
@@ -1486,7 +1486,7 @@ class QueryItemsMixin(DynamicItemsMixin):
error.handle_failure(
None, failure, "Error creating query set model, i... | Don't swallow exception during querying collection model. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,9 +21,9 @@ class PyTest(TestCommand):
self.test_suite = True
def run_tests(self):
- # import here, cause outside the eggs aren't loaded
+ import shlex
import pytest
- errno = p... | Remove pytest warnings. | py |
diff --git a/lib/pyfrc/mains/cli_deploy.py b/lib/pyfrc/mains/cli_deploy.py
index <HASH>..<HASH> 100644
--- a/lib/pyfrc/mains/cli_deploy.py
+++ b/lib/pyfrc/mains/cli_deploy.py
@@ -207,7 +207,7 @@ class PyFrcDeploy:
'. /etc/profile.d/natinst-path.sh; ' + \
'chown -R lvu... | Ignore 'killall: lvrt: no process killed' error - Experimentation shows that this message is useless and is the result of a race condition in frcKillRobot.sh | py |
diff --git a/fbmq/fbmq.py b/fbmq/fbmq.py
index <HASH>..<HASH> 100644
--- a/fbmq/fbmq.py
+++ b/fbmq/fbmq.py
@@ -592,6 +592,11 @@ class Page(object):
Allows adding a webhook_handler as an alternative to the decorators
"""
scope = scope.lower()
+
+ if scope == 'after_send':
+ s... | Added 'after_send' to available set_webhook_handler scopes | py |
diff --git a/zhaquirks/tuya/ts0601_din_power.py b/zhaquirks/tuya/ts0601_din_power.py
index <HASH>..<HASH> 100644
--- a/zhaquirks/tuya/ts0601_din_power.py
+++ b/zhaquirks/tuya/ts0601_din_power.py
@@ -47,7 +47,9 @@ class TuyaManufClusterDinPower(TuyaManufClusterAttributes):
elif attrid == TUYA_VOLTAGE_ATTR:
... | Update DDS<I>-2 Din powerMeter with a new version of device (#<I>) * Initial support for Tuya DDS<I>-2 Din PowerMeter * Fix the linting issues * Bus was removed for Metering and Electrical Measurement clusters * Add support for the new version of Hiking DDS<I>-2 Zigbee * Fix the issue with the switch state... | py |
diff --git a/pymagicc/io.py b/pymagicc/io.py
index <HASH>..<HASH> 100644
--- a/pymagicc/io.py
+++ b/pymagicc/io.py
@@ -2002,6 +2002,13 @@ class _RCPDatWriter(_Writer):
MAGICC categories and hard-coding descriptions (which can vary by MAGICC
version).
"""
+ warnings.warn(
+ "... | Put warning in front of .DAT writers | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-from distutils.core import setup
+from setuptools import setup
def readme():
with open('README.rst') as f:
@@ -13,7 +13,7 @@ setup(
author_email = 'slava@sinch.com',
url = 'https://github.com/sinch/... | Use setuptools instead to make pip satisfy requirements. | py |
diff --git a/pysc2/lib/remote_controller.py b/pysc2/lib/remote_controller.py
index <HASH>..<HASH> 100644
--- a/pysc2/lib/remote_controller.py
+++ b/pysc2/lib/remote_controller.py
@@ -29,6 +29,7 @@ from pysc2.lib import static_data
from pysc2.lib import stopwatch
import websocket
+from s2clientprotocol import debug_... | Added the support of debug commands in the remote controller. PySC2: Import of refs/pull/<I>/head PiperOrigin-RevId: <I> | py |
diff --git a/allegedb/allegedb/cache.py b/allegedb/allegedb/cache.py
index <HASH>..<HASH> 100644
--- a/allegedb/allegedb/cache.py
+++ b/allegedb/allegedb/cache.py
@@ -783,8 +783,8 @@ class NodesCache(Cache):
self.db._node_objs[(graph, node)] \
= self._make_node(self.db.graph[graph], node)
... | Fix incorrect key caching upon deletion of node | py |
diff --git a/proso/release.py b/proso/release.py
index <HASH>..<HASH> 100644
--- a/proso/release.py
+++ b/proso/release.py
@@ -1 +1 @@
-VERSION = '1.1.0-m4'
+VERSION = '1.1.0-SNAPSHOT' | back to <I>-SNAPSHOT | py |
diff --git a/looper/looper.py b/looper/looper.py
index <HASH>..<HASH> 100755
--- a/looper/looper.py
+++ b/looper/looper.py
@@ -257,8 +257,9 @@ def run(prj, args, remaining_args, get_samples=None):
submission_bundles = submission_bundle_by_protocol[protocol]
except KeyError:
... | make sure the variable has an assignment before use | py |
diff --git a/pythonforandroid/toolchain.py b/pythonforandroid/toolchain.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/toolchain.py
+++ b/pythonforandroid/toolchain.py
@@ -816,6 +816,14 @@ class ToolchainCL(object):
env["ANDROID_HOME"] = self.ctx.sdk_dir
gradlew = sh.Command('... | Fix 'gradlew' containing CRLF in Docker image on Windows | py |
diff --git a/luigi/file.py b/luigi/file.py
index <HASH>..<HASH> 100644
--- a/luigi/file.py
+++ b/luigi/file.py
@@ -28,6 +28,9 @@ class File(object):
self.path = path
self.format = format
+ def complete(self):
+ return self.exists()
+
def exists(self):
return os.path.exists(se... | Added complete method to File object. Change-Id: I<I>e<I>ebede<I>e2a6ea<I>bc<I> Reviewed-on: <URL> | py |
diff --git a/angr/calling_conventions.py b/angr/calling_conventions.py
index <HASH>..<HASH> 100644
--- a/angr/calling_conventions.py
+++ b/angr/calling_conventions.py
@@ -493,13 +493,17 @@ class SimCC:
If you've customized this CC, this will sanity-check the provided locations with the given list.
"""... | SimCC.arg_logs(): Check the existence of both func_ty and args. (#<I>) * SimCC.arg_logs(): Check the existence of both func_ty and args. * get the value after bypassing the check... | py |
diff --git a/law/contrib/glite/__init__.py b/law/contrib/glite/__init__.py
index <HASH>..<HASH> 100644
--- a/law/contrib/glite/__init__.py
+++ b/law/contrib/glite/__init__.py
@@ -512,7 +512,7 @@ class GLiteWorkflowProxy(WorkflowProxy):
outputs["submission"].parent.touch()
# get all branch indexes an... | Fix creation of dummy control outputs in glite workflow. | py |
diff --git a/lib/edf/importers/syscal/importer.py b/lib/edf/importers/syscal/importer.py
index <HASH>..<HASH> 100644
--- a/lib/edf/importers/syscal/importer.py
+++ b/lib/edf/importers/syscal/importer.py
@@ -26,6 +26,11 @@ def add_txt_file(filename, container=None, **kwargs):
a given measurement setup. If not g... | add possibility to resort electrode numbers of reciprocal measurements | py |
diff --git a/intake/catalog/base.py b/intake/catalog/base.py
index <HASH>..<HASH> 100644
--- a/intake/catalog/base.py
+++ b/intake/catalog/base.py
@@ -7,7 +7,9 @@
import collections
import copy
+import keyword
import logging
+import re
import six
import time
@@ -186,7 +188,12 @@ class Catalog(DataSource):
... | Exclude invalid identifiers from __dir__. Include attrs. | py |
diff --git a/bootstrap.py b/bootstrap.py
index <HASH>..<HASH> 100755
--- a/bootstrap.py
+++ b/bootstrap.py
@@ -42,8 +42,8 @@ symbol (example: `python bootstrap.py -- --hide-console`).
Type `python bootstrap.py -- --help` to read about Spyder
options.""")
parser.add_argument('--gui', default=None,
- ... | Make boostrap work with PySide2 | py |
diff --git a/elastic/elastic.py b/elastic/elastic.py
index <HASH>..<HASH> 100644
--- a/elastic/elastic.py
+++ b/elastic/elastic.py
@@ -722,7 +722,7 @@ if __name__ == '__main__':
# Run the internal optimizer
print("Residual pressure: %.3f GPa" % (
- cryst.get_pressure()/uni... | Remove obsolate get_pressure from tests. | py |
diff --git a/nbdiff/commands.py b/nbdiff/commands.py
index <HASH>..<HASH> 100644
--- a/nbdiff/commands.py
+++ b/nbdiff/commands.py
@@ -19,16 +19,31 @@ def diff():
# if 0, use version control (unstaged changes)
# if 2, use the files.
length = len(args.notebook)
+ parser = NotebookParser()
if lengt... | Use git-ls-files to find modified notebook. | py |
diff --git a/src/p4p/nt/scalar.py b/src/p4p/nt/scalar.py
index <HASH>..<HASH> 100644
--- a/src/p4p/nt/scalar.py
+++ b/src/p4p/nt/scalar.py
@@ -67,7 +67,7 @@ class ntbool(ntwrappercommon, int):
return int.__new__(cls, bool(value))
def __repr__(self):
- return bool(self).__repr__()
+ return ... | lower() bool Avoid ambiguity with True/False singletons | py |
diff --git a/functionfs/tests/host.py b/functionfs/tests/host.py
index <HASH>..<HASH> 100644
--- a/functionfs/tests/host.py
+++ b/functionfs/tests/host.py
@@ -107,6 +107,8 @@ def main():
)
transfer_list = [handle.getTransfer() for _ in xrange(8)]
+ active_configuration = handle.getConfigurati... | tests.host: Check configuration is really enabled. Issues in upcoming <I>-rc3 prevent configuration from being enabled, which leads to confusing error messages. So explicitly check that configuration 1 is enabled. | py |
diff --git a/djstripe/admin.py b/djstripe/admin.py
index <HASH>..<HASH> 100644
--- a/djstripe/admin.py
+++ b/djstripe/admin.py
@@ -506,9 +506,17 @@ class PaymentIntentAdmin(StripeModelAdmin):
"amount_received",
"receipt_email",
)
- list_select_related = ("customer", "customer__subscriber")
... | Overrode PaymentIntentAdmin.get_queryset() to prefetch PaymentIntent model FK | py |
diff --git a/tests/web_client_test.py b/tests/web_client_test.py
index <HASH>..<HASH> 100644
--- a/tests/web_client_test.py
+++ b/tests/web_client_test.py
@@ -127,6 +127,7 @@ class WebClientTestCase(base.TestCase):
task = subprocess.Popen(cmd, stdout=subprocess.PIPE,
st... | Retry unfinished web client tests. If we don't get a report that Jasmine tests were finished, retry the test. This appears to be a Jasmine bug (at least, the failure usually occurs within the Jasmine javscript). | py |
diff --git a/esipy/client.py b/esipy/client.py
index <HASH>..<HASH> 100644
--- a/esipy/client.py
+++ b/esipy/client.py
@@ -284,10 +284,6 @@ class EsiClient(BaseClient):
cache_timeout,
)
- else:
- # no expires header so we won't cache the call
- pass
-
... | (#<I>) Removed silly else: pass. | py |
diff --git a/cheroot/test/test_ssl.py b/cheroot/test/test_ssl.py
index <HASH>..<HASH> 100644
--- a/cheroot/test/test_ssl.py
+++ b/cheroot/test/test_ssl.py
@@ -17,9 +17,9 @@ import six
import trustme
from .._compat import bton, ntob, ntou
+from .._compat import IS_ABOVE_OPENSSL10
from .._compat import IS_LINUX, IS_... | Fix fallback plain http resp expect for some cases | py |
diff --git a/bin/LDA.py b/bin/LDA.py
index <HASH>..<HASH> 100755
--- a/bin/LDA.py
+++ b/bin/LDA.py
@@ -93,6 +93,9 @@ def handle_program_options():
parser.add_argument('--dpi', default=200, type=int,
help="Set plot quality in Dots Per Inch (DPI). Larger\
DPI w... | Adds the option to save the input to LDA as a csv file | py |
diff --git a/postmark/core.py b/postmark/core.py
index <HASH>..<HASH> 100644
--- a/postmark/core.py
+++ b/postmark/core.py
@@ -40,7 +40,7 @@ class PMJSONEncoder(json.JSONEncoder):
#
#
-__POSTMARK_URL__ = 'http://api.postmarkapp.com/'
+__POSTMARK_URL__ = 'https://api.postmarkapp.com/'
class PMMail(object):
... | Why use http when https is available? | py |
diff --git a/treeherder/config/settings.py b/treeherder/config/settings.py
index <HASH>..<HASH> 100644
--- a/treeherder/config/settings.py
+++ b/treeherder/config/settings.py
@@ -299,9 +299,10 @@ CELERYD_TASK_SOFT_TIME_LIMIT = 15 * 60
CELERYD_TASK_TIME_LIMIT = CELERYD_TASK_SOFT_TIME_LIMIT + 30
CELERYBEAT_SCHEDULE =... | Bug <I> - Decrease pushlog interval to 5 minutes (#<I>) Now that we are also ingesting HG pushes via Pulse, this celery beat fetch interval is just a failsafe. So we can decrease the interval from every minute to every 5 minutes. | py |
diff --git a/tools/sphinx/protobufdomain.py b/tools/sphinx/protobufdomain.py
index <HASH>..<HASH> 100644
--- a/tools/sphinx/protobufdomain.py
+++ b/tools/sphinx/protobufdomain.py
@@ -92,6 +92,11 @@ class ProtobufObject(ObjectDescription):
indextext = self.get_index_text(name)
if indextext:
+ #FIXME Whe... | Added a fixme for sphinx column name warning <I> and later versions of sphinx expect a fifth entry for the index tuple and will throw a warning. To support the version of sphinx in use by the maven plugin this column is left out. Future versions of sphinx-maven should allow for this backwards compatibility to be remove... | py |
diff --git a/samples/testbase.py b/samples/testbase.py
index <HASH>..<HASH> 100644
--- a/samples/testbase.py
+++ b/samples/testbase.py
@@ -24,4 +24,4 @@ import sys
import flushfile
# append module root directory to sys.path
-sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+sys.path.inse... | testbase inserts development path to sys.path rather than append | py |
diff --git a/lurklib/squeries.py b/lurklib/squeries.py
index <HASH>..<HASH> 100755
--- a/lurklib/squeries.py
+++ b/lurklib/squeries.py
@@ -161,16 +161,14 @@ class _ServerQueries(object):
self.send('LINKS %s %s' % (r_server, mask))
links = {}
while self.readable():
- ... | Updated links() to use new _recv() method. | py |
diff --git a/elasticsearch_dsl/faceted_search.py b/elasticsearch_dsl/faceted_search.py
index <HASH>..<HASH> 100644
--- a/elasticsearch_dsl/faceted_search.py
+++ b/elasticsearch_dsl/faceted_search.py
@@ -204,7 +204,7 @@ class FacetedSearch(object):
"""
# normalize the value into a list
if not ... | Allows doc values to be empty strings in faceted search (#<I>) After #<I> this check should have been updated to allow empty strings. | py |
diff --git a/gns3server/ubridge/hypervisor.py b/gns3server/ubridge/hypervisor.py
index <HASH>..<HASH> 100644
--- a/gns3server/ubridge/hypervisor.py
+++ b/gns3server/ubridge/hypervisor.py
@@ -256,5 +256,5 @@ class Hypervisor(UBridgeHypervisor):
command = [self._path]
command.extend(["-H", "{}:{}".forma... | Change uBridge debug level to '1' when debugging is enabled. Fixes #<I> | py |
diff --git a/hazelcast/reactor.py b/hazelcast/reactor.py
index <HASH>..<HASH> 100644
--- a/hazelcast/reactor.py
+++ b/hazelcast/reactor.py
@@ -6,7 +6,7 @@ import socket
import sys
import threading
import time
-from Queue import PriorityQueue
+from Queue import PriorityQueue, Empty
from collections import deque
f... | ignore raised Empty on reactor queue since queue is also consumed when timer is cancelled | py |
diff --git a/aiohttp/web_urldispatcher.py b/aiohttp/web_urldispatcher.py
index <HASH>..<HASH> 100644
--- a/aiohttp/web_urldispatcher.py
+++ b/aiohttp/web_urldispatcher.py
@@ -152,6 +152,10 @@ class StaticRoute(Route):
self._directory = os.path.abspath(directory) + os.sep
self._chunk_size = chunk_size
... | Throw ValueError if static file root does not exist | py |
diff --git a/ensure/__init__.py b/ensure/__init__.py
index <HASH>..<HASH> 100644
--- a/ensure/__init__.py
+++ b/ensure/__init__.py
@@ -118,7 +118,8 @@ class MultiInspector(Inspector):
inspector = self._get_inspector(subject)
inspect_method = getattr(inspector, item)
su... | Return nothing if there are no more inspectors | py |
diff --git a/pwnypack/shellcode/translate.py b/pwnypack/shellcode/translate.py
index <HASH>..<HASH> 100644
--- a/pwnypack/shellcode/translate.py
+++ b/pwnypack/shellcode/translate.py
@@ -100,6 +100,13 @@ def translate(env, func, *args, **kwargs):
elif op.name == 'RETURN_VALUE':
stack.pop()
+ ... | Support DUP_TOP opcode in shellcode translator. Adds support for chained assignment (REG1 = REG2 = REG3). Contains exception for when a syscall is invoked to prevent the syscall from being called multiple times. | py |
diff --git a/synergine/core/connection/Terminal.py b/synergine/core/connection/Terminal.py
index <HASH>..<HASH> 100644
--- a/synergine/core/connection/Terminal.py
+++ b/synergine/core/connection/Terminal.py
@@ -71,3 +71,6 @@ class Terminal():
def get_context(self):
return self._context
+
+ def get_sy... | add possibility to get terminal synergy manager | py |
diff --git a/configuration.py b/configuration.py
index <HASH>..<HASH> 100644
--- a/configuration.py
+++ b/configuration.py
@@ -120,3 +120,43 @@ class Configuration:
NotConfigured = Configuration()
# TODO: provide documentation for NotConfigured
# TODO: create some __str__-like thing on NotConfigured (monkey patching... | Read to Configuration from file or string using yaml or json | py |
diff --git a/airflow/api_connexion/endpoints/extra_link_endpoint.py b/airflow/api_connexion/endpoints/extra_link_endpoint.py
index <HASH>..<HASH> 100644
--- a/airflow/api_connexion/endpoints/extra_link_endpoint.py
+++ b/airflow/api_connexion/endpoints/extra_link_endpoint.py
@@ -73,6 +73,6 @@ def get_extra_links(
... | Sort operator extra links (#<I>) Today, every time webserver is restarted, the order of the operator extra links are randomized due to Python sets being unordered. This change will sort the links according to their name. No particular thought has been given to customizing this sort order, except to make it cons... | py |
diff --git a/fireplace/card.py b/fireplace/card.py
index <HASH>..<HASH> 100644
--- a/fireplace/card.py
+++ b/fireplace/card.py
@@ -40,12 +40,10 @@ class BaseCard(Entity):
super().__init__()
self._auras = []
self.requirements = data.requirements.copy()
- self.entourage = CardList(self.data.entourage)
self.i... | Move entourage/secret initialization out of BaseCard | py |
diff --git a/bids/analysis/variables.py b/bids/analysis/variables.py
index <HASH>..<HASH> 100644
--- a/bids/analysis/variables.py
+++ b/bids/analysis/variables.py
@@ -133,11 +133,10 @@ def load_variables(layouts, default_duration=0, entities=None, columns=None,
duration = img.shape[3] * img.header.get_zoom... | drop file names from warning to allow default suppression in loops | py |
diff --git a/plugins/meaningful.py b/plugins/meaningful.py
index <HASH>..<HASH> 100644
--- a/plugins/meaningful.py
+++ b/plugins/meaningful.py
@@ -56,7 +56,7 @@ def show_meaningful_in_function(function):
# Trim the string for easier display
string = string[:100]
- idaapi.msg("str ... | meaningful: use get_name_or_address() for non-code xrefs to better distinguish between string and other (global) references | py |
diff --git a/parsers/isophonics_parser.py b/parsers/isophonics_parser.py
index <HASH>..<HASH> 100755
--- a/parsers/isophonics_parser.py
+++ b/parsers/isophonics_parser.py
@@ -59,8 +59,8 @@ def fill_annotation_metadata(annot):
annot.annotation_metadata.version = "1.0"
annot.annotation_metadata.annotation_tools... | Modified Isophonics such that it works with new schema | py |
diff --git a/pysra/site.py b/pysra/site.py
index <HASH>..<HASH> 100644
--- a/pysra/site.py
+++ b/pysra/site.py
@@ -936,7 +936,7 @@ class Profile(collections.abc.Container):
"""
layers = []
- for row in df.itertuples(index=False):
+ for _, row in df.iterrows():
layers.appen... | Changed back to iterrows(). | py |
diff --git a/gns3server/compute/dynamips/nodes/router.py b/gns3server/compute/dynamips/nodes/router.py
index <HASH>..<HASH> 100644
--- a/gns3server/compute/dynamips/nodes/router.py
+++ b/gns3server/compute/dynamips/nodes/router.py
@@ -131,14 +131,16 @@ class Router(BaseNode):
try:
... | Do not fail a Dynamips project conversion if a file being used. | py |
diff --git a/abilian/core/commands/base.py b/abilian/core/commands/base.py
index <HASH>..<HASH> 100644
--- a/abilian/core/commands/base.py
+++ b/abilian/core/commands/base.py
@@ -3,7 +3,6 @@ from __future__ import absolute_import, division, print_function, \
unicode_literals
import logging
-import os
import ru... | fix: must delete this code since we removed unoconv. | py |
diff --git a/versioner.py b/versioner.py
index <HASH>..<HASH> 100755
--- a/versioner.py
+++ b/versioner.py
@@ -3,6 +3,7 @@
from __future__ import print_function
import re
import sys
+import time
import fileinput
import subprocess
@@ -47,6 +48,7 @@ for line in fileinput.input(release_file, inplace=1):
li... | Add the date of each version to the releasenotes docs, for convenience. | py |
diff --git a/py/testdir_release/sh2junit.py b/py/testdir_release/sh2junit.py
index <HASH>..<HASH> 100755
--- a/py/testdir_release/sh2junit.py
+++ b/py/testdir_release/sh2junit.py
@@ -206,6 +206,7 @@ def sh2junit(name='NoName', cmd_string='/bin/ls', timeout=300, shdir=None, **kwa
lineBurstCnt += 1
... | Flush stdout immediately after a write. | py |
diff --git a/marathon/models/container.py b/marathon/models/container.py
index <HASH>..<HASH> 100644
--- a/marathon/models/container.py
+++ b/marathon/models/container.py
@@ -46,7 +46,7 @@ class MarathonDockerContainer(MarathonObject):
:param bool force_pull_image: Force a docker pull before launching
"""
-... | Add NONE as valid docker network mode | py |
diff --git a/tests/test_settings.py b/tests/test_settings.py
index <HASH>..<HASH> 100644
--- a/tests/test_settings.py
+++ b/tests/test_settings.py
@@ -15,4 +15,10 @@ CHANNEL_LAYERS = {
MIDDLEWARE_CLASSES = []
-INSTALLED_APPS = ('tests', )
+INSTALLED_APPS = (
+ 'django.contrib.auth',
+ 'django.contrib.content... | Add contrib.auth to test settings | py |
diff --git a/sphinx_pyreverse/uml_generate_directive.py b/sphinx_pyreverse/uml_generate_directive.py
index <HASH>..<HASH> 100644
--- a/sphinx_pyreverse/uml_generate_directive.py
+++ b/sphinx_pyreverse/uml_generate_directive.py
@@ -106,7 +106,9 @@ class UMLGenerateDirective(Directive):
if module_name not in s... | Runs python-black against code | py |
diff --git a/client/modules/Joke.py b/client/modules/Joke.py
index <HASH>..<HASH> 100644
--- a/client/modules/Joke.py
+++ b/client/modules/Joke.py
@@ -1,11 +1,12 @@
# -*- coding: utf-8-*-
import random
import re
+import jasperpath
WORDS = ["JOKE", "KNOCK KNOCK"]
-def getRandomJoke(filename="../static/text/JOK... | Use jasperpath in client/modules/Joke.py | py |
diff --git a/btlewrap/version.py b/btlewrap/version.py
index <HASH>..<HASH> 100644
--- a/btlewrap/version.py
+++ b/btlewrap/version.py
@@ -1,3 +1,3 @@
"""Version number of the library."""
-__version__ = '0.0.8-dev'
+__version__ = '0.0.9' | bumped version number to <I> | py |
diff --git a/docs/publish_docs.py b/docs/publish_docs.py
index <HASH>..<HASH> 100755
--- a/docs/publish_docs.py
+++ b/docs/publish_docs.py
@@ -89,7 +89,7 @@ def main():
print(f" - {pkg}")
print()
for package_name in current_packages:
- builder = AirflowDocsBuilder(package_name=package_name, fo... | fixup! Fixed failing pylint errors introduced in #<I> (#<I>) (#<I>) | py |
diff --git a/dock/util.py b/dock/util.py
index <HASH>..<HASH> 100644
--- a/dock/util.py
+++ b/dock/util.py
@@ -87,6 +87,7 @@ def wait_for_command(logs_generator):
while True:
try:
item = logs_generator.next()
+ item = item.strip()
logger.debug(item)
logs.a... | wait for command: strip WS from items | py |
diff --git a/pyfolio/plotting.py b/pyfolio/plotting.py
index <HASH>..<HASH> 100644
--- a/pyfolio/plotting.py
+++ b/pyfolio/plotting.py
@@ -1441,8 +1441,8 @@ def plot_round_trip_life_times(round_trips, ax=None):
ax.set_yticklabels(symbols)
- red_line = mlines.Line2D([], [], color='r', label='Long')
- blue... | color legend of morse code plot correctly | py |
diff --git a/django_prometheus/cache/backends/django_memcached_consul.py b/django_prometheus/cache/backends/django_memcached_consul.py
index <HASH>..<HASH> 100644
--- a/django_prometheus/cache/backends/django_memcached_consul.py
+++ b/django_prometheus/cache/backends/django_memcached_consul.py
@@ -1,3 +1,4 @@
+from __f... | Added compatibility with pypy (#<I>) | py |
diff --git a/deploy_stack.py b/deploy_stack.py
index <HASH>..<HASH> 100755
--- a/deploy_stack.py
+++ b/deploy_stack.py
@@ -79,7 +79,8 @@ def run_instances(count):
environ = dict(os.environ)
environ.update({
'INSTANCE_TYPE': 'm1.large',
- 'AMI_IMAGE': 'ami-bd6d40d4',
+ #'AMI_IMAGE': 'ami... | Use the same image as the precise unit tests. | py |
diff --git a/ethereum/tests/test_state.py b/ethereum/tests/test_state.py
index <HASH>..<HASH> 100644
--- a/ethereum/tests/test_state.py
+++ b/ethereum/tests/test_state.py
@@ -46,7 +46,8 @@ else:
for filename in filenames:
tests = fixtures[filename]
if 'stQuadraticComplexityTest.json' in filename ... | Blacklisted precompiledContractsTransaction.json, all state tests now pass on py2 and 3 | py |
diff --git a/tests/builder/designspace_roundtrip_test.py b/tests/builder/designspace_roundtrip_test.py
index <HASH>..<HASH> 100644
--- a/tests/builder/designspace_roundtrip_test.py
+++ b/tests/builder/designspace_roundtrip_test.py
@@ -75,7 +75,7 @@ def test_default_master_roundtrips():
reg = doc.sources[1]
as... | [flake8] E<I> comparison to True should be 'is' | py |
diff --git a/pycm/pycm_obj.py b/pycm/pycm_obj.py
index <HASH>..<HASH> 100644
--- a/pycm/pycm_obj.py
+++ b/pycm/pycm_obj.py
@@ -659,7 +659,7 @@ class ConfusionMatrix():
def weighted_average(self, param, weight=None, none_omit=False):
"""
- Calculate the weighted average of the input parameter
+ ... | doc : minor edit in weighted_average docstring #<I> | py |
diff --git a/mr/awsome/fabric_integration.py b/mr/awsome/fabric_integration.py
index <HASH>..<HASH> 100644
--- a/mr/awsome/fabric_integration.py
+++ b/mr/awsome/fabric_integration.py
@@ -1,4 +1,5 @@
import fabric.network
+import sys
try: # pragma: no cover - we support both
import paramiko
paramiko # shut... | Exit right away when the fingerprint can't be validated for a server asked for by Fabric. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@ setup(name = 'landez',
install_requires=[
],
packages = find_packages(),
- platforms = ('any',),
+ platforms = ('any'),
keywords = ['MBTiles', 'Mapnik'],
classi... | Fix distutils pypi upload 'IndexError: tuple index out of range' | py |
diff --git a/ginga/util/wcsmod/wcs_astropy_ape14.py b/ginga/util/wcsmod/wcs_astropy_ape14.py
index <HASH>..<HASH> 100644
--- a/ginga/util/wcsmod/wcs_astropy_ape14.py
+++ b/ginga/util/wcsmod/wcs_astropy_ape14.py
@@ -118,10 +118,9 @@ class AstropyWCS(common.BaseWCS):
args = [ra_deg, dec_deg]
if naxispat... | Fix APE<I> according to comment from @nden | py |
diff --git a/bitmerchant/wallet/bip32.py b/bitmerchant/wallet/bip32.py
index <HASH>..<HASH> 100644
--- a/bitmerchant/wallet/bip32.py
+++ b/bitmerchant/wallet/bip32.py
@@ -261,7 +261,8 @@ class Wallet(object):
parent_fingerprint=self.fingerprint,
child_number=child_number_hex,
priv... | Must pass the network constants to children | py |
diff --git a/opengridview/window.py b/opengridview/window.py
index <HASH>..<HASH> 100644
--- a/opengridview/window.py
+++ b/opengridview/window.py
@@ -113,7 +113,7 @@ class Window(Gtk.ApplicationWindow):
def add_item(self,item):
# assuming item is array of values
z = zip(item,self.headers)
- if ... | Ignoring only explicitly "None" values not "False", for instance | py |
diff --git a/great_expectations/cli/validation_operator.py b/great_expectations/cli/validation_operator.py
index <HASH>..<HASH> 100644
--- a/great_expectations/cli/validation_operator.py
+++ b/great_expectations/cli/validation_operator.py
@@ -197,20 +197,20 @@ Let's help you specify the batch of data your want the vali... | Add support for passing evaluation parameters to the run_validation_operator command | py |
diff --git a/exam/cases.py b/exam/cases.py
index <HASH>..<HASH> 100644
--- a/exam/cases.py
+++ b/exam/cases.py
@@ -47,17 +47,13 @@ class Exam(AssertsMixin):
else:
yield attr, resolved_value
- def __run_before_hooks(self):
- for _, value in self.__attrs_of_type(before):
... | Switch to abstract run_hooks method | py |
diff --git a/estnltk/syntax/syntax_preprocessing.py b/estnltk/syntax/syntax_preprocessing.py
index <HASH>..<HASH> 100644
--- a/estnltk/syntax/syntax_preprocessing.py
+++ b/estnltk/syntax/syntax_preprocessing.py
@@ -77,10 +77,6 @@ class Cg3Exporter():
line = re.sub('ei" L0(.*) V aux neg cap ','e... | removed hack for the lines that have '#' in the root | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.