diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/master/buildbot/monkeypatches/servicechecks.py b/master/buildbot/monkeypatches/servicechecks.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/monkeypatches/servicechecks.py
+++ b/master/buildbot/monkeypatches/servicechecks.py
@@ -25,10 +25,10 @@ def patch_servicechecks():
old_startService = Servic... | better logging for start/stopService failures | py |
diff --git a/src/hunter/__init__.py b/src/hunter/__init__.py
index <HASH>..<HASH> 100644
--- a/src/hunter/__init__.py
+++ b/src/hunter/__init__.py
@@ -44,7 +44,7 @@ class Tracer(Fields.predicate):
Starts tracing. Can be used as a context manager (with slightly incorrect semantics - it starts tracing before ``_... | Check for `actions` too (don't add default in that case either). | py |
diff --git a/tweepy/streaming.py b/tweepy/streaming.py
index <HASH>..<HASH> 100644
--- a/tweepy/streaming.py
+++ b/tweepy/streaming.py
@@ -258,7 +258,7 @@ class Stream(BaseStream):
auth = OAuth1(self.consumer_key, self.consumer_secret,
self.access_token, self.access_token_secret)
... | Fix missing comma in streaming.py | py |
diff --git a/wandb/apis/public.py b/wandb/apis/public.py
index <HASH>..<HASH> 100644
--- a/wandb/apis/public.py
+++ b/wandb/apis/public.py
@@ -1422,6 +1422,7 @@ class Sweep(Attrs):
id: (str) sweep id
project: (str) name of project
config: (str) dictionary of sweep configuration
+ state... | [WB-<I>] expose sweep state via public API (#<I>) | py |
diff --git a/clients/python/girder_client/__init__.py b/clients/python/girder_client/__init__.py
index <HASH>..<HASH> 100644
--- a/clients/python/girder_client/__init__.py
+++ b/clients/python/girder_client/__init__.py
@@ -391,6 +391,42 @@ class GirderClient(object):
return self.listResource('item', params)
... | list/get/createUser methods in py client | py |
diff --git a/salt/auth/__init__.py b/salt/auth/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/auth/__init__.py
+++ b/salt/auth/__init__.py
@@ -166,7 +166,7 @@ class Authorize(object):
Gather and create the autorization data sets
'''
auth_data = [self.opts['external_auth']]
- for au... | Set default to an iterable for authorize backend detection | py |
diff --git a/raiden/exceptions.py b/raiden/exceptions.py
index <HASH>..<HASH> 100644
--- a/raiden/exceptions.py
+++ b/raiden/exceptions.py
@@ -82,15 +82,6 @@ class AlreadyRegisteredTokenAddress(RaidenError):
# from a byzantine node)
-class InsufficientBalance(RaidenError):
- """ Raised when the netting channel ... | InsufficientBalance was not used | py |
diff --git a/src/nfc/clf/device.py b/src/nfc/clf/device.py
index <HASH>..<HASH> 100644
--- a/src/nfc/clf/device.py
+++ b/src/nfc/clf/device.py
@@ -121,7 +121,7 @@ def connect(path):
if path.startswith("udp"):
path = path.split(':')
- host = str(path[1]) if len(path) > 1 and path[1] else '127.0.0.... | Return to localhost as default ] doctest failed on OSX tried <I> but fixed by mocking uname in sphinx config | py |
diff --git a/pfr/utils.py b/pfr/utils.py
index <HASH>..<HASH> 100644
--- a/pfr/utils.py
+++ b/pfr/utils.py
@@ -73,12 +73,14 @@ def relURLToID(url):
boxscoresRegex = re.compile(r'/boxscores/(.+?)\.html?')
teamRegex = re.compile(r'/teams/(\w{3})/')
yearRegex = re.compile(r'/years/(\d{4})/')
+ coachRegex... | added coachRegex to RelURLToID | py |
diff --git a/asciimatics/widgets.py b/asciimatics/widgets.py
index <HASH>..<HASH> 100644
--- a/asciimatics/widgets.py
+++ b/asciimatics/widgets.py
@@ -236,7 +236,8 @@ class Layout(object):
self._find_next_widget(1)
if self._live_col >= len(self._columns):
... | Fix case where no widgets in a column | py |
diff --git a/pylint_django/augmentations/__init__.py b/pylint_django/augmentations/__init__.py
index <HASH>..<HASH> 100644
--- a/pylint_django/augmentations/__init__.py
+++ b/pylint_django/augmentations/__init__.py
@@ -1,4 +1,5 @@
from astroid import InferenceError
+from astroid.bases import YES
from pylint.checkers.... | Fixing an error I do not understand in which the list of base classes for a class can be "YES" | py |
diff --git a/awsmfa/__init__.py b/awsmfa/__init__.py
index <HASH>..<HASH> 100755
--- a/awsmfa/__init__.py
+++ b/awsmfa/__init__.py
@@ -79,7 +79,7 @@ def main():
help="Setup a new log term credentials section",
action="store_true",
required=False... | fixed missing comma typo / regression | py |
diff --git a/phoebe/backend/backends.py b/phoebe/backend/backends.py
index <HASH>..<HASH> 100644
--- a/phoebe/backend/backends.py
+++ b/phoebe/backend/backends.py
@@ -881,7 +881,7 @@ def phoebe(b, compute, times=[], as_generator=False, **kwargs):
return packet
- if _use_mpi and not conf.force_serial:
+ ... | fix running custom MPI wrapper around PHOEBE closes #<I> | py |
diff --git a/shorten/keystores.py b/shorten/keystores.py
index <HASH>..<HASH> 100644
--- a/shorten/keystores.py
+++ b/shorten/keystores.py
@@ -69,3 +69,11 @@ class RedisKeystore(object):
def __getitem__(self, key):
return self._redis.get(key)
+
+ def get_redis(self):
+ return self._redis
+
+ ... | Added getter/setter for redis | py |
diff --git a/tests/test_manhole.py b/tests/test_manhole.py
index <HASH>..<HASH> 100644
--- a/tests/test_manhole.py
+++ b/tests/test_manhole.py
@@ -237,7 +237,7 @@ def check_print_tracebacks(uds_path):
with dump_on_error(client.read):
wait_for_strings(client.read, 1, ">>>")
sock.send(b... | Fix tests compatibility with PyPy | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,6 @@
from setuptools import setup, find_packages
-VERSION = "0.3.0"
+VERSION = "0.3.1"
setup(
name='wikidataintegrator', | update version number to <I> | py |
diff --git a/modeltranslation/tests/__init__.py b/modeltranslation/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/modeltranslation/tests/__init__.py
+++ b/modeltranslation/tests/__init__.py
@@ -1549,6 +1549,21 @@ class TranslationAdminTest(ModeltranslationTestBase):
for field, css in fields.items():
... | Added admin test for multitable inheritance to verify that issue #<I> was resolved by pull request #<I>. | py |
diff --git a/helpers/etcd.py b/helpers/etcd.py
index <HASH>..<HASH> 100644
--- a/helpers/etcd.py
+++ b/helpers/etcd.py
@@ -1,4 +1,5 @@
import logging
+import random
import requests
import socket
import sys
@@ -124,7 +125,8 @@ class Client:
members_cache = []
for member in response if load_from_srv... | Randomize list of etcd cluster members | py |
diff --git a/column/api/controller/run_controller.py b/column/api/controller/run_controller.py
index <HASH>..<HASH> 100644
--- a/column/api/controller/run_controller.py
+++ b/column/api/controller/run_controller.py
@@ -37,7 +37,8 @@ run_post_schema = {
"skip_tags": {"type": ["array", "null"]},
... | Allow ssh_common_args on the create run API In some cases ssh_common_args needs to be set. | py |
diff --git a/pxl/styleplot.py b/pxl/styleplot.py
index <HASH>..<HASH> 100644
--- a/pxl/styleplot.py
+++ b/pxl/styleplot.py
@@ -40,7 +40,8 @@ def set_sns(style="white", context="paper", font_scale=1.5, rc={}):
"""
rcd = {"lines.markersize": 8, "lines.markeredgewidth": 1.25,
"legend.fontsize": "smal... | Use grid by default in set_sns | py |
diff --git a/fsed/ahocorasick.py b/fsed/ahocorasick.py
index <HASH>..<HASH> 100644
--- a/fsed/ahocorasick.py
+++ b/fsed/ahocorasick.py
@@ -409,7 +409,9 @@ class AhoCorasickTrie(Trie):
def boundary_transform(seq):
in_word = False
for char in seq:
- if char in ' \t\v\r\n':
+ if char == '\x00':
+ ... | fsed/ahocorasick: boundary_transform is stable | py |
diff --git a/bibliopixel/animation/collection.py b/bibliopixel/animation/collection.py
index <HASH>..<HASH> 100644
--- a/bibliopixel/animation/collection.py
+++ b/bibliopixel/animation/collection.py
@@ -57,8 +57,7 @@ class Collection(animation.BaseAnimation):
def cleanup(self, clean_layout=True):
self.sta... | Two improvements to animation.Collection * `Collection` now calls .pre_run() for each subanimation * Take empty animations into account everywhere | py |
diff --git a/hamster/charting.py b/hamster/charting.py
index <HASH>..<HASH> 100644
--- a/hamster/charting.py
+++ b/hamster/charting.py
@@ -126,7 +126,7 @@ class Chart(gtk.DrawingArea):
if self.orient_vertical:
# for simple bars figure, when there is way too much data for bars
# and go... | hehe, split widget width, not events, since the latter can be 1 px wide svn path=/trunk/; revision=<I> | py |
diff --git a/openquake/risklib/api.py b/openquake/risklib/api.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/api.py
+++ b/openquake/risklib/api.py
@@ -85,7 +85,7 @@ class ProbabilisticEventBased(object):
self.curve_resolution = curve_resolution
def __call__(self, ground_motion_fields):
- ... | allow ground motion fields to be numpy array | py |
diff --git a/pypeerassets/protocol.py b/pypeerassets/protocol.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/protocol.py
+++ b/pypeerassets/protocol.py
@@ -145,6 +145,12 @@ class Deck:
return self.__dict__
+ @classmethod
+ def from_json(cls, json: dict):
+ '''load the Deck object from json'... | from_json method for the Deck object | py |
diff --git a/emma2/msm/analysis/api_test.py b/emma2/msm/analysis/api_test.py
index <HASH>..<HASH> 100644
--- a/emma2/msm/analysis/api_test.py
+++ b/emma2/msm/analysis/api_test.py
@@ -7,10 +7,15 @@ import unittest
import emma2.msm.analysis.api as api
import numpy as np
+from unittest.case import SkipTest
class Te... | [msm/analysis/api_test] skip TPT test, if stallone is not available | py |
diff --git a/numina/array/distortion.py b/numina/array/distortion.py
index <HASH>..<HASH> 100644
--- a/numina/array/distortion.py
+++ b/numina/array/distortion.py
@@ -128,8 +128,8 @@ def compute_distortion(x_orig, y_orig, x_rect, y_rect, order, debugplot):
raise ValueError("Invalid order=" + str(order))
p... | Define cut-off behavior to avoid a numpy FutureWarning | py |
diff --git a/scapy.py b/scapy.py
index <HASH>..<HASH> 100755
--- a/scapy.py
+++ b/scapy.py
@@ -9524,8 +9524,10 @@ bind_layers( PrismHeader, Dot11, )
bind_layers( RadioTap, Dot11, )
bind_layers( Dot11, LLC, type=2)
bind_layers( Dot11QoS, LLC, )
+bind_layers( L2T... | Added some layer bonds for PPP | py |
diff --git a/razorpay/utility/utility.py b/razorpay/utility/utility.py
index <HASH>..<HASH> 100644
--- a/razorpay/utility/utility.py
+++ b/razorpay/utility/utility.py
@@ -28,6 +28,4 @@ class Utility(object):
generated_signature = dig.hexdigest()
if not hmac.compare_digest(generated_signature, razorp... | [verify signature] verify payment signature returns null but throws exception on failure to match the signatures | py |
diff --git a/ipcalc.py b/ipcalc.py
index <HASH>..<HASH> 100644
--- a/ipcalc.py
+++ b/ipcalc.py
@@ -337,6 +337,20 @@ class IP(object):
'''
return self.dq
+ def __repr__(self):
+ '''
+ Return canonical representation of the IP.
+
+ >>> ip = IP("::1")
+ >>> print repr(ip)... | Add __repr__ for easier reading of printed IPs. | py |
diff --git a/vimball/__init__.py b/vimball/__init__.py
index <HASH>..<HASH> 100644
--- a/vimball/__init__.py
+++ b/vimball/__init__.py
@@ -153,9 +153,9 @@ def main():
help='list files in a vimball archive')
args = parser.parse_args()
- vimball = Vimball(args.archive[0])
try:
+ vimball =... | make sure Vimball instance creation is exception wrapped too | py |
diff --git a/plotnine/geoms/geom_point.py b/plotnine/geoms/geom_point.py
index <HASH>..<HASH> 100644
--- a/plotnine/geoms/geom_point.py
+++ b/plotnine/geoms/geom_point.py
@@ -24,6 +24,12 @@ class geom_point(geom):
DEFAULT_PARAMS = {'stat': 'identity', 'position': 'identity',
'na_rm': False}
... | ENH: Do not group by panel when drawing geom_point closes #<I> | py |
diff --git a/wpull/ftp/ls/date_test.py b/wpull/ftp/ls/date_test.py
index <HASH>..<HASH> 100644
--- a/wpull/ftp/ls/date_test.py
+++ b/wpull/ftp/ls/date_test.py
@@ -5,16 +5,22 @@ from wpull.ftp.ls.date import parse_datetime
class TestDate(unittest.TestCase):
def test_parse_datetime(self):
- datetime_now = ... | ftp.ls.date_test: Fix new year before feb test. | py |
diff --git a/salesforce/auth.py b/salesforce/auth.py
index <HASH>..<HASH> 100644
--- a/salesforce/auth.py
+++ b/salesforce/auth.py
@@ -51,7 +51,7 @@ def authenticate(settings_dict=dict()):
client_secret = settings_dict['CONSUMER_SECRET'],
username = settings_dict['USER'],
password = settings_dict['PASSWOR... | added content type to oauth request | py |
diff --git a/bxml/xml.py b/bxml/xml.py
index <HASH>..<HASH> 100644
--- a/bxml/xml.py
+++ b/bxml/xml.py
@@ -216,8 +216,8 @@ class XML(File):
return self.__str__()
def digest(self, **args):
- """calculate a digest based on the hash of the article's content"""
- return String(self.canonic... | bugfix in XML.digest() – it was just hashing the repr of the method, yikes! | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ setup(
long_description=_get_description(),
long_description_content_type="text/markdown",
install_requires=["Django>=1.11,<2.3", "psycopg2-binary"],
- extras_require={"development": ["python-c... | python-coveralls --> coveralls | py |
diff --git a/wakeonlan.py b/wakeonlan.py
index <HASH>..<HASH> 100644
--- a/wakeonlan.py
+++ b/wakeonlan.py
@@ -108,8 +108,8 @@ if __name__ == "__main__":
elif i is len(args) - 1:
mac_address = args[i]
else:
- sys.exit(help_message)
+ sys.exit(help_message % args[0])
... | help message %s is now shown as args[0] | py |
diff --git a/src/guake/gconfhandler.py b/src/guake/gconfhandler.py
index <HASH>..<HASH> 100644
--- a/src/guake/gconfhandler.py
+++ b/src/guake/gconfhandler.py
@@ -222,6 +222,7 @@ class GConfHandler(object):
if font_name is None:
# Back to gconf
font_name = client.get_strin... | ensure process is kill (fix #<I>) | py |
diff --git a/faker/providers/en_CA/address.py b/faker/providers/en_CA/address.py
index <HASH>..<HASH> 100644
--- a/faker/providers/en_CA/address.py
+++ b/faker/providers/en_CA/address.py
@@ -48,7 +48,7 @@ class Provider(AddressProvider):
'View', 'Views', 'Village', 'Village', 'Villages', 'Ville', 'Vista', 'Vis... | Update address.py According to Canada Post's website, only the format '?%? %?%' is valid. '?%?%?%' might be acceptable for testing but '?%?-%?%' isn't a case for valid data. <URL> | py |
diff --git a/benchexec/outputhandler.py b/benchexec/outputhandler.py
index <HASH>..<HASH> 100644
--- a/benchexec/outputhandler.py
+++ b/benchexec/outputhandler.py
@@ -68,7 +68,7 @@ if sys.stdout.isatty():
elif _term.startswith("screen"):
TERMINAL_TITLE = "\033kTask {0}\033\\"
-LEN_OF_STATUS = 22
+LEN_OF... | Increase width of status column in stdout of benchexec. Our status texts got longer in the last years, so it is time to increase the column width. The text `false(valid-memcleanup)` has `<I>` chars which is already larger than the existing limit of `<I>`. For an example table, you can take a look at <URL> | py |
diff --git a/xdot/ui/window.py b/xdot/ui/window.py
index <HASH>..<HASH> 100644
--- a/xdot/ui/window.py
+++ b/xdot/ui/window.py
@@ -725,7 +725,7 @@ class DotWindow(Gtk.Window):
def on_open(self, action):
chooser = Gtk.FileChooserDialog(parent=self,
- title="Open dot... | Support gv extensions in file chooser The project switched to that since *.dot is taken by Microsoft Word: <URL> | py |
diff --git a/bin/qds.py b/bin/qds.py
index <HASH>..<HASH> 100755
--- a/bin/qds.py
+++ b/bin/qds.py
@@ -17,6 +17,15 @@ import json
from optparse import OptionParser
log = logging.getLogger("qds")
+CommandClasses = {
+ "hive": "HiveCommand",
+ "pig": "PigCommand",
+ "hadoop": "HadoopCommand",
+ "shell": ... | Use a map to figure out class of the command | py |
diff --git a/scripts/shopify_api.py b/scripts/shopify_api.py
index <HASH>..<HASH> 100755
--- a/scripts/shopify_api.py
+++ b/scripts/shopify_api.py
@@ -7,6 +7,7 @@ import os
import os.path
import glob
import subprocess
+import functools
import yaml
import six
@@ -66,7 +67,7 @@ class TasksMeta(type):
... | Use reduce in functools module for python 3 compatibility. | py |
diff --git a/pecan/middleware/debug.py b/pecan/middleware/debug.py
index <HASH>..<HASH> 100644
--- a/pecan/middleware/debug.py
+++ b/pecan/middleware/debug.py
@@ -24,6 +24,7 @@ try:
except ImportError:
+ import logging
from traceback import print_exc
from pprint import pformat
@@ -32,6 +33,8 @@ exce... | Pecan's basic debug middleware should log exceptions at ERROR level. | py |
diff --git a/qa_tests/hazard/disagg/case_1/test.py b/qa_tests/hazard/disagg/case_1/test.py
index <HASH>..<HASH> 100644
--- a/qa_tests/hazard/disagg/case_1/test.py
+++ b/qa_tests/hazard/disagg/case_1/test.py
@@ -54,7 +54,7 @@ class DisaggHazardCase1TestCase(qa_utils.BaseQATestCase):
aaae(test_data.RLZ_1_POE_01_... | qa_tests/hazard/disagg/case_1/test: Fixed a minor pep8 whitespace issue. Former-commit-id: bb6a<I>d5d1d6c<I>c<I>aa1c<I>b6e<I>a<I> | py |
diff --git a/django_extensions/management/commands/unreferenced_files.py b/django_extensions/management/commands/unreferenced_files.py
index <HASH>..<HASH> 100644
--- a/django_extensions/management/commands/unreferenced_files.py
+++ b/django_extensions/management/commands/unreferenced_files.py
@@ -33,7 +33,7 @@ class C... | fix python3 compatibility of unreferenced_files dict.iterkeys() does not exist in python 3. Replacing iterkeys() with ` for key in dictionary: pass ` is both pythonic and cross version compatible | py |
diff --git a/ask-sdk-core/ask_sdk_core/view_resolvers/locale_template_enumerator.py b/ask-sdk-core/ask_sdk_core/view_resolvers/locale_template_enumerator.py
index <HASH>..<HASH> 100644
--- a/ask-sdk-core/ask_sdk_core/view_resolvers/locale_template_enumerator.py
+++ b/ask-sdk-core/ask_sdk_core/view_resolvers/locale_temp... | fix: added "#type:ignore" on files causing issues due to lastest mypy version update (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
from setuptools import setup
from rejected import __version__
+import os
import sys
classifiers = ['Development Status :: 5 - Production/Stable',
@@ -22,6 +23,9 @@ extras_require = {'html': ['beautifulsoup4'... | Install a pinned version of pyev due to build errors on rtd | py |
diff --git a/script/lib/config.py b/script/lib/config.py
index <HASH>..<HASH> 100644
--- a/script/lib/config.py
+++ b/script/lib/config.py
@@ -8,7 +8,7 @@ import sys
BASE_URL = os.getenv('LIBCHROMIUMCONTENT_MIRROR') or \
'http://gh-contractor-zcbenz.s3.amazonaws.com/libchromiumcontent'
-LIBCHROMIUMCONTENT_COMMI... | Update libchromiumcontent to have WebScopedRunV8Script | py |
diff --git a/src/hamster/storage/db.py b/src/hamster/storage/db.py
index <HASH>..<HASH> 100644
--- a/src/hamster/storage/db.py
+++ b/src/hamster/storage/db.py
@@ -206,7 +206,7 @@ class Storage(storage.Storage):
gone = self.fetchall(query, tags)
to_delete = [str(tag["id"]) for tag in gone if tag["occ... | fix bug preventing removal of autocompletion tags (#<I>) | py |
diff --git a/storops/unity/resource/host.py b/storops/unity/resource/host.py
index <HASH>..<HASH> 100644
--- a/storops/unity/resource/host.py
+++ b/storops/unity/resource/host.py
@@ -261,6 +261,20 @@ class UnityHost(UnityResource):
# but not when attaching snap.
from storops.unity.resource.lun import ... | Unity: To better handler concurrent lun attach (#<I>) | py |
diff --git a/make_cffi.py b/make_cffi.py
index <HASH>..<HASH> 100644
--- a/make_cffi.py
+++ b/make_cffi.py
@@ -115,6 +115,15 @@ def preprocess(path):
):
continue
+ # The preprocessor environment on Windows doesn't define include
+ # paths, so the #include of limits.... | cffi: work around limits.h not being found on Windows See the inline comment for details. This is hacky and I'm not proud of this. But since we don't expose the constant where INT_MAX is used to Python (yet), there is no harm to doing this. | py |
diff --git a/AWSScout2/utils.py b/AWSScout2/utils.py
index <HASH>..<HASH> 100644
--- a/AWSScout2/utils.py
+++ b/AWSScout2/utils.py
@@ -249,7 +249,7 @@ def save_config_to_file(blob, keyword, force_write):
pass
def write_data_to_file(f, blob, force_write):
- print('%s' % json.dumps(blob, indent=4, separato... | Do not indent json by default | py |
diff --git a/salt/states/mysql_grants.py b/salt/states/mysql_grants.py
index <HASH>..<HASH> 100644
--- a/salt/states/mysql_grants.py
+++ b/salt/states/mysql_grants.py
@@ -140,7 +140,7 @@ def present(name,
host=host,
grant_option=grant_option,
escape=escape,
- ... | more minor pylint fies | py |
diff --git a/blockstack_client/backend/queue.py b/blockstack_client/backend/queue.py
index <HASH>..<HASH> 100644
--- a/blockstack_client/backend/queue.py
+++ b/blockstack_client/backend/queue.py
@@ -317,7 +317,7 @@ def in_queue( queue_id, fqu, path=DEFAULT_QUEUE_PATH ):
def queue_append(queue_id, fqu, tx_hash, payment... | name data is a token file, not a profile | py |
diff --git a/htmresearch/support/column_pooler_mixin.py b/htmresearch/support/column_pooler_mixin.py
index <HASH>..<HASH> 100644
--- a/htmresearch/support/column_pooler_mixin.py
+++ b/htmresearch/support/column_pooler_mixin.py
@@ -122,11 +122,12 @@ class ColumnPoolerMonitorMixin(MonitorMixinBase):
def compute(self,
... | Fix the ColumnPoolerMixin to match a ColumnPooler change | py |
diff --git a/pyOCD/flash/flash.py b/pyOCD/flash/flash.py
index <HASH>..<HASH> 100644
--- a/pyOCD/flash/flash.py
+++ b/pyOCD/flash/flash.py
@@ -80,7 +80,7 @@ class Flash(object):
self.target.writeBlockMemoryUnaligned8(self.begin_data, bytes)
# update core register to execute the program_page subrouti... | [Flash] Revert - length of array in programPage(), which broke K<I>F support | py |
diff --git a/jaraco/test/services.py b/jaraco/test/services.py
index <HASH>..<HASH> 100644
--- a/jaraco/test/services.py
+++ b/jaraco/test/services.py
@@ -374,7 +374,7 @@ class MongoDBInstance(MongoDBFinder, Subprocess, Service):
if hasattr(self, 'bind_ip'):
cmd.extend(['--bind_ip', self.bind_ip])... | Bump timeout on MongoDBInstance socket bind. | py |
diff --git a/great_expectations/datasource/pandas_source.py b/great_expectations/datasource/pandas_source.py
index <HASH>..<HASH> 100644
--- a/great_expectations/datasource/pandas_source.py
+++ b/great_expectations/datasource/pandas_source.py
@@ -2,7 +2,8 @@ import time
import hashlib
import logging
-from builtins ... | Switch from str to string_types. | py |
diff --git a/remi/gui.py b/remi/gui.py
index <HASH>..<HASH> 100644
--- a/remi/gui.py
+++ b/remi/gui.py
@@ -533,6 +533,24 @@ class Widget(Tag):
"event.stopPropagation();event.preventDefault();" % (self.identifier, self.EVENT_ONCLICK)
self.eventManager.register_listener(self.EVENT_ONCLICK, callback,... | added support for double click callbacks | py |
diff --git a/carousel/tests/test_data.py b/carousel/tests/test_data.py
index <HASH>..<HASH> 100644
--- a/carousel/tests/test_data.py
+++ b/carousel/tests/test_data.py
@@ -161,16 +161,17 @@ def test_xlrdreader_datasource():
"""
Test data source with xlrd reader and params in file.
"""
- ... | update test_data with Meta * add Meta to DataSoureTest3 with xlrd reader * use _meta to get data_reader from same test | py |
diff --git a/neuropythy/util/conf.py b/neuropythy/util/conf.py
index <HASH>..<HASH> 100644
--- a/neuropythy/util/conf.py
+++ b/neuropythy/util/conf.py
@@ -46,6 +46,8 @@ class ConfigMeta(type):
return cls._len(cls)
def __iter__(cls):
return cls._iter(cls)
+ def __repr__(cls):
+ return 'c... | config now prints like a dictionary | py |
diff --git a/test/test_util_functions.py b/test/test_util_functions.py
index <HASH>..<HASH> 100644
--- a/test/test_util_functions.py
+++ b/test/test_util_functions.py
@@ -252,9 +252,14 @@ def test_check_argument_list3():
args = [numpy.ushort(42), numpy.float16([3, 4, 6]), numpy.int32(300)]
try:
check... | Improved the handling of the test results. | py |
diff --git a/fabfile.py b/fabfile.py
index <HASH>..<HASH> 100644
--- a/fabfile.py
+++ b/fabfile.py
@@ -405,6 +405,7 @@ def get_configuration(name):
'supportsSSH': True,
'useForDevelopment': False,
'hasDrush': False,
+ 'needsComposer': False,
'ignoreSubmodules': False,
'supportsBa... | Add support for composer-based deployments. | py |
diff --git a/astroplan/constraints.py b/astroplan/constraints.py
index <HASH>..<HASH> 100644
--- a/astroplan/constraints.py
+++ b/astroplan/constraints.py
@@ -604,11 +604,9 @@ def months_observable(constraints, observer, targets,
observable, one set per target. These integers are 1-based so that
Janua... | move To do secition to TODO comment | py |
diff --git a/hep/fields/bd90x99x.py b/hep/fields/bd90x99x.py
index <HASH>..<HASH> 100644
--- a/hep/fields/bd90x99x.py
+++ b/hep/fields/bd90x99x.py
@@ -58,7 +58,7 @@ def references(self, key, value):
mapping = [
('o', rb.set_number),
('m', rb.add_misc),
- ('x', rb.add_raw_re... | schema: small reference.json schema refactoring * Stands as an example for changing a schema using builders. | py |
diff --git a/tornado/httpserver.py b/tornado/httpserver.py
index <HASH>..<HASH> 100644
--- a/tornado/httpserver.py
+++ b/tornado/httpserver.py
@@ -186,6 +186,10 @@ class HTTPServer(object):
io_loop.add_handler(self._socket.fileno(), self._handle_events,
ioloop.IOLoop.READ)
... | Added the ability to stop an HTTPServer. Mostly for unittesting. | py |
diff --git a/lib/search_engine.py b/lib/search_engine.py
index <HASH>..<HASH> 100644
--- a/lib/search_engine.py
+++ b/lib/search_engine.py
@@ -1778,10 +1778,17 @@ def create_nearest_terms_box(urlargd, p, f, t='w', n=5, ln=cdslang, intro_text_p
argd.update(urlargd)
# check which fields contained the ... | Fixed nearest terms link creation problem introduced by commit <I>. Reverting to the old behaviour of basically substring pattern replacement, which makes the nearest terms links work again for queries such as ``author:ellis'', or complex queries such as ``author:ellisz AND title:ellisz'' inside ``abstract'' index. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -111,13 +111,12 @@ setuptools.setup(
'apache-libcloud>=1.3.0',
'boto3>=1.4.1',
'docker-py>=1.10.6',
- # Ansible container wants a specific version of Docker compose
+ # Ansible container req... | Hardcode requests version for ansible-container | py |
diff --git a/salt/modules/dnsutil.py b/salt/modules/dnsutil.py
index <HASH>..<HASH> 100644
--- a/salt/modules/dnsutil.py
+++ b/salt/modules/dnsutil.py
@@ -56,8 +56,8 @@ def parse_zone(zonefile=None, zone=None):
try:
with salt.utils.fopen(zonefile, 'r') as fp_:
zone = fp_.read()
- ... | fix incorrect indentation on except clause | py |
diff --git a/openquake/commonlib/tests/oqvalidation_test.py b/openquake/commonlib/tests/oqvalidation_test.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/tests/oqvalidation_test.py
+++ b/openquake/commonlib/tests/oqvalidation_test.py
@@ -41,7 +41,7 @@ GST = {'gsim_logic_tree': writetmp('''\
</nrml>'''),
... | Improved a comment [skip CI] | py |
diff --git a/lib/websearch_webcoll.py b/lib/websearch_webcoll.py
index <HASH>..<HASH> 100644
--- a/lib/websearch_webcoll.py
+++ b/lib/websearch_webcoll.py
@@ -726,9 +726,9 @@ class Collection:
# (note: explicitly remove DELETED records)
if CFG_CERN_SITE:
reclist = search_p... | WebSearch: better detection of deleted records * webcoll now uses MARC tag <I> to detect deleted records instead of using the `collection' index, because this latter one was emptied in case of deleted records by bibindex, leading to a kind of Catch-<I> situation between bibindex emptying the index and webcoll re... | py |
diff --git a/openhtf/output/callbacks/mfg_inspector.py b/openhtf/output/callbacks/mfg_inspector.py
index <HASH>..<HASH> 100644
--- a/openhtf/output/callbacks/mfg_inspector.py
+++ b/openhtf/output/callbacks/mfg_inspector.py
@@ -33,6 +33,10 @@ import numbers
import os
import threading
import zlib
+try:
+ from past.ty... | Fix compatibility regression in inspector output module. (#<I>) * Fix compatibility regression in inspector output module. * Explicit version-specific branching. * Better Python3 compatibility approach. * Remove extraneous sys import. | py |
diff --git a/pyrabbit/http.py b/pyrabbit/http.py
index <HASH>..<HASH> 100644
--- a/pyrabbit/http.py
+++ b/pyrabbit/http.py
@@ -53,7 +53,7 @@ class HTTPClient(object):
"""
- def __init__(self, server, uname, passwd, timeout=5):
+ def __init__(self, server, uname, passwd, timeout=5, scheme='http'):
... | Added scheme to HTTPClient constructor | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -130,17 +130,6 @@ class GrequestsCase(unittest.TestCase):
self.assertTrue(responses[1].ok)
self.assertEqual(len(responses), 2)
- def test_map_timeout_exception_handler_returns_false(self):
- """
-... | Remove failing test Remove test_map_timeout_exception_handler_returns_false() test. The functionality for this was removed in <URL> | py |
diff --git a/py/doc/conftest.py b/py/doc/conftest.py
index <HASH>..<HASH> 100644
--- a/py/doc/conftest.py
+++ b/py/doc/conftest.py
@@ -35,7 +35,8 @@ def get_docpath():
return pypkgdir.join(path, abs=True)
def get_apigen_relpath():
- return relpath(get_apigenpath().strpath, get_docpath().strpath)
+ return ... | [svn r<I>] Fixed api and source link role relative paths. --HG-- branch : trunk | py |
diff --git a/suds/sax/document.py b/suds/sax/document.py
index <HASH>..<HASH> 100644
--- a/suds/sax/document.py
+++ b/suds/sax/document.py
@@ -34,24 +34,43 @@ class Document(Element):
Element.__init__(self, 'document')
if root is not None:
self.append(root)
-
+
def root(self)... | Handle str() and plain() when document root is (None). | py |
diff --git a/s3conf/version.py b/s3conf/version.py
index <HASH>..<HASH> 100644
--- a/s3conf/version.py
+++ b/s3conf/version.py
@@ -9,7 +9,7 @@ def get_version(repo_path=None):
repo_path = os.path.abspath(repo_path or os.path.dirname(os.path.dirname(__file__)))
if os.path.isdir(os.path.join(repo_path, '.git'))... | avoiding error when tags are not present | py |
diff --git a/FtpLibrary.py b/FtpLibrary.py
index <HASH>..<HASH> 100644
--- a/FtpLibrary.py
+++ b/FtpLibrary.py
@@ -152,6 +152,7 @@ To run library remotely execute: python FtpLibrary.py <ipaddress> <portnumber>
else:
newFtp = None
outputMsg = ""
+ connected = False
... | - fixed closing the connection if login fails (otherwise connection is left open) | py |
diff --git a/cloudshell/networking/networking_resource_driver_interface.py b/cloudshell/networking/networking_resource_driver_interface.py
index <HASH>..<HASH> 100644
--- a/cloudshell/networking/networking_resource_driver_interface.py
+++ b/cloudshell/networking/networking_resource_driver_interface.py
@@ -18,14 +18,6 @... | Modify networking resource driver interface according to the latest networking standard | py |
diff --git a/easy_thumbnails/files.py b/easy_thumbnails/files.py
index <HASH>..<HASH> 100644
--- a/easy_thumbnails/files.py
+++ b/easy_thumbnails/files.py
@@ -276,8 +276,10 @@ class Thumbnailer(File):
# Try to use the local file modification times first.
source_modtime = self.get_source_modtime()
... | Fix a bug with local file systems not always recreating a missing thumbnails. | py |
diff --git a/hpOneView/servers.py b/hpOneView/servers.py
index <HASH>..<HASH> 100644
--- a/hpOneView/servers.py
+++ b/hpOneView/servers.py
@@ -424,12 +424,12 @@ class servers(object):
tout = 3600
except Exception:
tout = 600
- # Update the task to get the associated res... | Small fix in: update_server_profile_from_template, there was a wrong indentation, putting logic wrongly in exception handling scope. | py |
diff --git a/phy/cluster/supervisor.py b/phy/cluster/supervisor.py
index <HASH>..<HASH> 100644
--- a/phy/cluster/supervisor.py
+++ b/phy/cluster/supervisor.py
@@ -842,6 +842,7 @@ class Supervisor(object):
emit('select', self, self.selected, **kwargs)
if cluster_ids:
self.cluster_view.... | The cluster and similarity views set their status text in the dock title bar | py |
diff --git a/hebel/layers/logistic_layer.py b/hebel/layers/logistic_layer.py
index <HASH>..<HASH> 100644
--- a/hebel/layers/logistic_layer.py
+++ b/hebel/layers/logistic_layer.py
@@ -214,20 +214,17 @@ class LogisticLayer(TopLayer):
delta = self.get_temp_object('delta',
activations.shape, activ... | Speedups in logistic_layer.py | py |
diff --git a/src/poyo/patterns.py b/src/poyo/patterns.py
index <HASH>..<HASH> 100644
--- a/src/poyo/patterns.py
+++ b/src/poyo/patterns.py
@@ -4,7 +4,7 @@ import re
_INDENT = r"(?P<indent>^ *)"
_INDENT_MATCH = r"(?P=indent)"
-_VAR = r"(?P<variable>.+?):"
+_VAR = r"(?P<variable>.+?)\s*:"
_VALUE = r"(?P<value>(?:(?P... | Update pattern for variables to account for trailing whitespace | py |
diff --git a/nose/test_coords.py b/nose/test_coords.py
index <HASH>..<HASH> 100644
--- a/nose/test_coords.py
+++ b/nose/test_coords.py
@@ -184,3 +184,11 @@ def test_XYZ_to_galcenrect():
assert numpy.fabs(gcXYZ[1]-3.) < 10.**-10., 'XYZ_to_galcenrect conversion did not work as expected'
assert numpy.fabs(gcXYZ[... | test galcenrect_to_XYZ | py |
diff --git a/tests/test_issues/test_diseases.py b/tests/test_issues/test_diseases.py
index <HASH>..<HASH> 100644
--- a/tests/test_issues/test_diseases.py
+++ b/tests/test_issues/test_diseases.py
@@ -13,9 +13,8 @@ class WikiDiseasesTestCase(WikiDataTestCase):
def test_diseases(self):
test_data_base = os.pa... | Remove note about entry #9 The issue is actually that wikidata is throttling us -- hangs will be random | py |
diff --git a/flask_restful/reqparse.py b/flask_restful/reqparse.py
index <HASH>..<HASH> 100644
--- a/flask_restful/reqparse.py
+++ b/flask_restful/reqparse.py
@@ -1,5 +1,5 @@
from flask import request
-from werkzeug.datastructures import MultiDict
+from werkzeug.datastructures import MultiDict, FileStorage
import fla... | Fix attributes of FileStorage being deleted even if type is FileStorage - Don't call .lower() and convert() if type is FileStorage | py |
diff --git a/tests/scripts/examples/sql_coverage/config.py b/tests/scripts/examples/sql_coverage/config.py
index <HASH>..<HASH> 100644
--- a/tests/scripts/examples/sql_coverage/config.py
+++ b/tests/scripts/examples/sql_coverage/config.py
@@ -77,7 +77,7 @@
"ddl": "DDL.sql",
... | config.py: lowered the 'precision' for the numeric-decimals to 9, since it occasionally fails with <I>, due to round-off errors. | py |
diff --git a/plyfile.py b/plyfile.py
index <HASH>..<HASH> 100644
--- a/plyfile.py
+++ b/plyfile.py
@@ -990,7 +990,11 @@ def _read_array(stream, dtype, n):
def _write_array(stream, array):
- stream.write(array.tostring())
+ # ndarray.tostring is deprecated since numpy 1.19.0
+ try:
+ stream.write(ar... | Transition from ndarray.tostring to ndarray.tobytes | py |
diff --git a/werkzeug/http.py b/werkzeug/http.py
index <HASH>..<HASH> 100644
--- a/werkzeug/http.py
+++ b/werkzeug/http.py
@@ -537,9 +537,19 @@ class Authorization(dict):
The opaque header from the server returned unchanged by the client.
It is recommended that this string be base64 or hexadecimal dat... | quo on Authorize is now a header set | py |
diff --git a/fireplace/game.py b/fireplace/game.py
index <HASH>..<HASH> 100644
--- a/fireplace/game.py
+++ b/fireplace/game.py
@@ -4,7 +4,7 @@ from itertools import chain
from .actions import Attack, BeginTurn, Deaths, EndTurn
from .card import Card, THE_COIN
from .entity import Entity
-from .enums import CardType, ... | Drop the old Game.action() logic | py |
diff --git a/tornado/websocket.py b/tornado/websocket.py
index <HASH>..<HASH> 100644
--- a/tornado/websocket.py
+++ b/tornado/websocket.py
@@ -164,9 +164,13 @@ class WebSocketHandler(tornado.web.RequestHandler):
origin = parsed_origin.netloc
origin = origin.lower()
+ # When origin is ... | Move nil origin check out to execute | py |
diff --git a/googleanalytics/query.py b/googleanalytics/query.py
index <HASH>..<HASH> 100644
--- a/googleanalytics/query.py
+++ b/googleanalytics/query.py
@@ -835,11 +835,9 @@ class CoreQuery(Query):
self.raw['segment'] = utils.paste(segments, ',', ';')
return self
- @utils.immutable
def use... | Fix users and sessions segmentation shortcut methods. | py |
diff --git a/psamm/tests/test_command.py b/psamm/tests/test_command.py
index <HASH>..<HASH> 100644
--- a/psamm/tests/test_command.py
+++ b/psamm/tests/test_command.py
@@ -78,6 +78,16 @@ class TestCommandMain(unittest.TestCase):
def tearDown(self):
shutil.rmtree(self._model_dir)
+ def test_invoke_vers... | command: Test that main can be invoked with --version | py |
diff --git a/xdot.py b/xdot.py
index <HASH>..<HASH> 100755
--- a/xdot.py
+++ b/xdot.py
@@ -623,7 +623,7 @@ class XDotAttrParser:
r, g, b = colorsys.hsv_to_rgb(h, s, v)
a = 1.0
return r, g, b, a
- elif c1 == "[":
+ elif c1 == "[" or c1 == "(":
sys.stderr.... | Don't choke on radial color gradients. | py |
diff --git a/openquake/engine/engine.py b/openquake/engine/engine.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/engine.py
+++ b/openquake/engine/engine.py
@@ -404,7 +404,9 @@ def check_obsolete_version(calculation_mode='WebUI'):
if __name__ == '__main__':
+ from openquake.server import dbserver
# r... | Started the dbserver [ci skip] | py |
diff --git a/tests/test_scheduler.py b/tests/test_scheduler.py
index <HASH>..<HASH> 100644
--- a/tests/test_scheduler.py
+++ b/tests/test_scheduler.py
@@ -42,7 +42,7 @@ class ScheduleTestCase(StateClearingTestCase):
assert l == [1, 2, 3, 4, 5], l
def test_schedule_at(self):
- at = time.time() + T... | timeout wasn't enough with a few processes running | py |
diff --git a/mesa.py b/mesa.py
index <HASH>..<HASH> 100644
--- a/mesa.py
+++ b/mesa.py
@@ -3799,7 +3799,7 @@ def _cleanstarlog(file_in):
for j in nbremove:
lignes.remove(lignes[j])
- fout=file(file_out,'w')
+ fout = open(file_out,'w')
for j in np.arange(len(lignes)):
fout.write(ligne... | change from `file` to `open` statement this should also improve python3 compatibility | py |
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py
index <HASH>..<HASH> 100644
--- a/discord/ext/commands/bot.py
+++ b/discord/ext/commands/bot.py
@@ -49,6 +49,9 @@ def _get_variable(name):
def when_mentioned(bot, msg):
"""A callable that implements a command prefix equivalent
to being me... | [commands] Fix when_mentioned when handling nicknames. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.