diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/neurom/io/hdf5.py b/neurom/io/hdf5.py
index <HASH>..<HASH> 100644
--- a/neurom/io/hdf5.py
+++ b/neurom/io/hdf5.py
@@ -174,11 +174,14 @@ class H5(object):
# get last point in parent group
return group_ids[parent_group_id + 1] - 1
- return np.array([(p[_H5STRUCT.PX]... | Small optimization in hdf5 unpack_data * Use numpy operations to build raw data block. | py |
diff --git a/examples/ptpython_config/config.py b/examples/ptpython_config/config.py
index <HASH>..<HASH> 100644
--- a/examples/ptpython_config/config.py
+++ b/examples/ptpython_config/config.py
@@ -95,8 +95,10 @@ def configure(repl):
repl.use_code_colorscheme('pastie')
# Install custom colorscheme named 'm... | Commented weird defaults in example configuration. | py |
diff --git a/gwpy/table/tests/test_table.py b/gwpy/table/tests/test_table.py
index <HASH>..<HASH> 100644
--- a/gwpy/table/tests/test_table.py
+++ b/gwpy/table/tests/test_table.py
@@ -686,19 +686,18 @@ class TestEventTable(TestTable):
try:
# write table in snax format (by hand)
with h5... | test_table.py: fix a few issues with test_read_snax() | py |
diff --git a/docs/source/conf.py b/docs/source/conf.py
index <HASH>..<HASH> 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -198,7 +198,7 @@ def convert(names, ext="html", include_source=True, include_dest=True):
if include_dest:
html_extra_path.append(dest)
convert("example_movies example_start e... | tutorial should be converted to rst (fix) [skip ci] | py |
diff --git a/salt/modules/cmdmod.py b/salt/modules/cmdmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cmdmod.py
+++ b/salt/modules/cmdmod.py
@@ -46,7 +46,8 @@ def _run(cmd,
runas=None,
with_env=True,
shell=DEFAULT_SHELL,
- env=()):
+ env=(),
+ rstrip=True):
... | Strip the trailing newline / whitespace from cmd.* This was the most frequent problem we ran into whenever a user would try something like: __salt__['cmd.run']('foo') inside of a state file or template. Lets ease their frustration There is no way to selectively disable this in the various cmd module commands, but tha... | py |
diff --git a/rnftools/mishmash/cuReSim.py b/rnftools/mishmash/cuReSim.py
index <HASH>..<HASH> 100644
--- a/rnftools/mishmash/cuReSim.py
+++ b/rnftools/mishmash/cuReSim.py
@@ -80,7 +80,8 @@ class CuReSim(Source):
-sd 0 \
-y 0 \
{other_params} \
- > /dev/null
+ > /dev/null \
+ 2>1 | tr '\n' ' '
... | Removing new line characters from CuReSim output | py |
diff --git a/tests/integration/minion/timeout.py b/tests/integration/minion/timeout.py
index <HASH>..<HASH> 100644
--- a/tests/integration/minion/timeout.py
+++ b/tests/integration/minion/timeout.py
@@ -28,7 +28,7 @@ class MinionTimeoutTestCase(integration.ShellCase):
self.assertTrue(isinstance(ret, list), 'Re... | Spelling fix (#<I>) | py |
diff --git a/fwdpy11/ezparams.py b/fwdpy11/ezparams.py
index <HASH>..<HASH> 100644
--- a/fwdpy11/ezparams.py
+++ b/fwdpy11/ezparams.py
@@ -54,7 +54,7 @@ def mslike(pop, **kwargs):
((1.0-defaults['pneutral'])*defaults['theta']) /
(4.0*pop.N),
def... | change ezparams to store an instance of SlocusMult | py |
diff --git a/tests/rules_tests/RulesTest.py b/tests/rules_tests/RulesTest.py
index <HASH>..<HASH> 100644
--- a/tests/rules_tests/RulesTest.py
+++ b/tests/rules_tests/RulesTest.py
@@ -86,5 +86,22 @@ class RulesTest(TestCase):
for rule in r:
self.assertIn(rule.rule, Tmp1.rules)
+ def test_shoul... | Add test when Rule with multiple rules is pass thought constructor | py |
diff --git a/pyemu/pst/pst_handler.py b/pyemu/pst/pst_handler.py
index <HASH>..<HASH> 100644
--- a/pyemu/pst/pst_handler.py
+++ b/pyemu/pst/pst_handler.py
@@ -583,7 +583,7 @@ class Pst(object):
f_out.write("* prior information\n")
#self.prior_information.index = self.prior_information.pop("pil... | fixed small bug in writing out prior information (wasn't writing the label) for pst_handler | py |
diff --git a/tests/unit/modules/test_state.py b/tests/unit/modules/test_state.py
index <HASH>..<HASH> 100644
--- a/tests/unit/modules/test_state.py
+++ b/tests/unit/modules/test_state.py
@@ -935,7 +935,7 @@ class StateTestCase(TestCase, LoaderModuleMockMixin):
'''
Test to execute a packaged state ... | Update test to reflect additional calls to os.path.isfile() | py |
diff --git a/bulbs/content/models.py b/bulbs/content/models.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/models.py
+++ b/bulbs/content/models.py
@@ -479,7 +479,7 @@ class Content(PolymorphicIndexable, PolymorphicModel):
'title' : self.title,
'slug' : self.slug,
... | Let's just index the id | py |
diff --git a/byml/byml.py b/byml/byml.py
index <HASH>..<HASH> 100644
--- a/byml/byml.py
+++ b/byml/byml.py
@@ -317,7 +317,8 @@ class Writer:
elif isinstance(data, dict):
stream.write(self._u8(NodeType.HASH))
stream.write(self._u24(len(data)))
- for (key, value) in data.item... | writer: Fix hash entries not being sorted Keys were being sorted correctly but not the hash entries themselves... This is required to avoid generating invalid documents as the official BYML library performs binary searches. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ from distutils.core import setup
setup(
name = 'multitail2'
, version = '0.1.0'
- , description = 'Enables following multiple files new lines at once'
+ , description = 'Enables following multip... | Tinkering with pypi package description. | py |
diff --git a/tests/common/file_utils_test.py b/tests/common/file_utils_test.py
index <HASH>..<HASH> 100644
--- a/tests/common/file_utils_test.py
+++ b/tests/common/file_utils_test.py
@@ -2,6 +2,7 @@ from collections import Counter
import os
import pathlib
import json
+import time
import pytest
import responses
@... | fix file utils test (#<I>) | py |
diff --git a/cwltool/job.py b/cwltool/job.py
index <HASH>..<HASH> 100644
--- a/cwltool/job.py
+++ b/cwltool/job.py
@@ -69,7 +69,7 @@ with open(sys.argv[1], "r") as f:
if sp.stdin:
sp.stdin.close()
rcode = sp.wait()
- if isinstance(stdin, file):
+ if stdin is not subprocess.PIPE:
stdin.... | Fix Python 3 incompatibility in PYTHON_RUN_SCRIPT. `file` is no longer a built-in with the new `io` framework. Was causing jobs to fail depending on the python in the conda env. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -61,7 +61,7 @@ sys.path.insert(0, os.path.join(os.path.dirname(__file__), "network_pipeline"))
setup(
name="network-pipeline",
cmdclass={"build_py": build_py},
- version="1.0.36",
+ version="1.0.37",
desc... | new client docker build for splunk envs - try 2 | py |
diff --git a/pylint/test/functional/deprecated_module_py36.py b/pylint/test/functional/deprecated_module_py36.py
index <HASH>..<HASH> 100644
--- a/pylint/test/functional/deprecated_module_py36.py
+++ b/pylint/test/functional/deprecated_module_py36.py
@@ -1,5 +1,5 @@
"""Test deprecated modules from Python 3.6."""
-# py... | Ignore import-error in deprecated_module_py<I>.py test (#<I>) tkinter can be unavailable in python distributions compiled without it. | py |
diff --git a/km3pipe/io/hdf5.py b/km3pipe/io/hdf5.py
index <HASH>..<HASH> 100644
--- a/km3pipe/io/hdf5.py
+++ b/km3pipe/io/hdf5.py
@@ -164,7 +164,7 @@ class HDF5Pump(Pump):
"""
def __init__(self, **context):
super(self.__class__, self).__init__(**context)
- self.filename = self.get('filena... | Switch to require for getting the filename | py |
diff --git a/ford/reader.py b/ford/reader.py
index <HASH>..<HASH> 100644
--- a/ford/reader.py
+++ b/ford/reader.py
@@ -255,6 +255,8 @@ class FortranReader(object):
if line[0] == '&':
if continued:
line = line[1:]
+ elif len(line.strip()) ... | Allow otherwise empty line with ampersand in Fortran source files | py |
diff --git a/belpy/bel.py b/belpy/bel.py
index <HASH>..<HASH> 100644
--- a/belpy/bel.py
+++ b/belpy/bel.py
@@ -1,4 +1,4 @@
- import importlib
+import importlib
import os
from tatsu.exceptions import FailedParse
@@ -15,15 +15,10 @@ from belpy.exceptions import NoParserFound
class BEL(object):
- """The BEL cl... | trying to fix sphinx docs | py |
diff --git a/jutil/bank_const_se.py b/jutil/bank_const_se.py
index <HASH>..<HASH> 100644
--- a/jutil/bank_const_se.py
+++ b/jutil/bank_const_se.py
@@ -45,6 +45,6 @@ SE_BANK_CLEARING_LIST = ( # 46
('Skandiabanken AB', '9150', '9169', 7),
('Sparbanken Syd', '9570', '9579', 8),
('Swedbank', '7000', '7999',... | reduced Swedbank account number length requirement | py |
diff --git a/pandas/tools/rplot.py b/pandas/tools/rplot.py
index <HASH>..<HASH> 100644
--- a/pandas/tools/rplot.py
+++ b/pandas/tools/rplot.py
@@ -1,7 +1,5 @@
import numpy as np
-import matplotlib.pyplot as plt
import random
-import pdb
from copy import deepcopy
#
@@ -828,6 +826,7 @@ class RPlot:
-------... | BUG: also remove pyplot top level import | py |
diff --git a/glances/core/glances_logs.py b/glances/core/glances_logs.py
index <HASH>..<HASH> 100644
--- a/glances/core/glances_logs.py
+++ b/glances/core/glances_logs.py
@@ -151,7 +151,7 @@ class GlancesLogs(object):
self.reset_process_sort()
endtime = time.mktime(datetime.now().tim... | Alert < 3 seconds are no longer displayed 2/2 | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -28,6 +28,5 @@ setup(
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
- "Programming Language :: Python :: Implementa... | Remove Pypy from list of supported Python versions | py |
diff --git a/docker/utils/utils.py b/docker/utils/utils.py
index <HASH>..<HASH> 100644
--- a/docker/utils/utils.py
+++ b/docker/utils/utils.py
@@ -4,6 +4,7 @@ import os
import os.path
import json
import shlex
+import sys
import tarfile
import tempfile
import warnings
@@ -92,7 +93,10 @@ def tar(path, exclude=None,... | Synthesize executable bit on Windows The build context is tarred up on the client and then sent to the Docker daemon. However Windows permissions don't match the Unix ones. Therefore we have to mark all files as executable when creating a build context on Windows, like `docker build` already does: <URL> | py |
diff --git a/rapport/cli.py b/rapport/cli.py
index <HASH>..<HASH> 100644
--- a/rapport/cli.py
+++ b/rapport/cli.py
@@ -52,14 +52,15 @@ class CLI(object):
with futures.ThreadPoolExecutor(max_workers=4) as executor:
plugin_futures = dict((executor.submit(p.collect, self.timeframe), p) for p in self.... | Add alias to "Plugin failed" exception | py |
diff --git a/topydo/lib/Colorblock.py b/topydo/lib/Colorblock.py
index <HASH>..<HASH> 100644
--- a/topydo/lib/Colorblock.py
+++ b/topydo/lib/Colorblock.py
@@ -14,6 +14,8 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+im... | Handle negation of strict recurrences properly A strict recurrence is prefixed with +. Simply prepending a minus sign results in an invalid pattern -<I>d. It should be +-5d. But strict recurrence is not of importance when calculating the todo's length, so discard the + altogether and replace it with a - to get -5d. | py |
diff --git a/keyring/http.py b/keyring/http.py
index <HASH>..<HASH> 100644
--- a/keyring/http.py
+++ b/keyring/http.py
@@ -21,11 +21,10 @@ class PasswordMgr(object):
def find_user_password(self, realm, authuri):
user = self.get_username(realm, authuri)
- passwd = keyring.get_password(authuri, use... | using the realm is more appropriate for the server field | py |
diff --git a/photons/lightclient.py b/photons/lightclient.py
index <HASH>..<HASH> 100644
--- a/photons/lightclient.py
+++ b/photons/lightclient.py
@@ -156,7 +156,9 @@ class LightClientUdp(LightClient):
i = self.send_queue.get_nowait()
msg.extend(i)
+ self.debug_print("sending payload size: {}".format(l... | debug statements added to show payload sizes | py |
diff --git a/swampyer/__init__.py b/swampyer/__init__.py
index <HASH>..<HASH> 100644
--- a/swampyer/__init__.py
+++ b/swampyer/__init__.py
@@ -101,7 +101,7 @@ class WAMPClient(threading.Thread):
def configure(self, **kwargs):
for k in ('url','uri_base','realm',
- 'agent','timeout','auth... | and also add support for authid | py |
diff --git a/tests/integration/states/test_network.py b/tests/integration/states/test_network.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/test_network.py
+++ b/tests/integration/states/test_network.py
@@ -1,14 +1,10 @@
-# -*- encoding: utf-8 -*-
"""
:codeauthor: :email: `Justin Anderson <janders... | Drop Py2 and six on tests/integration/states/test_network.py | py |
diff --git a/webwhatsapi/objects/message.py b/webwhatsapi/objects/message.py
index <HASH>..<HASH> 100755
--- a/webwhatsapi/objects/message.py
+++ b/webwhatsapi/objects/message.py
@@ -78,7 +78,8 @@ class MediaMessage(Message):
crypt_keys = {'document': '576861747341707020446f63756d656e74204b657973',
... | Add key for decrypting audio files | py |
diff --git a/gremlin-python/src/main/jython/setup.py b/gremlin-python/src/main/jython/setup.py
index <HASH>..<HASH> 100644
--- a/gremlin-python/src/main/jython/setup.py
+++ b/gremlin-python/src/main/jython/setup.py
@@ -51,9 +51,12 @@ install_requires = [
'isodate>=0.6.0,<1.0.0'
]
-if sys.version_info < (3,2):
+... | Pinned pyparsing to versions prior to <I> <I> doesn't seem to support earlier version of python anymore CTR | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -16,6 +16,7 @@
import sys
import os
import shlex
+import subprocess
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from git_version import git_version
@@ -23,10 +24,7 @@ from git_version ... | docs: Replace deprecated pip call with launching in separate process (#<I>) Fixes documentation builds on RTD. | py |
diff --git a/aiosparql/__init__.py b/aiosparql/__init__.py
index <HASH>..<HASH> 100644
--- a/aiosparql/__init__.py
+++ b/aiosparql/__init__.py
@@ -1 +1 @@
-__version__ = '0.11.0a0'
+__version__ = '0.11.0a1' | Bump to <I>a1 | py |
diff --git a/master/buildbot/db/changes.py b/master/buildbot/db/changes.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/db/changes.py
+++ b/master/buildbot/db/changes.py
@@ -195,7 +195,9 @@ class ChangesConnectorComponent(base.DBConnectorComponent):
# For each codebase, append changes until we match the... | Tweak build change retrieval to not error for 'None' change getChangeFromSSid() can return None, but the change retrieval for a build did not work properly in that scenario. | py |
diff --git a/infoblox_client/connector.py b/infoblox_client/connector.py
index <HASH>..<HASH> 100644
--- a/infoblox_client/connector.py
+++ b/infoblox_client/connector.py
@@ -374,18 +374,21 @@ class Connector(object):
return self._parse_reply(r)
@reraise_neutron_exception
- def delete_object(self, re... | Allow passing delete arguments when deleting an object (#<I>) Fix for #<I> | py |
diff --git a/submissions/models.py b/submissions/models.py
index <HASH>..<HASH> 100644
--- a/submissions/models.py
+++ b/submissions/models.py
@@ -302,10 +302,13 @@ class ScoreSummary(models.Model):
class ScoreAnnotation(models.Model):
""" Annotate individual scores with extra information if necessary. """
+ ... | Add new app_label to ScoreAnnotation. | py |
diff --git a/detect_secrets/plugins/keyword.py b/detect_secrets/plugins/keyword.py
index <HASH>..<HASH> 100644
--- a/detect_secrets/plugins/keyword.py
+++ b/detect_secrets/plugins/keyword.py
@@ -55,7 +55,7 @@ class KeywordDetector(BasePlugin):
if WHITELIST_REGEX.search(string):
return output
- ... | Simplify the keyword plugin `.lower()` is now done in `secret_generator` so there is no need to do it twice. | py |
diff --git a/lib/pyfrc/physics/core.py b/lib/pyfrc/physics/core.py
index <HASH>..<HASH> 100644
--- a/lib/pyfrc/physics/core.py
+++ b/lib/pyfrc/physics/core.py
@@ -359,8 +359,15 @@ class PhysicsInterface:
def reset_position(self):
with self._lock:
- self.vx += self.start_x - self.x
- ... | Fix resetting position if start angle isn't 0 | py |
diff --git a/sphinx/source/docs/user_guide/examples/plotting_hex_tile_basic.py b/sphinx/source/docs/user_guide/examples/plotting_hex_tile_basic.py
index <HASH>..<HASH> 100644
--- a/sphinx/source/docs/user_guide/examples/plotting_hex_tile_basic.py
+++ b/sphinx/source/docs/user_guide/examples/plotting_hex_tile_basic.py
@... | typo for plotting_hex_tile_basic.py by ppplinday (#<I>) | py |
diff --git a/nion/swift/LinePlotCanvasItem.py b/nion/swift/LinePlotCanvasItem.py
index <HASH>..<HASH> 100644
--- a/nion/swift/LinePlotCanvasItem.py
+++ b/nion/swift/LinePlotCanvasItem.py
@@ -271,7 +271,7 @@ class LinePlotCanvasItem(CanvasItem.LayerCanvasItem):
... | Fix bug in earlier line plot drawing optimization. | py |
diff --git a/openquake/hazardlib/calc/gmf.py b/openquake/hazardlib/calc/gmf.py
index <HASH>..<HASH> 100644
--- a/openquake/hazardlib/calc/gmf.py
+++ b/openquake/hazardlib/calc/gmf.py
@@ -128,7 +128,12 @@ class GmfComputer(object):
gs = gsim[str(imt)] # MultiGMPE
else:
gs ... | Better error management in the GmfComputer [skip CI] | py |
diff --git a/tests/test_response.py b/tests/test_response.py
index <HASH>..<HASH> 100644
--- a/tests/test_response.py
+++ b/tests/test_response.py
@@ -13,8 +13,14 @@ class MockUser(Model):
name = 'TestUser'
email = 'user@email.com'
+ def all(self):
+ return Collection([
+ {'name': 'Test... | Filling more code to verify why Response is come empty. | py |
diff --git a/easywebdav/client.py b/easywebdav/client.py
index <HASH>..<HASH> 100644
--- a/easywebdav/client.py
+++ b/easywebdav/client.py
@@ -68,6 +68,7 @@ class Client(object):
self.baseurl = '{0}://{1}:{2}'.format(protocol, host ,port)
self.cwd = '/'
self.session = requests.session()
+ ... | fixing bug <I>, setting stream = True in request | py |
diff --git a/__init__.py b/__init__.py
index <HASH>..<HASH> 100644
--- a/__init__.py
+++ b/__init__.py
@@ -66,9 +66,14 @@ def _run(source, processor_factory, control, params, verbose):
import sys
stream = sys.stdin
try:
- import msvcrt
import os
- msvcrt.set... | fast-import-filter should produce binary output. | py |
diff --git a/lib/access_control_engine.py b/lib/access_control_engine.py
index <HASH>..<HASH> 100644
--- a/lib/access_control_engine.py
+++ b/lib/access_control_engine.py
@@ -39,7 +39,7 @@ try:
except ImportError, e:
called_from = 0
-def _make_list_apache_firerole(name_action, arguments):
+def make_list_apache_... | Small temporary hack to aid CERN migration. It's enabled only when CERN_CFG_SITE is True. When a restricted collection is searched for, and it exists one and only apache-password enabled role to access this collection, the user is automatically prompted for apache-password like in the previous release, while if there's... | py |
diff --git a/lago/sysprep.py b/lago/sysprep.py
index <HASH>..<HASH> 100644
--- a/lago/sysprep.py
+++ b/lago/sysprep.py
@@ -125,6 +125,13 @@ def edit(filename, expression):
)
+def update():
+ return (
+ '--update',
+ '--network',
+ )
+
+
def sysprep(disk, mods, backend='direct'):
cmd =... | Allow to call sysprep.update() which will update all packages during sysprep. For the time being, no one is calling it - I'm using it manually by modifying vm.py if I need to, but it's good to have it. | py |
diff --git a/scss.py b/scss.py
index <HASH>..<HASH> 100644
--- a/scss.py
+++ b/scss.py
@@ -4474,14 +4474,16 @@ def main():
continue
elif s.startswith('@'):
properties = []
+ children = deque()
rule = [... | Missing print of children in @iclude for the interactive shell | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,5 +20,5 @@ setup(
'License :: OSI Approved :: MIT License',
],
packages=['jks'],
- requires=['pyasn1'],
+ install_requires=['pyasn1'],
) | Fixed setup to install dependencies through pip. | py |
diff --git a/phy/io/tests/test_kwik_model.py b/phy/io/tests/test_kwik_model.py
index <HASH>..<HASH> 100644
--- a/phy/io/tests/test_kwik_model.py
+++ b/phy/io/tests/test_kwik_model.py
@@ -8,6 +8,7 @@
import os
import os.path as op
+from random import randint
import numpy as np
import h5py
@@ -33,8 +34,11 @@ def ... | WIP: creating test kwik file. | py |
diff --git a/system_tests/bigtable.py b/system_tests/bigtable.py
index <HASH>..<HASH> 100644
--- a/system_tests/bigtable.py
+++ b/system_tests/bigtable.py
@@ -129,7 +129,7 @@ def tearDownModule():
class TestInstanceAdminAPI(unittest.TestCase):
def setUp(self):
- if Config.IN_EMULATOR is not None:
+ ... | 'Config.IN_EMULATOR' is a boolean. Five tests were being skipped due to false positves (testing 'if Config.IN_EMULATOR is not None:' vs. 'if Config.IN_EMULATOR:'. | py |
diff --git a/core/dbt/clients/registry.py b/core/dbt/clients/registry.py
index <HASH>..<HASH> 100644
--- a/core/dbt/clients/registry.py
+++ b/core/dbt/clients/registry.py
@@ -31,7 +31,7 @@ def _get_url(name, registry_base_url=None):
def _get_with_retries(package_name, registry_base_url=None):
- get_fn = functoo... | cache after retrying instead of while retrying (#<I>) | py |
diff --git a/gutenberg/corpus.py b/gutenberg/corpus.py
index <HASH>..<HASH> 100644
--- a/gutenberg/corpus.py
+++ b/gutenberg/corpus.py
@@ -13,11 +13,10 @@ class SqliteCorpus(api.Corpus):
with sqlite3.connect(self._index) as dbcon:
dbcon.execute('''
CREATE TABLE IF NOT EXISTS TextI... | Use propper style of primary key declaration | py |
diff --git a/flaskext/sqlalchemy.py b/flaskext/sqlalchemy.py
index <HASH>..<HASH> 100644
--- a/flaskext/sqlalchemy.py
+++ b/flaskext/sqlalchemy.py
@@ -451,7 +451,7 @@ class _BoundDeclarativeMeta(DeclarativeMeta):
# attach a primary key to support model inheritance that does
# not use joins. We also d... | Fixed some broken logic. This fixes #<I> | py |
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index <HASH>..<HASH> 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -233,8 +233,7 @@ class Submodule(IndexObject, Iterable, Traversable):
def _module_abspath(cls, parent_repo, path, name):
if cls.... | removed Unnecessary “else” after “return” | py |
diff --git a/bugzilla/base.py b/bugzilla/base.py
index <HASH>..<HASH> 100644
--- a/bugzilla/base.py
+++ b/bugzilla/base.py
@@ -120,8 +120,10 @@ def _open_bugzillarc(configpaths=-1):
if configpaths == -1:
configpaths = _default_configpaths[:]
+ # pylint: disable=protected-access
configpaths = [os... | base: Fix some pylint | py |
diff --git a/openquake/calculators/disaggregation.py b/openquake/calculators/disaggregation.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/disaggregation.py
+++ b/openquake/calculators/disaggregation.py
@@ -494,7 +494,7 @@ class DisaggregationCalculator(base.HazardCalculator):
out = output_dict(sel... | Sorted the disagg results before saving them [skip CI] | py |
diff --git a/salt/states/snapper.py b/salt/states/snapper.py
index <HASH>..<HASH> 100644
--- a/salt/states/snapper.py
+++ b/salt/states/snapper.py
@@ -166,18 +166,18 @@ def baseline_snapshot(name, number=None, tag=None, config='root', ignore=None):
status.pop(target_file, None)
for file in statu... | Only include diff in the state response if `include_diff` is True | py |
diff --git a/alot/message.py b/alot/message.py
index <HASH>..<HASH> 100644
--- a/alot/message.py
+++ b/alot/message.py
@@ -23,6 +23,7 @@ import re
import mimetypes
from datetime import datetime
from email.header import Header
+from email.iterators import typed_subpart_iterator
import helper
from settings import ... | drop plaintext in presence of html parts | py |
diff --git a/telemetry/telemetry/core/timeline/model.py b/telemetry/telemetry/core/timeline/model.py
index <HASH>..<HASH> 100644
--- a/telemetry/telemetry/core/timeline/model.py
+++ b/telemetry/telemetry/core/timeline/model.py
@@ -43,10 +43,11 @@ class TimelineModel(object):
if self._frozen:
raise Exception... | Fixed generation of TimelineModel._all_events. - Events were added recursively to _all_events during AddEvent for root events - Asynchronous events that were added later on by the importer were not included. - Fixed by moving the recursive population of _all_events to DidFinishRecording BUG=<I> Review URL: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -5,13 +5,15 @@ setup script
from setuptools import setup, find_packages
+_VERSION = '0.1.1'
+
setup(
name='jut-tools',
- version='0.1',
+ version=_VERSION,
author='Rodney Gomes',
author_email='rodney... | bumped version to <I> because of a bad README in the previous pypi package | py |
diff --git a/thefuck/rules/cpp11.py b/thefuck/rules/cpp11.py
index <HASH>..<HASH> 100644
--- a/thefuck/rules/cpp11.py
+++ b/thefuck/rules/cpp11.py
@@ -1,7 +1,7 @@
from thefuck.utils import for_app
-@for_app(['g++', 'clang++'])
+@for_app('g++', 'clang++')
def match(command):
return ('This file requires compil... | Fix the cpp<I> rule | py |
diff --git a/buildbot/changes/hgbuildbot.py b/buildbot/changes/hgbuildbot.py
index <HASH>..<HASH> 100644
--- a/buildbot/changes/hgbuildbot.py
+++ b/buildbot/changes/hgbuildbot.py
@@ -83,7 +83,7 @@ def hook(ui, repo, hooktype, node=None, source=None, **kwargs):
for rev in xrange(start, end):
# send... | (closes #<I>) use read(n) instead of the (now-removed) extract method (patch from xyld) | py |
diff --git a/python/mxnet/optimizer.py b/python/mxnet/optimizer.py
index <HASH>..<HASH> 100644
--- a/python/mxnet/optimizer.py
+++ b/python/mxnet/optimizer.py
@@ -144,19 +144,19 @@ class SGD(Optimizer):
lr = self.lr_scheduler(self.iteration)
else:
lr = self.lr
+
+ grad = grad *... | also do grad clipping when momentum == 0 | py |
diff --git a/tests/test_summarizers/test_lex_rank.py b/tests/test_summarizers/test_lex_rank.py
index <HASH>..<HASH> 100644
--- a/tests/test_summarizers/test_lex_rank.py
+++ b/tests/test_summarizers/test_lex_rank.py
@@ -55,20 +55,20 @@ class TestLexRank(unittest.TestCase):
metrics = summarizer._compute_idf(sent... | Fixed Lex rank test with fixed IDF | py |
diff --git a/term2048/game.py b/term2048/game.py
index <HASH>..<HASH> 100644
--- a/term2048/game.py
+++ b/term2048/game.py
@@ -85,6 +85,8 @@ class Game:
while True:
os.system(Game.__clear)
print self.__str__(margins={'left':4, 'top':4, 'bottom':4})
+ if self.board.won() or ... | printing board one more time before the game's end | py |
diff --git a/consul/base.py b/consul/base.py
index <HASH>..<HASH> 100644
--- a/consul/base.py
+++ b/consul/base.py
@@ -567,6 +567,9 @@ class Consul(object):
The service maintenance endpoint allows placing a given service
into "maintenance mode".
+ *service_id* is the i... | Doc strings for service maintenance mode missing service_id | py |
diff --git a/django_fsm/management/commands/graph_transitions.py b/django_fsm/management/commands/graph_transitions.py
index <HASH>..<HASH> 100644
--- a/django_fsm/management/commands/graph_transitions.py
+++ b/django_fsm/management/commands/graph_transitions.py
@@ -55,9 +55,10 @@ def generate_dot(fields_data):
... | Handle case where transition.target.allowed_states is None | py |
diff --git a/pyzotero/zotero.py b/pyzotero/zotero.py
index <HASH>..<HASH> 100644
--- a/pyzotero/zotero.py
+++ b/pyzotero/zotero.py
@@ -443,15 +443,6 @@ class Zotero(object):
i = item)
return self._build_query(query_string)
- def check_updated(self, payload):
- """
- Check if an item... | Removing check_updated method This method isn't really required, because you'll get a precondition failed error if you try to modify an item that's been modified on the server | py |
diff --git a/nose/test_streamdf.py b/nose/test_streamdf.py
index <HASH>..<HASH> 100644
--- a/nose/test_streamdf.py
+++ b/nose/test_streamdf.py
@@ -17,6 +17,7 @@ def expected_failure(test):
raise AssertionError('Test is expected to fail, but passed instead')
return inner
+@expected_failure
def test_... | label Fardal test as expected failure | py |
diff --git a/django_fsm_log/models.py b/django_fsm_log/models.py
index <HASH>..<HASH> 100644
--- a/django_fsm_log/models.py
+++ b/django_fsm_log/models.py
@@ -31,8 +31,10 @@ class StateLog(models.Model):
self.transition
)
+def connect_transition_receivers():
+ backend = import_by_path(setting... | wrap signal receiver connects in a function | py |
diff --git a/integration_tests/blockstack_integration_tests/scenarios/name_pre_regup_subdomain_sequence_bigzonefile_indep.py b/integration_tests/blockstack_integration_tests/scenarios/name_pre_regup_subdomain_sequence_bigzonefile_indep.py
index <HASH>..<HASH> 100644
--- a/integration_tests/blockstack_integration_tests/... | generate the address with the right encoding so DID tests pass | py |
diff --git a/jarn/mkrelease/setuptools.py b/jarn/mkrelease/setuptools.py
index <HASH>..<HASH> 100644
--- a/jarn/mkrelease/setuptools.py
+++ b/jarn/mkrelease/setuptools.py
@@ -28,7 +28,7 @@ class Setuptools(object):
"""Interface to setuptools."""
def __init__(self, process=None):
- self.process = proc... | Refresh env before every popen. | py |
diff --git a/ccmlib/node.py b/ccmlib/node.py
index <HASH>..<HASH> 100644
--- a/ccmlib/node.py
+++ b/ccmlib/node.py
@@ -835,10 +835,8 @@ class Node(object):
info_message=self.name)
# Need to update the node's environment for nodetool and other tools.
# (e.g. th... | update (instead of replace) node environment variables when starting prior to this change, a node's environment variables set during cluster creation would be overridden and persisted in node config when start is called | py |
diff --git a/demosys/resources/meta.py b/demosys/resources/meta.py
index <HASH>..<HASH> 100644
--- a/demosys/resources/meta.py
+++ b/demosys/resources/meta.py
@@ -58,6 +58,14 @@ class ProgramDescription(ResourceDescription):
def fragment_shader(self):
return self._kwargs.get('fragment_shader')
+ @... | Include geometry shader properties in ProgramMeta | py |
diff --git a/tests/datasource/generator/test_query_generator.py b/tests/datasource/generator/test_query_generator.py
index <HASH>..<HASH> 100644
--- a/tests/datasource/generator/test_query_generator.py
+++ b/tests/datasource/generator/test_query_generator.py
@@ -67,6 +67,6 @@ def test_get_available_data_asset_names_for... | Removing type hinting for older versions | py |
diff --git a/web_pdb/__init__.py b/web_pdb/__init__.py
index <HASH>..<HASH> 100644
--- a/web_pdb/__init__.py
+++ b/web_pdb/__init__.py
@@ -230,7 +230,7 @@ class WebPdb(Pdb):
:return: a listing of ``var = value`` pairs sorted alphabetically
:rtype: unicode
"""
- return self._format_vari... | Fix a bug when local variables cannot be modified from the debugger console This fixes #<I>. | py |
diff --git a/qiskit/algorithms/algorithm_result.py b/qiskit/algorithms/algorithm_result.py
index <HASH>..<HASH> 100644
--- a/qiskit/algorithms/algorithm_result.py
+++ b/qiskit/algorithms/algorithm_result.py
@@ -1,6 +1,6 @@
# This code is part of Qiskit.
#
-# (C) Copyright IBM 2020.
+# (C) Copyright IBM 2020, 2021.
#... | Improve AlgorithmResult string representation and combine (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,9 +55,9 @@ setup(
long_description=_read('README.rst'),
platforms=('Any'),
- author='horneds',
+ author='Kirill Klenov',
author_email='horneds@gmail.com',
- url='http://github.com/horneds/pylama_p... | Fix project 'url' and 'author' fields. | py |
diff --git a/xdis/util.py b/xdis/util.py
index <HASH>..<HASH> 100644
--- a/xdis/util.py
+++ b/xdis/util.py
@@ -70,6 +70,17 @@ def pretty_flags(flags):
names.reverse()
return "%s (%s)" % (result, " | ".join(names))
+def code_has_star_arg(code):
+ """Return True iff
+ the code object has a variable posi... | Move utility code from uncompyle here. | py |
diff --git a/salt/modules/state.py b/salt/modules/state.py
index <HASH>..<HASH> 100644
--- a/salt/modules/state.py
+++ b/salt/modules/state.py
@@ -4,7 +4,9 @@ Control the state system on the minion
# Import python libs
import os
+import json
import copy
+import shutil
import logging
import tarfile
import tempfi... | `os.sep` is not callable. Add missing imports. Fix except `OSError` assignment. | py |
diff --git a/squad/api/rest.py b/squad/api/rest.py
index <HASH>..<HASH> 100644
--- a/squad/api/rest.py
+++ b/squad/api/rest.py
@@ -52,8 +52,8 @@ class ProjectStatusFilter(filters.FilterSet):
class BuildFilter(filters.FilterSet):
- project = filters.RelatedFilter(ProjectFilter, name="project", queryset=Project.o... | api: speed up API UI for builds | py |
diff --git a/dwave/system/package_info.py b/dwave/system/package_info.py
index <HASH>..<HASH> 100644
--- a/dwave/system/package_info.py
+++ b/dwave/system/package_info.py
@@ -15,7 +15,7 @@
# =============================================================================
__all__ = ['__version__', '__author__', '__author... | Release version <I> Fixes --- - Doctest | py |
diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py
index <HASH>..<HASH> 100644
--- a/toot/tui/timeline.py
+++ b/toot/tui/timeline.py
@@ -238,7 +238,8 @@ class StatusDetails(urwid.Pile):
yield ("pack", urwid.Text([("bold", "Media attachment"), " (", m["type"], ")"]))
if m["descrip... | Try to use media's text_url if present This field is sometimes provides and gives a shortened URL which is easier to click on in a terminal. | py |
diff --git a/adminrestrict/test_settings.py b/adminrestrict/test_settings.py
index <HASH>..<HASH> 100644
--- a/adminrestrict/test_settings.py
+++ b/adminrestrict/test_settings.py
@@ -21,7 +21,7 @@ if django.VERSION[:2] >= (1, 8):
'django.template.context_processors.debug',
'dja... | Fix appending to list, for Django <I>/<I> messages middleware | py |
diff --git a/networkzero/discovery.py b/networkzero/discovery.py
index <HASH>..<HASH> 100644
--- a/networkzero/discovery.py
+++ b/networkzero/discovery.py
@@ -607,7 +607,7 @@ def reset_beacon():
if __name__ == '__main__':
handler = logging.StreamHandler()
- handler.setLevel(logging.DEBUG)
+ handler.setLev... | Dial back the output when discovery is run as a module | py |
diff --git a/opencensus/__version__.py b/opencensus/__version__.py
index <HASH>..<HASH> 100644
--- a/opencensus/__version__.py
+++ b/opencensus/__version__.py
@@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-__version__ = '1.0.8'
+__version__ ... | s/<I>/<I> (#<I>) | py |
diff --git a/bernhard/__init__.py b/bernhard/__init__.py
index <HASH>..<HASH> 100644
--- a/bernhard/__init__.py
+++ b/bernhard/__init__.py
@@ -15,8 +15,22 @@ class TransportError(Exception):
class TCPTransport(object):
def __init__(self, host, port):
- self.sock = socket.socket(socket.AF_INET, socket.SOC... | Add dual-stack support for TCP transport. | py |
diff --git a/PyFunceble/dataset/base.py b/PyFunceble/dataset/base.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/dataset/base.py
+++ b/PyFunceble/dataset/base.py
@@ -91,13 +91,13 @@ class DatasetBase:
@functools.wraps(func)
def wrapper(self, *args, **kwargs):
- if not isinstance(self.sou... | Fix issus found while writting the tests. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -5,9 +5,9 @@ from copy import deepcopy
from django.conf import settings
from django.template.base import Context, Template
try:
- from django.test.utils import override_settings
-except ImportError: # older Djangos
... | Restore import order in tests (ref: commit <I>de<I>df9) | py |
diff --git a/PySimpleGUI.py b/PySimpleGUI.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUI.py
+++ b/PySimpleGUI.py
@@ -1,5 +1,5 @@
#!/usr/bin/python3
-version = __version__ = "4.56.0.7 Unreleased"
+version = __version__ = "4.56.0.8 Unreleased"
_change_log = """
Changelog since 4.56.0 released to PyPI on 5-Jan-... | Fixed typo - CICKED should be CLICKED in the able header code. | py |
diff --git a/shell-cmd/nr.py b/shell-cmd/nr.py
index <HASH>..<HASH> 100755
--- a/shell-cmd/nr.py
+++ b/shell-cmd/nr.py
@@ -1220,7 +1220,7 @@ def mainCommandProcessing(nr, args):
r['result'] = findSomethingSomewhere(d, mspec[mspecFIELDKey])
else:
... | fix un-init var in exception case | py |
diff --git a/saltcloud/__init__.py b/saltcloud/__init__.py
index <HASH>..<HASH> 100644
--- a/saltcloud/__init__.py
+++ b/saltcloud/__init__.py
@@ -41,7 +41,9 @@ class Cloud(object):
'''
fun = '{0}.create'.format(self.provider(vm_))
if not fun in self.clouds:
- print('Public cloud p... | Insert branches so we don't just make everything | py |
diff --git a/pandas/tests/series/methods/test_explode.py b/pandas/tests/series/methods/test_explode.py
index <HASH>..<HASH> 100644
--- a/pandas/tests/series/methods/test_explode.py
+++ b/pandas/tests/series/methods/test_explode.py
@@ -88,7 +88,6 @@ def test_typical_usecase():
columns=["var1", "var2"],
)
... | Removed unnecessary variable call (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@ class PyTest(TestCommand):
setup(
name='graphene',
- version='0.9.1',
+ version='0.10.0',
description='GraphQL Framework for Python',
long_description=open('README.rst').read(), | Updated version to <I> | py |
diff --git a/glitter/pages/forms.py b/glitter/pages/forms.py
index <HASH>..<HASH> 100644
--- a/glitter/pages/forms.py
+++ b/glitter/pages/forms.py
@@ -36,6 +36,6 @@ class PageAdminForm(forms.ModelForm):
class Meta:
model = Page
widgets = {
- 'glitter_app_name': forms.widgets.Select(choic... | Fixed indentation issues in Glitter Apps work For #<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ description = open(join(dirname(__file__), 'README.rst')).read()
setup(
name='pprofile',
- version='1.4.1',
+ version='1.5',
author='Vincent Pelletier',
author_email='plr.vincent@gmail.com'... | Bump to <I> . | py |
diff --git a/openquake/risklib/riskinput.py b/openquake/risklib/riskinput.py
index <HASH>..<HASH> 100644
--- a/openquake/risklib/riskinput.py
+++ b/openquake/risklib/riskinput.py
@@ -367,6 +367,8 @@ class GmfGetter(object):
"""
Initialize the computers. Should be called on the workers
"""
+ ... | Speedup [skip hazardlib] | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.