diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/pyqode/cobol/modes/doc_outline.py b/pyqode/cobol/modes/doc_outline.py
index <HASH>..<HASH> 100644
--- a/pyqode/cobol/modes/doc_outline.py
+++ b/pyqode/cobol/modes/doc_outline.py
@@ -53,10 +53,10 @@ class DocumentOutlineMode(QObject, Mode):
Called when the mode is activated/deactivated
"""... | Improve outline, parse as soon as a new text is set on the editor, avoid <I> ms delay | py |
diff --git a/htdocs/api/v1/alert-dbapi.py b/htdocs/api/v1/alert-dbapi.py
index <HASH>..<HASH> 100755
--- a/htdocs/api/v1/alert-dbapi.py
+++ b/htdocs/api/v1/alert-dbapi.py
@@ -21,7 +21,7 @@ import logging
import pytz
import re
-__version__ = '1.9.5'
+__version__ = '1.9.6'
BROKER_LIST = [('localhost', 61613)] # l... | Wrong brackets in regex | py |
diff --git a/superset/translations/utils.py b/superset/translations/utils.py
index <HASH>..<HASH> 100644
--- a/superset/translations/utils.py
+++ b/superset/translations/utils.py
@@ -36,7 +36,7 @@ def get_language_pack(locale):
if not pack:
filename = DIR + "/{}/LC_MESSAGES/messages.json".format(locale)
... | [fix]some translation not work better (#<I>) | py |
diff --git a/start_jupyter_cm/windows.py b/start_jupyter_cm/windows.py
index <HASH>..<HASH> 100755
--- a/start_jupyter_cm/windows.py
+++ b/start_jupyter_cm/windows.py
@@ -70,7 +70,7 @@ def add_jupyter_here():
script = os.path.join(
sys.prefix, 'Scripts', "jupyter-%s.exe" % env)
- ... | Fix failure when opening notebook on path with spaces | py |
diff --git a/tests/runtests.py b/tests/runtests.py
index <HASH>..<HASH> 100755
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -288,6 +288,10 @@ def parse_opts():
logging.root.setLevel(logging.DEBUG)
print_header('Logging tests on {0}'.format(logfile), bottom=False)
+ print_header(
+ 'Test suit... | Show us the pid for which the test suite is running under. | py |
diff --git a/examples/ale.py b/examples/ale.py
index <HASH>..<HASH> 100644
--- a/examples/ale.py
+++ b/examples/ale.py
@@ -120,7 +120,7 @@ def main():
return True
logger.info("Starting {agent} for Environment '{env}'".format(agent=agent, env=environment))
- runner.run(args.episodes, args.max_timestep... | Timesteps and episodes arguments to Runner.run were transposed which could lead to early exits. Swithing to named arguments eliminates the possibility of confusion. | py |
diff --git a/tasks/constants.py b/tasks/constants.py
index <HASH>..<HASH> 100644
--- a/tasks/constants.py
+++ b/tasks/constants.py
@@ -124,5 +124,6 @@ AGENT_V5_ONLY = [
TESTABLE_FILE_EXTENSIONS = (
'.py',
'.ini',
+ '.in',
'.txt',
) | test pinned dep changes too (#<I>) | py |
diff --git a/tests/test_assets.py b/tests/test_assets.py
index <HASH>..<HASH> 100644
--- a/tests/test_assets.py
+++ b/tests/test_assets.py
@@ -69,10 +69,16 @@ def test_missing_parse():
def test_instance_condense():
+ class SubAsset(Asset):
+ pass
+
a1 = Asset('ppb/engine.py')
a2 = Asset('ppb/en... | test_assets: Test internizing with subclasses | py |
diff --git a/ospd/command/command.py b/ospd/command/command.py
index <HASH>..<HASH> 100644
--- a/ospd/command/command.py
+++ b/ospd/command/command.py
@@ -444,7 +444,7 @@ class StartScan(BaseCommand):
'scan_id': 'Optional UUID value to use as scan ID',
'parallel': 'Optional nummer of parallel target t... | Fix start_scan command. Do not allow to start a scan during initialization. | py |
diff --git a/examples/hello.py b/examples/hello.py
index <HASH>..<HASH> 100644
--- a/examples/hello.py
+++ b/examples/hello.py
@@ -6,10 +6,10 @@ class Root(object):
def __call__(self, name):
"""
- /hello -- 500
- /hello?name=Bob
- /hello POST name=bob
- /hello/Bob
+ ... | Updated docstring for the hello example; it uses __call__, not a child method. | py |
diff --git a/oct2py/matread.py b/oct2py/matread.py
index <HASH>..<HASH> 100644
--- a/oct2py/matread.py
+++ b/oct2py/matread.py
@@ -77,7 +77,7 @@ class MatRead(object):
data = loadmat(self.out_file)
except UnicodeDecodeError as e:
raise Oct2PyError(str(e))
- for key in data.k... | Avoid dictionary changing size in for loop in py3k | py |
diff --git a/instaloader.py b/instaloader.py
index <HASH>..<HASH> 100755
--- a/instaloader.py
+++ b/instaloader.py
@@ -919,13 +919,7 @@ class Instaloader:
if os.path.isfile(filename):
self._log(filename + ' already exists')
return None
- url_best = re.sub(r'/s([1-9][0-9]{2})x\1... | Removed modifying of profilepic url Since Instagram does not allow anymore to download pics without a valid signature given in the URL, Instaloader has to be content with a resolution for the profile pic that is provided in the JSON data. Closes #<I>. | py |
diff --git a/pysparkling/sql/casts.py b/pysparkling/sql/casts.py
index <HASH>..<HASH> 100644
--- a/pysparkling/sql/casts.py
+++ b/pysparkling/sql/casts.py
@@ -6,7 +6,8 @@ from functools import lru_cache
import pytz
from dateutil.tz import tzlocal
-from pysparkling.sql.types import TimestampType, DateType, StringTyp... | Implement a cast of nested types | py |
diff --git a/pyrogram/client/methods/decorators/on_user_status.py b/pyrogram/client/methods/decorators/on_user_status.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/methods/decorators/on_user_status.py
+++ b/pyrogram/client/methods/decorators/on_user_status.py
@@ -17,11 +17,12 @@
# along with Pyrogram. If not, ... | Update on_user_status decorator | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ from astropy_helpers.setup_helpers import register_commands, get_package_info
from astropy_helpers.version_helpers import generate_version_py
NAME = 'astropy_helpers'
-VERSION = '1.1rc2'
+VERSION = '1.1.dev'
... | Finishing <I>rc2 release | py |
diff --git a/git/remote.py b/git/remote.py
index <HASH>..<HASH> 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -185,8 +185,7 @@ class FetchInfo(object):
NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \
FAST_FORWARD, ERROR = [1 << x for x in range(8)]
- # ... | Allow "@" sign in fetch output lines | py |
diff --git a/src/wa_kat/settings.py b/src/wa_kat/settings.py
index <HASH>..<HASH> 100755
--- a/src/wa_kat/settings.py
+++ b/src/wa_kat/settings.py
@@ -49,7 +49,8 @@ WEB_DEBUG = False #: Turn on web debug messages?
WEB_RELOADER = False #: Turn on reloader for webserver?
WEB_BE_QUIET = False #: Be quiet and don't em... | settings.py: Added new variable CONSPECT_API_URL. | py |
diff --git a/uri/part/path.py b/uri/part/path.py
index <HASH>..<HASH> 100644
--- a/uri/part/path.py
+++ b/uri/part/path.py
@@ -23,10 +23,8 @@ class PathPart(ProxyPart):
return value
def __set__(self, obj, value):
- try:
- obj._trailing = str(value).endswith('/')
- except:
- obj._trailing = False
+ value ... | Removed unreachable code; let the explosions explode here if need be. | py |
diff --git a/warehouse/csp.py b/warehouse/csp.py
index <HASH>..<HASH> 100644
--- a/warehouse/csp.py
+++ b/warehouse/csp.py
@@ -22,8 +22,9 @@ def content_security_policy_tween_factory(handler, registry):
# We don't want to apply our Content Security Policy to the debug
# toolbar, that's not part of our... | added format to serialized csp policy | py |
diff --git a/rarfile.py b/rarfile.py
index <HASH>..<HASH> 100644
--- a/rarfile.py
+++ b/rarfile.py
@@ -1900,8 +1900,7 @@ def custom_popen(cmd):
p = Popen(cmd, bufsize = 0,
stdout = PIPE, stdin = PIPE, stderr = STDOUT,
creationflags = creationflags)
- except OSError:
- ... | No need for exc_info anymore. | py |
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -1420,8 +1420,12 @@ class PthDistributions(Environment):
def add(self,dist):
"""Add `dist` to the distribu... | fix develop --user for having '.' in PYTHON_PATH the pth file update wouldn't work if the distribution location is in the side dirs so we special-case for the location being the cwd --HG-- branch : distribute extra : rebase_source : 4c<I>c<I>f7f<I>fcdd<I>da5d<I>ef<I> | py |
diff --git a/tests/test_sampleset.py b/tests/test_sampleset.py
index <HASH>..<HASH> 100644
--- a/tests/test_sampleset.py
+++ b/tests/test_sampleset.py
@@ -217,8 +217,6 @@ class TestSampleSet(unittest.TestCase):
self.assertEqual(len(dimod.SampleSet.from_samples([], dimod.SPIN, energy=[], a=1)), 0)
- ... | Fix unittests for SampleSet A single empty dict is now treated as a sample with no variables. | py |
diff --git a/test/test_properties.py b/test/test_properties.py
index <HASH>..<HASH> 100755
--- a/test/test_properties.py
+++ b/test/test_properties.py
@@ -88,6 +88,18 @@ class TestIntegerProp(unittest.TestCase, PropertyTests):
self.assertEqual(p.pythonize("1000.33"), 1000)
+class TestFloatProp(unittest.Tes... | Add tests for FloatProps. | py |
diff --git a/backtrader/filters/renko.py b/backtrader/filters/renko.py
index <HASH>..<HASH> 100644
--- a/backtrader/filters/renko.py
+++ b/backtrader/filters/renko.py
@@ -54,6 +54,10 @@ class Renko(Filter):
- round it and remove the decimals -> 356
- 356 * 10.0 -> 3560
+ - ``roundstart`` (d... | Control whether the initial value for renko bricks is rounded or not, following PR#<I> | py |
diff --git a/tgext/mailer/__init__.py b/tgext/mailer/__init__.py
index <HASH>..<HASH> 100644
--- a/tgext/mailer/__init__.py
+++ b/tgext/mailer/__init__.py
@@ -9,8 +9,14 @@ def plugme(configurator, options=None):
from tg import hooks
from .plugmailer import SetupMailer, RequestMailerAppWrapper
- hooks.reg... | Initial support for TG<I> | py |
diff --git a/udata/__init__.py b/udata/__init__.py
index <HASH>..<HASH> 100644
--- a/udata/__init__.py
+++ b/udata/__init__.py
@@ -5,5 +5,5 @@ uData
'''
from __future__ import unicode_literals
-__version__ = '1.0.0.dev'
+__version__ = '1.1.0.dev'
__description__ = 'Open data portal' | Set base version to <I> (#<I>) | py |
diff --git a/ethereum/hybrid_casper/chain.py b/ethereum/hybrid_casper/chain.py
index <HASH>..<HASH> 100644
--- a/ethereum/hybrid_casper/chain.py
+++ b/ethereum/hybrid_casper/chain.py
@@ -191,7 +191,7 @@ class Chain(object):
self.checkpoint_head_hash = child.hash
else:
self.checkpoint_... | Rename change_head to reorganize_head_to() | py |
diff --git a/openevsewifi.py b/openevsewifi.py
index <HASH>..<HASH> 100644
--- a/openevsewifi.py
+++ b/openevsewifi.py
@@ -2,7 +2,6 @@ import urllib.request
import urllib.parse
import re
import datetime
-import pdb
_version = '0.1' | Removed unused pdb import | py |
diff --git a/heroku/models.py b/heroku/models.py
index <HASH>..<HASH> 100644
--- a/heroku/models.py
+++ b/heroku/models.py
@@ -315,7 +315,7 @@ class App(BaseResource):
)
# Grab the actual logs.
- r = requests.get(r.content, verify=False, prefetch=False)
+ r = requests.get(r.content, ve... | [#<I>] switch prefetch=False to stream=True for requests lib api change | py |
diff --git a/stomp/listener.py b/stomp/listener.py
index <HASH>..<HASH> 100755
--- a/stomp/listener.py
+++ b/stomp/listener.py
@@ -252,7 +252,6 @@ class HeartbeatListener(ConnectionListener):
log.warn("Heartbeat timeout: diff_receive=%s, time=%s, lastrec=%s", diff_receive, now, self.received_heartb... | removed running flag, this should be handled elsewhere | py |
diff --git a/AWSScout2/services/elbv2.py b/AWSScout2/services/elbv2.py
index <HASH>..<HASH> 100644
--- a/AWSScout2/services/elbv2.py
+++ b/AWSScout2/services/elbv2.py
@@ -38,7 +38,7 @@ class ELBv2RegionConfig(RegionConfig):
lb['arn'] = lb.pop('LoadBalancerArn')
lb['name'] = lb.pop('LoadBalancerName')
... | Fix fetching of ELBv2 | py |
diff --git a/ipyrad/analysis/baba.py b/ipyrad/analysis/baba.py
index <HASH>..<HASH> 100644
--- a/ipyrad/analysis/baba.py
+++ b/ipyrad/analysis/baba.py
@@ -415,7 +415,7 @@ def batch(
## store D4 results
if _res.shape[0] == 1:
- resarr... | Fix pd.as_matrix() call which is deprecated. | py |
diff --git a/contentstore/management/commands/tests/test_sync_schedules.py b/contentstore/management/commands/tests/test_sync_schedules.py
index <HASH>..<HASH> 100644
--- a/contentstore/management/commands/tests/test_sync_schedules.py
+++ b/contentstore/management/commands/tests/test_sync_schedules.py
@@ -1,4 +1,4 @@
-... | Use six for python 2/3 bytes | py |
diff --git a/serial_device/mqtt.py b/serial_device/mqtt.py
index <HASH>..<HASH> 100644
--- a/serial_device/mqtt.py
+++ b/serial_device/mqtt.py
@@ -140,13 +140,12 @@ class SerialDeviceManager(pmh.BaseMqttReactor):
Device name/port.
'''
if port not in self.open_devices:
- status ... | Remove 'connected' from status; closed=empty dict | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ setup(
name="drf-haystack",
version=get_version("drf_haystack"),
description="Makes Haystack play nice with Django REST Framework",
- long_description="Implements a ViewSet, some filters and se... | Updated Development Status to Production/Stable | py |
diff --git a/source/rafcon/core/states/state.py b/source/rafcon/core/states/state.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/core/states/state.py
+++ b/source/rafcon/core/states/state.py
@@ -964,7 +964,8 @@ class State(Observable, YAMLObject, JSONObject, Hashable):
for out_key in list(self.output_data_... | fix(state): Remove income only on existance | py |
diff --git a/tests/integration_test.py b/tests/integration_test.py
index <HASH>..<HASH> 100755
--- a/tests/integration_test.py
+++ b/tests/integration_test.py
@@ -104,6 +104,7 @@ class IntegrationTest(unittest.TestCase):
'14.4.0-1356',
'15.1.0-1863',
'15.2.0-2248',
+ '15.3.0-2771',
... | ivan - GoCD version <I> has been released so updating integration tests to make sure Gomatic works with it | py |
diff --git a/trie/utils/nibbles.py b/trie/utils/nibbles.py
index <HASH>..<HASH> 100644
--- a/trie/utils/nibbles.py
+++ b/trie/utils/nibbles.py
@@ -17,13 +17,19 @@ from trie.exceptions import (
)
+NIBBLES_LOOKUPS = {
+ byte: (byte >> 4, byte & 15)
+ for byte
+ in range(256)
+}
+
+
def _bytes_to_nibbles(va... | switch to hard coded nibbles lookup table | py |
diff --git a/maxims/credentials.py b/maxims/credentials.py
index <HASH>..<HASH> 100644
--- a/maxims/credentials.py
+++ b/maxims/credentials.py
@@ -5,6 +5,10 @@ from twisted.cred import credentials
class UsernamePassword(item.Item):
"""
A stored username and password.
+
+ Note that although this class is a... | Add caveat about UsernamePassword already being an IUsernamePassword implementation | py |
diff --git a/bcbio/upload/__init__.py b/bcbio/upload/__init__.py
index <HASH>..<HASH> 100644
--- a/bcbio/upload/__init__.py
+++ b/bcbio/upload/__init__.py
@@ -211,7 +211,7 @@ def _sample_variant_file_in_population(x):
if "population" in x:
a = _get_variant_file(x, ("population", "vcf"))
b = _get_... | Improve sanity check for matching sample/population VCFs. | py |
diff --git a/pyotgw/protocol.py b/pyotgw/protocol.py
index <HASH>..<HASH> 100644
--- a/pyotgw/protocol.py
+++ b/pyotgw/protocol.py
@@ -87,7 +87,12 @@ class protocol(asyncio.Protocol):
if eot in line:
# Discard everything before EOT
_, _, line = line.partition(e... | Deal with DecodeErrors on received data. | py |
diff --git a/openquake/engine/calculators/risk/base.py b/openquake/engine/calculators/risk/base.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/risk/base.py
+++ b/openquake/engine/calculators/risk/base.py
@@ -118,7 +118,7 @@ class RiskCalculator(base.Calculator):
self.builders.append(buil... | Reduced the max memory constraint by a factor of 2 | py |
diff --git a/online_monitor/utils.py b/online_monitor/utils.py
index <HASH>..<HASH> 100644
--- a/online_monitor/utils.py
+++ b/online_monitor/utils.py
@@ -25,14 +25,18 @@ def parse_arguments():
return args
-def parse_config_file(config_file): # create config dict from yaml text file
+def parse_config_file(con... | ENH/API: do not expect receiver in yaml file | py |
diff --git a/xport/xport.py b/xport/xport.py
index <HASH>..<HASH> 100644
--- a/xport/xport.py
+++ b/xport/xport.py
@@ -229,6 +229,8 @@ def parse_var(info, var):
elif var.type == 1:
# IBM float
val = ibm_to_ieee(var_str)
+ # Note that the namestr may say 'decimals = 0'
+ # Even when ... | warn that decimals = 0 may not indicate an integer value | py |
diff --git a/tests/vit_mae/test_modeling_vit_mae.py b/tests/vit_mae/test_modeling_vit_mae.py
index <HASH>..<HASH> 100644
--- a/tests/vit_mae/test_modeling_vit_mae.py
+++ b/tests/vit_mae/test_modeling_vit_mae.py
@@ -561,7 +561,7 @@ class ViTMAEModelIntegrationTest(unittest.TestCase):
# forward pass
w... | Fix CI: test_inference_for_pretraining in ViTMAEModelTest (#<I>) | py |
diff --git a/alerta/app/auth.py b/alerta/app/auth.py
index <HASH>..<HASH> 100644
--- a/alerta/app/auth.py
+++ b/alerta/app/auth.py
@@ -379,6 +379,7 @@ def google():
def github():
access_token_url = 'https://github.com/login/oauth/access_token'
users_api_url = 'https://api.github.com/user'
+ user_orgs_url ... | Check public and private Github orgs | py |
diff --git a/pacman/fields.py b/pacman/fields.py
index <HASH>..<HASH> 100644
--- a/pacman/fields.py
+++ b/pacman/fields.py
@@ -438,6 +438,17 @@ class DependentField(BaseField):
self.parent_field_name = name
self.parent_field = None
+ def _get_parent_field(self):
+ if self.parent_field ... | Fix bugs with DependentField exposed by extended unit testing of fields | py |
diff --git a/rest_framework_swagger/urlparser.py b/rest_framework_swagger/urlparser.py
index <HASH>..<HASH> 100644
--- a/rest_framework_swagger/urlparser.py
+++ b/rest_framework_swagger/urlparser.py
@@ -1,3 +1,4 @@
+import re
import os
from django.conf import settings
from django.utils import six
@@ -107,7 +108,7 @@... | Fix wrong grouping of resources e.g. when the following API endpoints exist: /cigars/ /cigars/{pk}/ /cigars_artisan/ /cigars_artisan/{pk}/ all four are wrongfully listed in the cigars namespace | py |
diff --git a/tests/unit/http/test_transporter.py b/tests/unit/http/test_transporter.py
index <HASH>..<HASH> 100644
--- a/tests/unit/http/test_transporter.py
+++ b/tests/unit/http/test_transporter.py
@@ -160,11 +160,11 @@ class TestHostCollection(unittest.TestCase):
hosts = list(map(lambda x: x, self.collection... | Sets the last use a floats on tests | py |
diff --git a/web/db/mongo/__init__.py b/web/db/mongo/__init__.py
index <HASH>..<HASH> 100644
--- a/web/db/mongo/__init__.py
+++ b/web/db/mongo/__init__.py
@@ -65,7 +65,7 @@ class MongoDBConnection(object):
client = self.client = MongoClient(self.uri, **self.config)
if self.minimum:
- version = tuple(client.... | Correctly compare MongoDB versions. | py |
diff --git a/indra/tests/test_db_rest.py b/indra/tests/test_db_rest.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_db_rest.py
+++ b/indra/tests/test_db_rest.py
@@ -67,7 +67,7 @@ def test_timeout_no_persist_agent():
resp = dbr.get_statements(agents=[agent], persist=False, timeout=0)
assert resp.is_worki... | Hedge a bit on batch counts This allows for the effect of filtering restricted content. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -13,8 +13,8 @@ kw = {
'name': "path.py",
'version': "2.4",
'description': "A module wrapper for os.path",
- 'author': "Mikhail Gusarov",
- 'author_email': "dottedmag@dottedmag.net",
+ 'author': "Jason O... | State author in setup.py properly I made the mistake using the 'author' field while adopting the package not knowing there is a 'maintainer' one. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ setup(
"rlp>=0.4.7,<1.0.0",
"eth-keys>=0.2.0b3,<1.0.0",
"trie>=1.3.0,<2.0.0",
- "eth-tester>=0.1.0b11",
+ "eth-tester==0.1.0b12",
"web3>=4.0.0b5",
],
e... | Specify eth-tester==<I>b<I> to avoid error Since for now sharding branch hasn't rebased to master, the return value in `evm.vm.base.VM.apply_transaction` has been changed and the latest eth-tester adopted the latest interface in py-evm/master, the short-term fix for CI error is to specify the older version of eth-test... | py |
diff --git a/test/test_monitoring.py b/test/test_monitoring.py
index <HASH>..<HASH> 100644
--- a/test/test_monitoring.py
+++ b/test/test_monitoring.py
@@ -248,7 +248,6 @@ class TestCommandMonitoring(IntegrationTest):
('sort', SON([('_id', 1)])),
('projection', {'x': False}),
... | PYTHON-<I> - Avoid killCursors in tests | py |
diff --git a/atrcopy.py b/atrcopy.py
index <HASH>..<HASH> 100755
--- a/atrcopy.py
+++ b/atrcopy.py
@@ -68,7 +68,7 @@ class AtrHeader(object):
self.max_sectors = self.size_in_bytes / self.sector_size
def sector_is_valid(self, sector):
- return sector >= 0 and sector < self.max_sectors
+ ... | Fixed off-by-one error for sector number validity check | py |
diff --git a/LiSE/LiSE/examples/college.py b/LiSE/LiSE/examples/college.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/examples/college.py
+++ b/LiSE/LiSE/examples/college.py
@@ -220,5 +220,5 @@ if __name__ == "__main__":
with Engine(":memory:") as eng:
install(eng)
for i in range(72):
- ... | next_tick -> next_turn | py |
diff --git a/examples/basic/trail.py b/examples/basic/trail.py
index <HASH>..<HASH> 100644
--- a/examples/basic/trail.py
+++ b/examples/basic/trail.py
@@ -1,5 +1,5 @@
"""
-Example usage of addTrail().
+Example usage of addTrail().
Add a trailing line to a moving object.
"""
print(__doc__) | Removed trailing spaces in examples/basic/trail.py | py |
diff --git a/nion/swift/ScriptsDialog.py b/nion/swift/ScriptsDialog.py
index <HASH>..<HASH> 100644
--- a/nion/swift/ScriptsDialog.py
+++ b/nion/swift/ScriptsDialog.py
@@ -362,7 +362,7 @@ class RunScriptDialog(Dialog.ActionDialog):
while len(self.__output_queue) > 0:
self.__output_widget.mo... | Fix possible issue with run script looping. | py |
diff --git a/tests/check.py b/tests/check.py
index <HASH>..<HASH> 100644
--- a/tests/check.py
+++ b/tests/check.py
@@ -17,8 +17,7 @@ class Check(TestCase):
def tearDown(self):
"""Create a placeholder for teardown procedure."""
- from proselint.tools import close_cache_shelves
- close_cache... | test: bypass cache in pytest runs (#<I>) | py |
diff --git a/antlerinator/__init__.py b/antlerinator/__init__.py
index <HASH>..<HASH> 100644
--- a/antlerinator/__init__.py
+++ b/antlerinator/__init__.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2017 Renata Hodovan, Akos Kiss.
+# Copyright (c) 2017-2020 Renata Hodovan, Akos Kiss.
#
# Licensed under the BSD 3-Clause License
... | Remove __all__ from __init__ to reduce redundancy | py |
diff --git a/vstutils/management/commands/dockerrun.py b/vstutils/management/commands/dockerrun.py
index <HASH>..<HASH> 100644
--- a/vstutils/management/commands/dockerrun.py
+++ b/vstutils/management/commands/dockerrun.py
@@ -241,6 +241,11 @@ class Command(BaseCommand):
'pidfile': os.getenv(f'{prefix}_UWS... | Provide setup host and port for docker start. vstconsulting/polemarch#<I> | py |
diff --git a/salt/client/mixins.py b/salt/client/mixins.py
index <HASH>..<HASH> 100644
--- a/salt/client/mixins.py
+++ b/salt/client/mixins.py
@@ -15,6 +15,14 @@ from salt.utils.doc import strip_rst as _strip_rst
log = logging.getLogger(__name__)
+CLIENT_INTERNAL_KEYWORDS = frozenset([
+ 'client',
+ 'cmd',
+... | Define some client internal keywords which are expected(and skip errors on them) | py |
diff --git a/pyautogui/screenshotUtil.py b/pyautogui/screenshotUtil.py
index <HASH>..<HASH> 100644
--- a/pyautogui/screenshotUtil.py
+++ b/pyautogui/screenshotUtil.py
@@ -130,7 +130,7 @@ def _screenshot_win32(imageFilename=None):
def _screenshot_osx(imageFilename=None):
if imageFilename is None:
- tmpFil... | fix: remove first dot of tmp filename | py |
diff --git a/allantools/noise_kasdin.py b/allantools/noise_kasdin.py
index <HASH>..<HASH> 100644
--- a/allantools/noise_kasdin.py
+++ b/allantools/noise_kasdin.py
@@ -30,7 +30,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
import numpy as np
-class Noise:
+class Noise(object):
""" ... | minor pylint edits | py |
diff --git a/pprofile.py b/pprofile.py
index <HASH>..<HASH> 100755
--- a/pprofile.py
+++ b/pprofile.py
@@ -57,13 +57,20 @@ else:
"""
if encoding is None:
encoding = stream.encoding
- # XXX: Python3 < 3.2 does not have stream.buffer so this will raise.
+ # XXX: Python3 < 3.2 ... | _reopen: Become a no-op when stream has no "buffer" attribute. Should fix usage on Jupyter notebook, without the encoding-error safety net though. | py |
diff --git a/version.py b/version.py
index <HASH>..<HASH> 100644
--- a/version.py
+++ b/version.py
@@ -48,12 +48,6 @@ class Version:
return c
return c == 0
- def __ne__(self, other):
- c = self._cmp(other)
- if c is NotImplemented:
- return c
- return c != 0
-
... | Issue #<I>: Removed __ne__ implementations. Since fixing default __ne__ implementation in issue #<I> they are redundant. | py |
diff --git a/salt/utils/openstack/nova.py b/salt/utils/openstack/nova.py
index <HASH>..<HASH> 100644
--- a/salt/utils/openstack/nova.py
+++ b/salt/utils/openstack/nova.py
@@ -806,7 +806,9 @@ class SaltNova(object):
'''
nt_ks = self.compute_conn
serverid = self._server_uuid_from_name(name)
- ... | Return dict if networkid doesn't exist when attaching | py |
diff --git a/OpenPNM/Network/__GenericNetwork__.py b/OpenPNM/Network/__GenericNetwork__.py
index <HASH>..<HASH> 100644
--- a/OpenPNM/Network/__GenericNetwork__.py
+++ b/OpenPNM/Network/__GenericNetwork__.py
@@ -357,7 +357,7 @@ class GenericNetwork(Core):
if pores.dtype == bool:
pores = self.toindi... | Minor fix to find_neighbor_pores/throats, to return in int data type if empty list is sent back. | py |
diff --git a/crossplane/__init__.py b/crossplane/__init__.py
index <HASH>..<HASH> 100644
--- a/crossplane/__init__.py
+++ b/crossplane/__init__.py
@@ -8,7 +8,7 @@ __title__ = 'crossplane'
__summary__ = 'Reliable and fast NGINX configuration file parser.'
__url__ = 'https://github.com/nginxinc/crossplane'
-__version... | Updated version to <I> | py |
diff --git a/bucky/statsd.py b/bucky/statsd.py
index <HASH>..<HASH> 100644
--- a/bucky/statsd.py
+++ b/bucky/statsd.py
@@ -119,7 +119,6 @@ class StatsDHandler(threading.Thread):
iteritems = self.gauges.items() if six.PY3 else self.gauges.iteritems()
for k, v in iteritems:
self.enqueue("%s... | regression fix: Gauges are constant until overwritten, and not reset at flush time. | py |
diff --git a/tests/__init__.py b/tests/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -83,6 +83,13 @@ class UserTestCase(BaseAPITestCase):
self.assertEqual(response.status_code, 200)
self.client.user.delete(self._test_user['username'])
+ def test_update... | Add unit test for updating a user | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -52,8 +52,7 @@ setup(
include_package_data=True,
install_requires=install_requires,
entry_points = {
- 'pytest11': [
- 'muffin_pytest = muffin.pytest',
- ]
+ 'pytest11': ['muffin_... | Add gmuffin entry point | py |
diff --git a/tools/run_tests/xds_k8s_test_driver/tests/failover_test.py b/tools/run_tests/xds_k8s_test_driver/tests/failover_test.py
index <HASH>..<HASH> 100644
--- a/tools/run_tests/xds_k8s_test_driver/tests/failover_test.py
+++ b/tools/run_tests/xds_k8s_test_driver/tests/failover_test.py
@@ -40,7 +40,7 @@ class Failo... | disable cpp failover test (#<I>) | py |
diff --git a/kmapper/kmapper.py b/kmapper/kmapper.py
index <HASH>..<HASH> 100644
--- a/kmapper/kmapper.py
+++ b/kmapper/kmapper.py
@@ -107,6 +107,7 @@ class KeplerMapper(object):
self.overlap_perc = 0
self.clusterer = False
self.projection = None
+ self.scaler = None
def fit_tra... | preset scaler incase is visualize is run without fit_transform first | py |
diff --git a/sos/plugins/targetcli.py b/sos/plugins/targetcli.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/targetcli.py
+++ b/sos/plugins/targetcli.py
@@ -31,6 +31,7 @@ class TargetCli(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"systemctl status target.service"
])
self.add_jou... | [targetcli] added one item (#<I>) collecting the /sys/kernel/config/target | py |
diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py
index <HASH>..<HASH> 100644
--- a/salt/states/pip_state.py
+++ b/salt/states/pip_state.py
@@ -23,7 +23,11 @@ requisite to a pkg.installed state for the package which provides pip
from __future__ import absolute_import, print_function, unicode_literals
i... | Handle missing `pkg_resources` package | py |
diff --git a/sportsreference/ncaab/schedule.py b/sportsreference/ncaab/schedule.py
index <HASH>..<HASH> 100644
--- a/sportsreference/ncaab/schedule.py
+++ b/sportsreference/ncaab/schedule.py
@@ -82,6 +82,10 @@ class Game(object):
parsing scheme in order to be extracted.
"""
boxscore = game_da... | Skip NCAAB games that haven't occurred If an NCAAB game hasn't been played yet, it will still appear on the team's schedule as an empty boxscore date without a link to the actual boxscore. Since there is no actual data to collect, the game should be skipped. | py |
diff --git a/sphinxcontrib/openapi/openapi30.py b/sphinxcontrib/openapi/openapi30.py
index <HASH>..<HASH> 100644
--- a/sphinxcontrib/openapi/openapi30.py
+++ b/sphinxcontrib/openapi/openapi30.py
@@ -261,6 +261,8 @@ def _httpresource(endpoint, method, properties, render_examples):
name=param['name'])
... | Indicate when a query or header param is required | py |
diff --git a/morpfw/jslcrud/storage/sqlstorage.py b/morpfw/jslcrud/storage/sqlstorage.py
index <HASH>..<HASH> 100644
--- a/morpfw/jslcrud/storage/sqlstorage.py
+++ b/morpfw/jslcrud/storage/sqlstorage.py
@@ -1,4 +1,5 @@
import sqlalchemy as sa
+import uuid
from sqlalchemy.ext.declarative import declarative_base
from ... | cast uuid to string | py |
diff --git a/coconut/command.py b/coconut/command.py
index <HASH>..<HASH> 100644
--- a/coconut/command.py
+++ b/coconut/command.py
@@ -5,7 +5,7 @@
#-----------------------------------------------------------------------------------------------------------------------
"""
-Author: Evan Hubinger
+Authors: Evan Hubing... | Credits Boscillator in command.py | py |
diff --git a/ontobio/golr/golr_query.py b/ontobio/golr/golr_query.py
index <HASH>..<HASH> 100644
--- a/ontobio/golr/golr_query.py
+++ b/ontobio/golr/golr_query.py
@@ -764,8 +764,8 @@ class GolrAssociationQuery(GolrAbstractQuery):
# with an ID that is contained in subject_or_object_ids.
if subject_or_o... | In subject_or_object_ids association search changed from subject and object to subject_closure and object_closure. | py |
diff --git a/python/mxnet/initializer.py b/python/mxnet/initializer.py
index <HASH>..<HASH> 100644
--- a/python/mxnet/initializer.py
+++ b/python/mxnet/initializer.py
@@ -189,7 +189,7 @@ class Xavier(Initializer):
def __init__(self, rnd_type="uniform", factor_type="avg", magnitude=3):
self.rnd_type = rnd_... | fix scale in Xavier initializer | py |
diff --git a/splinter/driver/djangoclient.py b/splinter/driver/djangoclient.py
index <HASH>..<HASH> 100644
--- a/splinter/driver/djangoclient.py
+++ b/splinter/driver/djangoclient.py
@@ -103,9 +103,9 @@ class DjangoClient(DriverAPI):
def submit(self, form):
method = form.attrib['method']
func_met... | Compatibility with real browsers: form.attrib['action'] defaults to empty string if not present | py |
diff --git a/pandas/core/series.py b/pandas/core/series.py
index <HASH>..<HASH> 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -481,7 +481,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
def nonzero(self):
"""
- Return the indices of the elements that are non-zero
+ ... | DOC: Improve docs (GH<I>) for Series.nonzero() (#<I>) | py |
diff --git a/lettuce/terminal.py b/lettuce/terminal.py
index <HASH>..<HASH> 100644
--- a/lettuce/terminal.py
+++ b/lettuce/terminal.py
@@ -74,9 +74,6 @@ def get_terminal_size_unix():
except:
pass
if not cr:
- try:
- cr = (os.getenv('LINES'), os.getenv('COLUMNS'))
- ex... | os.getenv does not raise an exception when the value is not found. This code fix returns (LINES, COLUMNS) when the env vars are defined, (<I>, <I>) when they are not defined. Previously, (None, None) was returned | py |
diff --git a/mythril/analysis/modules/unchecked_suicide.py b/mythril/analysis/modules/unchecked_suicide.py
index <HASH>..<HASH> 100644
--- a/mythril/analysis/modules/unchecked_suicide.py
+++ b/mythril/analysis/modules/unchecked_suicide.py
@@ -11,7 +11,8 @@ import logging
'''
MODULE DESCRIPTION:
-Check for SUICIDE i... | Update unchecked_suicide.py | py |
diff --git a/cslbot/commands/quote.py b/cslbot/commands/quote.py
index <HASH>..<HASH> 100644
--- a/cslbot/commands/quote.py
+++ b/cslbot/commands/quote.py
@@ -82,10 +82,11 @@ def do_delete_quote(session, qid):
return 'Deleted quote with ID %d' % qid
-def search_quote(session, term):
+def search_quote(session, ... | multi-word quote search, fix #<I> | py |
diff --git a/osc_parallel_pick_otus.py b/osc_parallel_pick_otus.py
index <HASH>..<HASH> 100755
--- a/osc_parallel_pick_otus.py
+++ b/osc_parallel_pick_otus.py
@@ -12,6 +12,7 @@ data sets.
import argparse
import os.path as osp
+PBS_JOB_NAME_SIZE = 15
PBS_SCRIPT = """#PBS -N {job_name}_{job_num}
@@ -75,6 +76,8 @... | Truncates job name to fit the job ID if necessary | py |
diff --git a/cerberus/cerberus.py b/cerberus/cerberus.py
index <HASH>..<HASH> 100644
--- a/cerberus/cerberus.py
+++ b/cerberus/cerberus.py
@@ -1026,6 +1026,7 @@ class DefinitionSchema(MutableMapping):
def default(self, o):
if isinstance(o, Callable):
return repr(o)
+
... | Fixes issue with non-string keys in schemas when calculating hashes | py |
diff --git a/pan_cortex_data_lake/query.py b/pan_cortex_data_lake/query.py
index <HASH>..<HASH> 100644
--- a/pan_cortex_data_lake/query.py
+++ b/pan_cortex_data_lake/query.py
@@ -185,7 +185,7 @@ class QueryService(object):
)
self.stats.get_job_results += 1
- rows = r.json().get("rowsInJob")
+... | 'records' in query service stats is wrong (#<I>) It uses the `rowsInJob` instead of `rowsInPage` inside `get_job_results()`. `get_job_results()` only fetches a single page / cursor result, therefore the number of rows in the page must be used. | py |
diff --git a/parsl/executors/high_throughput/interchange.py b/parsl/executors/high_throughput/interchange.py
index <HASH>..<HASH> 100644
--- a/parsl/executors/high_throughput/interchange.py
+++ b/parsl/executors/high_throughput/interchange.py
@@ -227,9 +227,11 @@ class Interchange(object):
tasks = ... | Updating logic to count actual tasks distributed | py |
diff --git a/bindings/py/src/nupic/bindings/tools/random_serialization_perf.py b/bindings/py/src/nupic/bindings/tools/random_serialization_perf.py
index <HASH>..<HASH> 100755
--- a/bindings/py/src/nupic/bindings/tools/random_serialization_perf.py
+++ b/bindings/py/src/nupic/bindings/tools/random_serialization_perf.py
@... | Removed debug print statement from random_serialization_perf.py. | py |
diff --git a/salt/modules/rpm.py b/salt/modules/rpm.py
index <HASH>..<HASH> 100644
--- a/salt/modules/rpm.py
+++ b/salt/modules/rpm.py
@@ -434,7 +434,7 @@ def info(*packages):
if call['retcode'] != 0:
comment = ''
if 'stderr' in call:
- comment += call['stderr']
+ comment +=... | Bugfix: sometimes error goes to the STDOUT instead of STDERR in the RPM | py |
diff --git a/spyderlib/plugins/ipythonconsole.py b/spyderlib/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/ipythonconsole.py
+++ b/spyderlib/plugins/ipythonconsole.py
@@ -17,7 +17,7 @@ Handles IPython clients (and in the future, will handle IPython kernels too
# Qt imports
from spyder... | Remove unnecessary import and add :port in placeholder text for remote connection | py |
diff --git a/holoviews/core/tree.py b/holoviews/core/tree.py
index <HASH>..<HASH> 100644
--- a/holoviews/core/tree.py
+++ b/holoviews/core/tree.py
@@ -119,7 +119,7 @@ class AttrTree(object):
else pf for pf in path_filters]
# Search for substring matches between paths and path filters... | AttrTree methods now support subclasses | py |
diff --git a/Lib/fontmake/__main__.py b/Lib/fontmake/__main__.py
index <HASH>..<HASH> 100644
--- a/Lib/fontmake/__main__.py
+++ b/Lib/fontmake/__main__.py
@@ -22,11 +22,11 @@ def main():
parser.add_argument('glyphs_path', metavar='GLYPHS_PATH')
parser.add_argument('-c', '--compatible', action='store_true')
... | Simplify call to run_all in __main__ | py |
diff --git a/redis/cluster.py b/redis/cluster.py
index <HASH>..<HASH> 100644
--- a/redis/cluster.py
+++ b/redis/cluster.py
@@ -867,7 +867,10 @@ class RedisCluster(RedisClusterCommands):
self.cluster_response_callbacks[command] = callback
def _determine_nodes(self, *args, **kwargs):
- command = ar... | fix execute_command() determine nodes error when no key command (#<I>) | py |
diff --git a/pyth/plugins/rtf15/writer.py b/pyth/plugins/rtf15/writer.py
index <HASH>..<HASH> 100644
--- a/pyth/plugins/rtf15/writer.py
+++ b/pyth/plugins/rtf15/writer.py
@@ -98,7 +98,7 @@ class Rtf15Writer(PythWriter):
def _getFontTable(self):
output = [r'{\fonttbl']
for i, (fontFamily, fontName... | RTF writer fixes for AbiWord | py |
diff --git a/pipenv/cli.py b/pipenv/cli.py
index <HASH>..<HASH> 100644
--- a/pipenv/cli.py
+++ b/pipenv/cli.py
@@ -1172,7 +1172,7 @@ def which_pip(allow_global=False):
def system_which(command, mult=False):
"""Emulates the system's which. Returns None is not found."""
- _which = 'which' if not os.name == 'nt... | use which -a on linux | py |
diff --git a/tests/integration/files/log_handlers/runtests_log_handler.py b/tests/integration/files/log_handlers/runtests_log_handler.py
index <HASH>..<HASH> 100644
--- a/tests/integration/files/log_handlers/runtests_log_handler.py
+++ b/tests/integration/files/log_handlers/runtests_log_handler.py
@@ -99,8 +99,11 @@ de... | Don't traceback when trying to close a closed socket | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.