diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/src/adafruit_blinka/microcontroller/rp2040/i2c.py b/src/adafruit_blinka/microcontroller/rp2040/i2c.py
index <HASH>..<HASH> 100644
--- a/src/adafruit_blinka/microcontroller/rp2040/i2c.py
+++ b/src/adafruit_blinka/microcontroller/rp2040/i2c.py
@@ -55,9 +55,8 @@ class I2C:
self.writeto(address, b... | When reading from I2C, read into buffer_in from in_start | py |
diff --git a/fusesoc/main.py b/fusesoc/main.py
index <HASH>..<HASH> 100644
--- a/fusesoc/main.py
+++ b/fusesoc/main.py
@@ -133,7 +133,11 @@ def init(args):
else:
pr_info("Initializing orpsoc-cores")
args = ['clone', REPO_URI, cores_root]
- Launcher('git', args).run()
+ try:
+ ... | Improve handling when git command not available during init | py |
diff --git a/LiSE/LiSE/handle.py b/LiSE/LiSE/handle.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/handle.py
+++ b/LiSE/LiSE/handle.py
@@ -562,8 +562,10 @@ class EngineHandle(object):
return {
k: v for (k, v) in node.items()
if k not in {
- 'arrival_time',
- ... | Make the slow delta delete cache for deleted nodes And fix up the node stat copy a little, it was noisy | py |
diff --git a/ceph_deploy/hosts/debian/install.py b/ceph_deploy/hosts/debian/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/hosts/debian/install.py
+++ b/ceph_deploy/hosts/debian/install.py
@@ -39,9 +39,8 @@ def install(distro, version_kind, version, adjust_repos, **kw):
protocol=protocol,
... | hosts/debian/install: gitbuilder.ceph.com does not do https | py |
diff --git a/asq/test/test_log.py b/asq/test/test_log.py
index <HASH>..<HASH> 100644
--- a/asq/test/test_log.py
+++ b/asq/test/test_log.py
@@ -120,3 +120,9 @@ class TestLog(unittest.TestCase):
'take two : [1] = 8',
'take two : END (EAGER)' ]
self.assertEqual(logger.log, c)
+
+ ... | Coverage for calling log() on a closed Queryable. | py |
diff --git a/test/test_macro.py b/test/test_macro.py
index <HASH>..<HASH> 100644
--- a/test/test_macro.py
+++ b/test/test_macro.py
@@ -127,7 +127,7 @@ char c1[] = DATE;
print(self.text_output)
self.assertIn("c1", self.namespace)
import datetime
- this_date = datetime.datetime.now().str... | Thing we learn today. - in front of format remove the 0 padding and makes it like C | py |
diff --git a/giotto/controllers/http.py b/giotto/controllers/http.py
index <HASH>..<HASH> 100644
--- a/giotto/controllers/http.py
+++ b/giotto/controllers/http.py
@@ -58,7 +58,9 @@ class HTTPController(GiottoController):
request = make_duplicate_request(self.request)
request.method = 'GET'
... | <I> status code when InvalidInput is raised | py |
diff --git a/airflow/models.py b/airflow/models.py
index <HASH>..<HASH> 100755
--- a/airflow/models.py
+++ b/airflow/models.py
@@ -4591,8 +4591,7 @@ class DagRun(Base, LoggingMixin):
break
duration = (datetime.utcnow() - start_dttm).total_seconds() * 1000
- Stats.timing("dagrun.de... | [AIRFLOW-<I>] Remove timestamp from metric name Closes #<I> from wrp/datetime | py |
diff --git a/deployutils/__init__.py b/deployutils/__init__.py
index <HASH>..<HASH> 100644
--- a/deployutils/__init__.py
+++ b/deployutils/__init__.py
@@ -22,4 +22,4 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-__version__ = '0.9.4'
+__ver... | bumps version number to <I>-dev | py |
diff --git a/test/on_yubikey/test_cli_oath.py b/test/on_yubikey/test_cli_oath.py
index <HASH>..<HASH> 100644
--- a/test/on_yubikey/test_cli_oath.py
+++ b/test/on_yubikey/test_cli_oath.py
@@ -129,6 +129,8 @@ def additional_tests(ykman_cli):
ykman_cli('oath', 'add', 'abba', 'abba', '--algorithm', 'SHA512')
... | Don't run test of <I> OATH creds on NEO | py |
diff --git a/spyderlib/utils/iofuncs.py b/spyderlib/utils/iofuncs.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/iofuncs.py
+++ b/spyderlib/utils/iofuncs.py
@@ -432,6 +432,7 @@ class IOFunctions(object):
save_funcs[ext] = savefunc
load_filters.insert(0, to_text_string(_("Supported files... | Add ability to select an unsupport file and choose the import type. | py |
diff --git a/worker/buildbot_worker/test/unit/test_scripts_create_slave.py b/worker/buildbot_worker/test/unit/test_scripts_create_slave.py
index <HASH>..<HASH> 100644
--- a/worker/buildbot_worker/test/unit/test_scripts_create_slave.py
+++ b/worker/buildbot_worker/test/unit/test_scripts_create_slave.py
@@ -596,8 +596,8 ... | rename local buildslave_class_mock -> worker_class_mock | py |
diff --git a/openquake/engine/calculators/base.py b/openquake/engine/calculators/base.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/calculators/base.py
+++ b/openquake/engine/calculators/base.py
@@ -335,6 +335,7 @@ class Calculator(object):
self.job.calculation.export_dir,
... | Restore a log message removed by mistake Former-commit-id: <I>ac5ba<I>a4a<I>a<I>bd [formerly 8d5c2b3ee5b<I>a<I>effb2ff3d<I>d<I>] Former-commit-id: <I>c<I>bd<I>dac<I> | py |
diff --git a/install_win.py b/install_win.py
index <HASH>..<HASH> 100644
--- a/install_win.py
+++ b/install_win.py
@@ -69,10 +69,10 @@ class user:
"""
Parameters for a user installation
"""
- VENV = os.path.expanduser('~\\openquake')
+ VENV = os.path.expanduser('~/openquake')
CFG = os.path.joi... | change folder to use / instead of \ | py |
diff --git a/pytest_asyncio/plugin.py b/pytest_asyncio/plugin.py
index <HASH>..<HASH> 100644
--- a/pytest_asyncio/plugin.py
+++ b/pytest_asyncio/plugin.py
@@ -153,8 +153,9 @@ def pytest_fixture_setup(fixturedef, request):
@pytest.hookimpl(tryfirst=True, hookwrapper=True)
def pytest_pyfunc_call(pyfuncitem):
"""
-... | doc: Updated docstring of pytest_pyfunc_call. | py |
diff --git a/buildbot_travis/configurator.py b/buildbot_travis/configurator.py
index <HASH>..<HASH> 100644
--- a/buildbot_travis/configurator.py
+++ b/buildbot_travis/configurator.py
@@ -188,6 +188,7 @@ class TravisConfigurator(object):
self.config['builders'].append(BuilderConfig(
name=deploy_nam... | Add the environment var in deploy build Sem-Ver: bugfix | py |
diff --git a/nanoplot/version.py b/nanoplot/version.py
index <HASH>..<HASH> 100644
--- a/nanoplot/version.py
+++ b/nanoplot/version.py
@@ -1 +1 @@
-__version__ = "0.12.0"
+__version__ = "0.12.9" | bumping version to <I> | py |
diff --git a/tests/integration-tests/unittest_integration_test.py b/tests/integration-tests/unittest_integration_test.py
index <HASH>..<HASH> 100644
--- a/tests/integration-tests/unittest_integration_test.py
+++ b/tests/integration-tests/unittest_integration_test.py
@@ -504,7 +504,10 @@ def test_twisted_trial(venv):
... | Add workaround for Python <I> on Windows | py |
diff --git a/test/multi_class/scripts/multiclass.py b/test/multi_class/scripts/multiclass.py
index <HASH>..<HASH> 100644
--- a/test/multi_class/scripts/multiclass.py
+++ b/test/multi_class/scripts/multiclass.py
@@ -9,13 +9,13 @@ import pandas as pd
import numpy as np
# ----- stacking library -----
-from stacking.ba... | rename base_fixed_fold.py to base.py | py |
diff --git a/lightcli.py b/lightcli.py
index <HASH>..<HASH> 100644
--- a/lightcli.py
+++ b/lightcli.py
@@ -27,7 +27,7 @@
import os
import time
-__version__ = '0.3-alpha'
+__version__ = '0.4-beta' | Update version: <I>-beta | py |
diff --git a/pytry/many.py b/pytry/many.py
index <HASH>..<HASH> 100644
--- a/pytry/many.py
+++ b/pytry/many.py
@@ -10,7 +10,11 @@ def execute(cmd, checked=None):
else:
c = cmd.pop(0)
if c.startswith('[') and c.endswith(']'):
- opts = c[1:-1].split('~')
+ if ':' in c:
+ ... | Added a:b notation to many | py |
diff --git a/fa2/fa2util.py b/fa2/fa2util.py
index <HASH>..<HASH> 100644
--- a/fa2/fa2util.py
+++ b/fa2/fa2util.py
@@ -279,7 +279,7 @@ def adjustSpeedAndApplyForces(nodes, speed, speedEfficiency, jitterTolerance):
minSpeedEfficiency = 0.05
# Protective against erratic behavior
- if totalSwinging / totalE... | fa2util: fix occasional zerodivisionerror sometimes the totalEffectiveTraction vanishes which causes ZeroDivisionError Here I check that it is nonzero before dividing by it | py |
diff --git a/deployment/freebsd/__init__.py b/deployment/freebsd/__init__.py
index <HASH>..<HASH> 100644
--- a/deployment/freebsd/__init__.py
+++ b/deployment/freebsd/__init__.py
@@ -38,7 +38,9 @@ def deploy(config, steps=[]):
def bootstrap(config):
# run ezjailremote's basic bootstrap
+ orig_user = fab.env[... | ezjail.bootstrap changes the env['user']. until that's fixed we need to be defensive here. | py |
diff --git a/openxc/measurements.py b/openxc/measurements.py
index <HASH>..<HASH> 100644
--- a/openxc/measurements.py
+++ b/openxc/measurements.py
@@ -183,7 +183,7 @@ class EngineSpeed(NumericMeasurement):
class FineOdometer(NumericMeasurement):
name = "fine_odometer_since_restart"
- valid_range = Range(0, 1... | Increase range of fine odometer measurement. | py |
diff --git a/py/selenium/webdriver/common/action_chains.py b/py/selenium/webdriver/common/action_chains.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/common/action_chains.py
+++ b/py/selenium/webdriver/common/action_chains.py
@@ -331,12 +331,12 @@ class ActionChains(object):
- on_element: The ele... | [oy] Fix issue with w3c actions releasing on element (#<I>) Releasing a held mouse button on an element | py |
diff --git a/shoebot/gui/var_window.py b/shoebot/gui/var_window.py
index <HASH>..<HASH> 100644
--- a/shoebot/gui/var_window.py
+++ b/shoebot/gui/var_window.py
@@ -8,7 +8,7 @@ TEXT = 2
BOOLEAN = 3
BUTTON = 4
-ICON_FILE = next(f for f in ['/usr/share/shoebot/shoebot-ide.png', os.path.join(sys.prefix, 'share', 'pixmap... | Fix icon file location in recent Debian versions | py |
diff --git a/discord/gateway.py b/discord/gateway.py
index <HASH>..<HASH> 100644
--- a/discord/gateway.py
+++ b/discord/gateway.py
@@ -636,7 +636,7 @@ class DiscordWebSocket:
}
await self.send_as_json(payload)
- async def request_chunks(self, guild_id, query=None, *, limit, user_ids=None, presenc... | Fix SyntaxError from PR implementing presences in member querying | py |
diff --git a/codecov/__init__.py b/codecov/__init__.py
index <HASH>..<HASH> 100644
--- a/codecov/__init__.py
+++ b/codecov/__init__.py
@@ -181,7 +181,7 @@ def try_to_run(cmd):
try:
return check_output(cmd, shell=True)
except subprocess.CalledProcessError as e:
- write(' Error running `%s`: ... | Better error message when try_to_run command fails The `CalledProcessError` object should always have a `.output` attribute, although it may be None, so the `getattr()` will never hit the fallback condition. The logical `or` operator should use the fallback if `e.output` is either None or an empty string, because t... | py |
diff --git a/nanolyse/NanoLyse.py b/nanolyse/NanoLyse.py
index <HASH>..<HASH> 100644
--- a/nanolyse/NanoLyse.py
+++ b/nanolyse/NanoLyse.py
@@ -16,8 +16,13 @@ def main():
def getArgs():
parser = argparse.ArgumentParser(
- description="Remove reads mapping to the lambda genome, \
- read... | testing if generator is empty using next() | py |
diff --git a/pyethereum/chainmanager.py b/pyethereum/chainmanager.py
index <HASH>..<HASH> 100644
--- a/pyethereum/chainmanager.py
+++ b/pyethereum/chainmanager.py
@@ -92,15 +92,14 @@ def config_chainmanager(sender, **kwargs):
@receiver(signals.transactions_data_requested)
def transactions_data_requested_handler(sen... | fix: wrong args passed to queue.put | py |
diff --git a/multiqc/modules/seqyclean/seqyclean.py b/multiqc/modules/seqyclean/seqyclean.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/seqyclean/seqyclean.py
+++ b/multiqc/modules/seqyclean/seqyclean.py
@@ -42,6 +42,9 @@ class MultiqcModule(BaseMultiqcModule):
self.seqyclean_data = self.ignore_sample... | Fix ignore-samples: SeqyClean | py |
diff --git a/dftimewolf/lib/exporters/timesketch.py b/dftimewolf/lib/exporters/timesketch.py
index <HASH>..<HASH> 100644
--- a/dftimewolf/lib/exporters/timesketch.py
+++ b/dftimewolf/lib/exporters/timesketch.py
@@ -119,7 +119,7 @@ class TimesketchExporter(module.BaseModule):
def _WaitForTimelines(self):
"""Wait... | Minor bug fix in the TS exporter. (#<I>) | py |
diff --git a/c7n/policy.py b/c7n/policy.py
index <HASH>..<HASH> 100644
--- a/c7n/policy.py
+++ b/c7n/policy.py
@@ -954,8 +954,9 @@ class Policy(object):
if 'mode' in self.data:
if 'role' in self.data['mode'] and not self.data['mode']['role'].startswith("arn:aws"):
- self.data['mod... | aws - use partition when generating lambda policy iam role arn (#<I>) (#<I>) | py |
diff --git a/littlechef/runner.py b/littlechef/runner.py
index <HASH>..<HASH> 100644
--- a/littlechef/runner.py
+++ b/littlechef/runner.py
@@ -182,7 +182,7 @@ def _node_runner():
def deploy_chef(ask="yes", version="11"):
"""Install chef-solo on a node"""
env.host_string = lib.get_env_host_string()
- if me... | We do not care about method anymore. | py |
diff --git a/littletable.py b/littletable.py
index <HASH>..<HASH> 100644
--- a/littletable.py
+++ b/littletable.py
@@ -777,10 +777,7 @@ class Table(object):
val = fn(rec)
except Exception:
val = default
- if isinstance(rec, DataObject):
- obje... | Fix compute to handle namedtuple records correctly. Fixed demo code to use _orderby instead of deprecated _orderbydesc | py |
diff --git a/AWSScout2/finding_ec2.py b/AWSScout2/finding_ec2.py
index <HASH>..<HASH> 100644
--- a/AWSScout2/finding_ec2.py
+++ b/AWSScout2/finding_ec2.py
@@ -39,12 +39,13 @@ class Ec2Finding(Finding):
self.addItem(key)
def checkNetworkACLs(self, key, obj):
- if 'network_acls' in obj:
- ... | Fix network ACLs vulnerability: skip "no-vpc" | py |
diff --git a/foolbox/zoo/git_cloner.py b/foolbox/zoo/git_cloner.py
index <HASH>..<HASH> 100644
--- a/foolbox/zoo/git_cloner.py
+++ b/foolbox/zoo/git_cloner.py
@@ -21,7 +21,7 @@ def clone(git_uri):
if not exists_locally:
_clone_repo(git_uri, local_path)
else:
- logging.info("Git repository alre... | add pragma: no cover to logging line | py |
diff --git a/xenserver/vm_vdi_cleaner.py b/xenserver/vm_vdi_cleaner.py
index <HASH>..<HASH> 100755
--- a/xenserver/vm_vdi_cleaner.py
+++ b/xenserver/vm_vdi_cleaner.py
@@ -27,17 +27,17 @@ if os.path.exists(os.path.join(possible_topdir, "nova", "__init__.py")):
sys.path.insert(0, possible_topdir)
+from nova ... | Remove flags.DECLARE The cfg.ConfigOpts class has an equivalent method, so lets use that. Change-Id: I<I>d<I>d<I>a0ffd<I>c<I>ff<I> | py |
diff --git a/cyphi/models.py b/cyphi/models.py
index <HASH>..<HASH> 100644
--- a/cyphi/models.py
+++ b/cyphi/models.py
@@ -250,6 +250,11 @@ class Mice:
def __init__(self, mip):
self._mip = mip
+ if (self.repertoire is not None and
+ any(self.repertoire.shape[i] != 2 for i in
+ ... | Check purview matches repertoire when making MICE | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ if sys.version_info[:2] < (2, 7):
setup(
name='luigi',
- version='1.0.23',
+ version='1.0.24',
description='Workflow mgmgt + task scheduling + dependency resolution',
long_description=lon... | bumped version to <I> | py |
diff --git a/umi_tools/group.py b/umi_tools/group.py
index <HASH>..<HASH> 100644
--- a/umi_tools/group.py
+++ b/umi_tools/group.py
@@ -456,7 +456,7 @@ def main(argv=None):
gene_tag = metatag
else:
- inreads = infile.fetch()
+ inreads = infile.fetch(until_eof=options.output_... | resolves bug introduced with group + unmapped reads | py |
diff --git a/tests/test_condition.py b/tests/test_condition.py
index <HASH>..<HASH> 100644
--- a/tests/test_condition.py
+++ b/tests/test_condition.py
@@ -218,3 +218,14 @@ def test_name_ref_with_path(renderer, engine, local_bind, document_type):
'((attribute_not_exists(#n0)) AND (#n1.#n2 >= :v3))'}
re... | Failing test for list paths #<I> | py |
diff --git a/salt/modules/tls.py b/salt/modules/tls.py
index <HASH>..<HASH> 100644
--- a/salt/modules/tls.py
+++ b/salt/modules/tls.py
@@ -1642,7 +1642,7 @@ def cert_info(cert, digest='sha256'):
try:
ext = cert.get_extension(i)
key = salt.utils.stringutils.to_unicode(ext.g... | tls.cert_info: strip newlines/spaces from extensions | py |
diff --git a/netpyne/sim/__init__.py b/netpyne/sim/__init__.py
index <HASH>..<HASH> 100644
--- a/netpyne/sim/__init__.py
+++ b/netpyne/sim/__init__.py
@@ -23,7 +23,7 @@ if '-nogui' in sys.argv:
from neuron import h
try:
h.nrnmpi_init()
-pass:
+except:
pass
#-----------------------------------------------... | Added h.nrnmpi_init() at initialization so can run mpi sims via python instead of nrniv -mpi | py |
diff --git a/smartcard/CardConnection.py b/smartcard/CardConnection.py
index <HASH>..<HASH> 100644
--- a/smartcard/CardConnection.py
+++ b/smartcard/CardConnection.py
@@ -210,3 +210,13 @@ class CardConnection(Observable):
Subclasses must override this method for implementing get attrib."""
pass
+
+ ... | CardConnection: Add context management A context manager to handle the card connection in a proper way. It makes sure, the function disconnect is called when the context is exited. | py |
diff --git a/pyinfra/modules/files.py b/pyinfra/modules/files.py
index <HASH>..<HASH> 100644
--- a/pyinfra/modules/files.py
+++ b/pyinfra/modules/files.py
@@ -304,7 +304,7 @@ def _create_remote_dir(state, host, remote_filename, user, group):
def put(
state, host, local_filename, remote_filename,
user=None, g... | Add `force` kwarg to `files.put` operation. | py |
diff --git a/salt/utils/schedule.py b/salt/utils/schedule.py
index <HASH>..<HASH> 100644
--- a/salt/utils/schedule.py
+++ b/salt/utils/schedule.py
@@ -96,7 +96,7 @@ class Schedule(object):
rets.append(self.schedule_returner)
for returner in rets:
if returner in self.re... | Fix #<I> The scheduler was not explicitly calling the returner function | py |
diff --git a/loompy/loompy.py b/loompy/loompy.py
index <HASH>..<HASH> 100755
--- a/loompy/loompy.py
+++ b/loompy/loompy.py
@@ -983,6 +983,20 @@ def create(filename: str, layers: Union[np.ndarray, Dict[str, np.ndarray], loomp
if "" not in layers:
raise ValueError("Data for default layer must be provided")
+ # San... | sanity checks on create() | py |
diff --git a/master/buildbot/schedulers/basic.py b/master/buildbot/schedulers/basic.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/schedulers/basic.py
+++ b/master/buildbot/schedulers/basic.py
@@ -129,8 +129,11 @@ class BaseBasicScheduler(base.BaseScheduler):
return
if self._stable_t... | handle failures from stableTimerFired Fixes #<I>. | py |
diff --git a/ctypeslib/clang2py.py b/ctypeslib/clang2py.py
index <HASH>..<HASH> 100644
--- a/ctypeslib/clang2py.py
+++ b/ctypeslib/clang2py.py
@@ -204,7 +204,7 @@ def main(argv=None):
parser.epilog = """Cross-architecture: You can pass target modifiers to clang.
For example, try --clang-args="-target x86_64" ... | Use function provided argv in clang2py main The main() function of clang2py which accepts an optional argv argument instead of sys.argv, but does not use it. This change passes argv into argparse.parse_args so it will be used if present. | py |
diff --git a/src/container_support/training.py b/src/container_support/training.py
index <HASH>..<HASH> 100644
--- a/src/container_support/training.py
+++ b/src/container_support/training.py
@@ -1,11 +1,19 @@
+import container_support as cs
+import logging
+import os
import traceback
from container_support import Tra... | Use container exit code to exit Trainer process. (#9) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,13 @@
# -*- coding: utf-8 -*-
-from setuptools import setup, Extension
+try:
+ from setuptools import setup, Extension
+except ImportError:
+ from distutils.core import setup, Extension
+
from sys import vers... | Use setuptools in setup.py by default * ... but fallback to distutils. | py |
diff --git a/casscache.py b/casscache.py
index <HASH>..<HASH> 100644
--- a/casscache.py
+++ b/casscache.py
@@ -19,13 +19,6 @@ except ImportError:
from cassandra.cluster import Cluster, Session
-try:
- from cassandra.io.libevreactor import LibevConnection
- ConnectionClass = LibevConnection
-except ImportErro... | cassandra-driver by default picks the most efficient reactor | py |
diff --git a/tests/urls.py b/tests/urls.py
index <HASH>..<HASH> 100644
--- a/tests/urls.py
+++ b/tests/urls.py
@@ -1,10 +1,7 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
-try:
- from django.conf.urls.defaults import patterns, url
-except ImportError:
- from django.conf.urls import patter... | update urls for django <I>+ in tests | py |
diff --git a/limpyd/contrib/collection.py b/limpyd/contrib/collection.py
index <HASH>..<HASH> 100644
--- a/limpyd/contrib/collection.py
+++ b/limpyd/contrib/collection.py
@@ -699,7 +699,7 @@ class ExtendedCollectionManager(CollectionManager):
# prepare the collection
self.stored_key = key
- s... | Correct bug with collection.store if redis has no scripting | py |
diff --git a/astropy_helpers/sphinx/conf.py b/astropy_helpers/sphinx/conf.py
index <HASH>..<HASH> 100644
--- a/astropy_helpers/sphinx/conf.py
+++ b/astropy_helpers/sphinx/conf.py
@@ -26,7 +26,7 @@ from distutils.version import LooseVersion
# minor parts of the version number, not the micro. To do a more
# specific v... | Updating the required minimum version number for sphinx | py |
diff --git a/examples/opf/clients/hotgym/prediction/one_gym/base_swarm_description.py b/examples/opf/clients/hotgym/prediction/one_gym/base_swarm_description.py
index <HASH>..<HASH> 100644
--- a/examples/opf/clients/hotgym/prediction/one_gym/base_swarm_description.py
+++ b/examples/opf/clients/hotgym/prediction/one_gym... | Reset swarm config to non-debug state. | py |
diff --git a/flask_restful/__init__.py b/flask_restful/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_restful/__init__.py
+++ b/flask_restful/__init__.py
@@ -34,7 +34,7 @@ def abort(http_status_code, **kwargs):
except HTTPException as e:
if len(kwargs):
e.data = kwargs
- raise e
+... | Keep tracebacks when an exception occurs | py |
diff --git a/speccer/runner.py b/speccer/runner.py
index <HASH>..<HASH> 100644
--- a/speccer/runner.py
+++ b/speccer/runner.py
@@ -211,6 +211,7 @@ folder they are in. Alternatively you may pass the tool the spec (ie.
os.chdir(arg)
sys.path.append(os.getcwd())
run_tests... | Make sure sys.path state gets restored after each test The current solution might fail if the code to be tested manipulates sys.path somehow. | py |
diff --git a/flask_uwsgi_websocket/websocket.py b/flask_uwsgi_websocket/websocket.py
index <HASH>..<HASH> 100644
--- a/flask_uwsgi_websocket/websocket.py
+++ b/flask_uwsgi_websocket/websocket.py
@@ -87,7 +87,7 @@ class WebSocket(object):
self.init_app(app)
self.timeout = timeout
self.rout... | use the Flask app's converters | py |
diff --git a/openid/server/server.py b/openid/server/server.py
index <HASH>..<HASH> 100644
--- a/openid/server/server.py
+++ b/openid/server/server.py
@@ -1504,12 +1504,14 @@ class Server(object):
associations I can make and how.
@type negotiator: L{openid.association.SessionNegotiator}
"""
-
- si... | Patch the openid.server.Server class to allow clients to provide signatory, encoder and decoder classes on instantiation. | py |
diff --git a/devtools/conda-recipe/run_test.py b/devtools/conda-recipe/run_test.py
index <HASH>..<HASH> 100644
--- a/devtools/conda-recipe/run_test.py
+++ b/devtools/conda-recipe/run_test.py
@@ -13,7 +13,7 @@ target_dir = os.path.dirname(junit_xml)
if not os.path.exists(target_dir):
os.makedirs(target_dir)
print... | no xdist on circleci | py |
diff --git a/plugit/__init__.py b/plugit/__init__.py
index <HASH>..<HASH> 100644
--- a/plugit/__init__.py
+++ b/plugit/__init__.py
@@ -6,8 +6,19 @@ import routes
from params import PI_BASE_URL
-app = Flask(getattr(config, 'PI_PROJECT_NAME', 'PlugIT-Project'), static_folder='media', static_url_path='{}media'.format... | Add docstring and better style in __init__.py | py |
diff --git a/justext/__main__.py b/justext/__main__.py
index <HASH>..<HASH> 100644
--- a/justext/__main__.py
+++ b/justext/__main__.py
@@ -205,7 +205,7 @@ def main():
elif a in get_stoplists():
stoplist = get_stoplist(a)
else:
- i... | Fix backslash in regex, thanks pytest :) | py |
diff --git a/pychromecast/socket_client.py b/pychromecast/socket_client.py
index <HASH>..<HASH> 100644
--- a/pychromecast/socket_client.py
+++ b/pychromecast/socket_client.py
@@ -921,7 +921,7 @@ class SocketClient(threading.Thread):
self.port,
)
else:
- raise No... | Fix f-string (#<I>) | py |
diff --git a/sievelib/managesieve.py b/sievelib/managesieve.py
index <HASH>..<HASH> 100644
--- a/sievelib/managesieve.py
+++ b/sievelib/managesieve.py
@@ -270,7 +270,8 @@ class Client(object):
if isinstance(code, six.binary_type):
code = code.decode("utf-8")
- data = data.decode("utf-8")
... | data maybe None after __read_response, handle that case | py |
diff --git a/rash/tests/test_database.py b/rash/tests/test_database.py
index <HASH>..<HASH> 100644
--- a/rash/tests/test_database.py
+++ b/rash/tests/test_database.py
@@ -322,6 +322,22 @@ class TestInMemoryDataBase(BaseTestCase):
counts = [r.command_count for r in records]
self.assertEqual(counts, [15... | Add test_search_command_sort_by_success_count | py |
diff --git a/pylogit/scobit.py b/pylogit/scobit.py
index <HASH>..<HASH> 100644
--- a/pylogit/scobit.py
+++ b/pylogit/scobit.py
@@ -365,7 +365,8 @@ def _scobit_transform_deriv_shape(systematic_utilities,
# Guard against overflow from moderate v but shape --> inf.
shape_too_big_idx = np.where((np.abs(systematic... | Fixing change to preserve earlier use of l'hopital's rule while still avoiding indexing error. | py |
diff --git a/librarypaste/mongostore.py b/librarypaste/mongostore.py
index <HASH>..<HASH> 100644
--- a/librarypaste/mongostore.py
+++ b/librarypaste/mongostore.py
@@ -25,7 +25,7 @@ class MongoDBDataStore(pymongo.Connection, DataStore):
id = gfs.put(data, encoding='utf-8')
doc.update(data_id=id... | Set write concern to 1 when saving pastes | py |
diff --git a/phy/utils/event.py b/phy/utils/event.py
index <HASH>..<HASH> 100644
--- a/phy/utils/event.py
+++ b/phy/utils/event.py
@@ -193,6 +193,9 @@ class ProgressReporter(EventEmitter):
def increment(self, **kwargs):
self._set_value(self._value + 1, **kwargs)
+ def reset(self):
+ self._valu... | Add reset() method to ProgressReporter. | py |
diff --git a/delphin/itsdb.py b/delphin/itsdb.py
index <HASH>..<HASH> 100644
--- a/delphin/itsdb.py
+++ b/delphin/itsdb.py
@@ -36,7 +36,7 @@ _primary_keys = [
# Non-class (i.e. static) functions
Field = namedtuple('Field', ['name', 'datatype', 'key', 'other', 'comment'])
-Field.__doc__ = '''
+'''
A tuple describin... | Don't overwrite docstring (only for py<I>+) | py |
diff --git a/freeze/views.py b/freeze/views.py
index <HASH>..<HASH> 100644
--- a/freeze/views.py
+++ b/freeze/views.py
@@ -18,9 +18,9 @@ def generate_static_site(request):
value = writer.write(data, html_in_memory = True, zip_in_memory = True)
#if zip_in_memory:
- resp... | Changed deprecated mimetype to content_type in views.py | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -1931,6 +1931,8 @@ class ClearFuncs(object):
'ret': clear_load['ret'],
}
+ if 'id' in extra:
+ load['id'] = extra['id']
if 'tgt_type' in cle... | Add id from originating minion if sent to the publish | py |
diff --git a/bio/fragments/generate_fragments.py b/bio/fragments/generate_fragments.py
index <HASH>..<HASH> 100755
--- a/bio/fragments/generate_fragments.py
+++ b/bio/fragments/generate_fragments.py
@@ -671,6 +671,8 @@ def parse_FASTA_files(options, fasta_file_contents):
# Sanity check - check that the... | Fragments. Catching an input error before we start a job. | py |
diff --git a/nautilus/network/events/consumers/kafka.py b/nautilus/network/events/consumers/kafka.py
index <HASH>..<HASH> 100644
--- a/nautilus/network/events/consumers/kafka.py
+++ b/nautilus/network/events/consumers/kafka.py
@@ -2,6 +2,7 @@
import asyncio
import uuid
import json
+import re
from aiokafka import AI... | added consumer pattern to kafka broker | py |
diff --git a/www/src/Lib/interpreter.py b/www/src/Lib/interpreter.py
index <HASH>..<HASH> 100644
--- a/www/src/Lib/interpreter.py
+++ b/www/src/Lib/interpreter.py
@@ -70,7 +70,7 @@ editor_ns = {
'__annotations__': {},
'__builtins__': builtins,
'__doc__': None,
- '__file__': __BRYTHON__.brython_path + ... | In interpreter, set attribute __file__ of exec namespace to `<stdin>` (better compliance with CPython REPL). Related to issue #<I>. | py |
diff --git a/manage.py b/manage.py
index <HASH>..<HASH> 100644
--- a/manage.py
+++ b/manage.py
@@ -30,7 +30,6 @@ def check():
os.system('flake8 objects/')
os.system('pep257 objects/')
- os.system('pylint examples/ --rcfile=./.pylintrc')
os.system('flake8 examples/')
os.system('pep257 examples/'... | Stop measuring of pylint rating for examples | py |
diff --git a/tests/test_BinaryLabel.py b/tests/test_BinaryLabel.py
index <HASH>..<HASH> 100644
--- a/tests/test_BinaryLabel.py
+++ b/tests/test_BinaryLabel.py
@@ -110,6 +110,21 @@ def test_clear_msb(bl):
assert bl.get() == 0x7f
+def test_set_lsb(bl):
+ assert bl.get() == 0
+
+ bl.set_lsb()
+ assert bl... | Adding final testing to BinaryLabel | py |
diff --git a/home/__init__.py b/home/__init__.py
index <HASH>..<HASH> 100644
--- a/home/__init__.py
+++ b/home/__init__.py
@@ -5,7 +5,7 @@ home.__init__
A simple module that defines how the flask app is created.
"""
-__version__ = '0.2.0'
+__version__ = '0.3.0'
from os import environ | Bump to version <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,7 @@ requires = []
setup(
name='skosprovider',
- version='0.2.1a1',
+ version='0.2.1',
description='Abstraction layer for SKOS vocabularies.',
long_description=open('README.rst').read() + '\n\... | Bumpt to version <I>. | py |
diff --git a/raven/contrib/django/urls.py b/raven/contrib/django/urls.py
index <HASH>..<HASH> 100644
--- a/raven/contrib/django/urls.py
+++ b/raven/contrib/django/urls.py
@@ -16,6 +16,6 @@ except ImportError:
import raven.contrib.django.views
urlpatterns = (
- url(r'^api/(?:(?P<project_id>[\w_-]+)/)?store/$', ra... | Remove support for old style api urls | py |
diff --git a/zipline/protocol.py b/zipline/protocol.py
index <HASH>..<HASH> 100644
--- a/zipline/protocol.py
+++ b/zipline/protocol.py
@@ -45,3 +45,6 @@ class Event(object):
def __eq__(self, other):
return self.__dict__ == other.__dict__
+
+ def __repr__(self):
+ return "Event({0})".format(sel... | Adds a __repr__ method for Event. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -46,7 +46,7 @@ setup(
zip_safe=False,
platforms='any',
install_requires=[
- 'Flask',
+ 'Flask>=0.6',
'webassets==0.6',
],
classifiers=[ | Require at least Flask <I>. | py |
diff --git a/neo4j/bolt/connection.py b/neo4j/bolt/connection.py
index <HASH>..<HASH> 100644
--- a/neo4j/bolt/connection.py
+++ b/neo4j/bolt/connection.py
@@ -371,7 +371,7 @@ class ConnectionPool(object):
""" A collection of connections to one or more server addresses.
"""
- closed = False
+ _closed =... | ConnectionPool.closed->closed() | py |
diff --git a/prospector/tools/pylint/__init__.py b/prospector/tools/pylint/__init__.py
index <HASH>..<HASH> 100644
--- a/prospector/tools/pylint/__init__.py
+++ b/prospector/tools/pylint/__init__.py
@@ -13,7 +13,7 @@ from prospector.tools.base import ToolBase
from prospector.tools.pylint.collector import Collector
fr... | [#<I>] Updating wildcard regex for merging pylint imports - newer pylint has different message format than old, and so to keep both working, update the regexp to handle both | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setup(
keywords='graph neo4j py2neo ORM',
tests_require=['nose==1.1.2'],
test_suite='nose.collector',
- install_requires=['lucene-querybuilder==0.1.6', 'py2neo==1.4.6', 'pytz==2012j'],
+ ins... | bump py2neo version | py |
diff --git a/octodns/provider/rackspace.py b/octodns/provider/rackspace.py
index <HASH>..<HASH> 100644
--- a/octodns/provider/rackspace.py
+++ b/octodns/provider/rackspace.py
@@ -165,7 +165,7 @@ class RackspaceProvider(BaseProvider):
def _data_for_quoted(self, rrset):
return {
'type': rrset[0... | Pull quoted data out of the correct field. | py |
diff --git a/shutit_main.py b/shutit_main.py
index <HASH>..<HASH> 100644
--- a/shutit_main.py
+++ b/shutit_main.py
@@ -167,6 +167,7 @@ to_build = [
config_dict[mid]['build']
]
for depender in to_build:
+ depender_is_installed = depender.is_installed(config_dict)
for dependee in depender.depends_on:
dependee_o... | Don't check is_installed for each dependee | py |
diff --git a/tests/test_cookiecutter_generation.py b/tests/test_cookiecutter_generation.py
index <HASH>..<HASH> 100755
--- a/tests/test_cookiecutter_generation.py
+++ b/tests/test_cookiecutter_generation.py
@@ -250,7 +250,7 @@ def test_github_invokes_linter_and_pytest(
github_config = yaml.safe_load(github... | Updated tests with the updated github stage names. | py |
diff --git a/tests/eval_test.py b/tests/eval_test.py
index <HASH>..<HASH> 100644
--- a/tests/eval_test.py
+++ b/tests/eval_test.py
@@ -3,7 +3,7 @@
'''mir_eval integration tests'''
import numpy as np
-from nose.tools import raises
+from nose.tools import raises, nottest
import jams
from util_test import srand
@@... | disable beat eval test for now | py |
diff --git a/sslyze/plugins/certificate_info_plugin.py b/sslyze/plugins/certificate_info_plugin.py
index <HASH>..<HASH> 100755
--- a/sslyze/plugins/certificate_info_plugin.py
+++ b/sslyze/plugins/certificate_info_plugin.py
@@ -118,6 +118,9 @@ class CertificateInfoPlugin(plugin_base.Plugin):
raise Value... | Add workaround for pyca bug | py |
diff --git a/logcatcolor/config.py b/logcatcolor/config.py
index <HASH>..<HASH> 100644
--- a/logcatcolor/config.py
+++ b/logcatcolor/config.py
@@ -27,12 +27,6 @@ class LogcatColorConfig(object):
self.report_config_error()
sys.exit(1)
- # clean up builtins and globals from ... | don't clear builtins from self.config, fixing use of True / False | py |
diff --git a/prawcore/auth.py b/prawcore/auth.py
index <HASH>..<HASH> 100644
--- a/prawcore/auth.py
+++ b/prawcore/auth.py
@@ -48,8 +48,9 @@ class BaseAuthenticator(object):
``temporary`` can be specified if ``implicit`` is set to ``True``.
:param scopes: A list of OAuth scopes to request authoriz... | Add note about valid authorize_url.state param Per RFC<I>, this parameter must be in the ASCII range 0x<I>-0x7E.[^1] Empirically, Reddit's response will not be usable if this rule is not followed. [1]: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,6 +48,7 @@ setup(
'sphinx-rtd-theme'
],
tests_require=[
+ 'mypy',
'pytest>=3.5',
'pytest-cov',
'pycodestyle>=2.0.0,<2.4.0',
@@ -55,6 +56,6 @@ setup(
'pytest-myp... | Properly record mypy test dependency | py |
diff --git a/pydeconz/sensor.py b/pydeconz/sensor.py
index <HASH>..<HASH> 100644
--- a/pydeconz/sensor.py
+++ b/pydeconz/sensor.py
@@ -229,10 +229,12 @@ class LightLevel(DeconzSensor):
"""Light level sensor.
State parameter is a string named lightlevel.
+ Also has a boolean 'dark' representing lighting i... | Lightlevel sensors can report the 'dark' attribute | py |
diff --git a/tests/test_indexing.py b/tests/test_indexing.py
index <HASH>..<HASH> 100644
--- a/tests/test_indexing.py
+++ b/tests/test_indexing.py
@@ -193,13 +193,14 @@ class TestIndexing(unittest.TestCase):
print('The number of record pairs found with blocking', len(bl))
print('The number of record p... | Removing SNI test: What to do with missing values What to do with missing values in the sorting or blocking key values? | py |
diff --git a/smartcard/pcsc/PCSCReader.py b/smartcard/pcsc/PCSCReader.py
index <HASH>..<HASH> 100644
--- a/smartcard/pcsc/PCSCReader.py
+++ b/smartcard/pcsc/PCSCReader.py
@@ -31,9 +31,7 @@ from smartcard.Exceptions import *
from smartcard.pcsc.PCSCExceptions import *
from smartcard.scard import *
-hcontext = PCSCCo... | do not establish a PCSC context at loading but only when needed It is now possible to use, for example, smartcard.util.toHexString() even if pcscd is not started (default on Mac OS X with no reader) | py |
diff --git a/kafka_consumer/check.py b/kafka_consumer/check.py
index <HASH>..<HASH> 100644
--- a/kafka_consumer/check.py
+++ b/kafka_consumer/check.py
@@ -2,6 +2,9 @@
# All rights reserved
# Licensed under Simplified BSD License (see LICENSE)
+# stdlib
+import time
+
# 3p
from kafka import SimpleClient
from kafk... | [kafka_consumer] fix event submission. | py |
diff --git a/txaws/client/base.py b/txaws/client/base.py
index <HASH>..<HASH> 100644
--- a/txaws/client/base.py
+++ b/txaws/client/base.py
@@ -411,6 +411,9 @@ class _Query(object):
request = _auth_v4._CanonicalRequest.from_request_components(
method=method,
url=url_context.get_encoded... | Note a possible improvement for the authv4 code | py |
diff --git a/tensorflow_hub/compressed_module_resolver.py b/tensorflow_hub/compressed_module_resolver.py
index <HASH>..<HASH> 100644
--- a/tensorflow_hub/compressed_module_resolver.py
+++ b/tensorflow_hub/compressed_module_resolver.py
@@ -59,7 +59,10 @@ def _append_compressed_format_query(handle):
parsed = list(urlp... | Fix "TypeError: Cannot mix str and non-str arguments" error when loading a module from https. Users were likely to have encountered this in google cloud datalab and composer. This is likely the fix for <URL> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.