diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/eli5/keras/gradcam.py b/eli5/keras/gradcam.py
index <HASH>..<HASH> 100644
--- a/eli5/keras/gradcam.py
+++ b/eli5/keras/gradcam.py
@@ -164,7 +164,7 @@ def _calc_gradient(ys, xs):
def _get_target_prediction(targets, estimator):
- # type: (Union[None, list], Model) -> K.variable
+ # type: (Optional... | (mypy) Replace Union[None,...] with Optional[...] for function params | py |
diff --git a/addok/config/__init__.py b/addok/config/__init__.py
index <HASH>..<HASH> 100644
--- a/addok/config/__init__.py
+++ b/addok/config/__init__.py
@@ -68,7 +68,8 @@ class Config(dict):
def load_local(self):
path = (os.environ.get('ADDOK_CONFIG_MODULE')
or os.path.join('/etc', 'add... | Warn when local config file does not exist | py |
diff --git a/src/toil/provisioners/aws/awsProvisioner.py b/src/toil/provisioners/aws/awsProvisioner.py
index <HASH>..<HASH> 100644
--- a/src/toil/provisioners/aws/awsProvisioner.py
+++ b/src/toil/provisioners/aws/awsProvisioner.py
@@ -594,6 +594,10 @@ class AWSProvisioner(AbstractProvisioner):
# determine numb... | AWS: increase default size of root volume CoreOS root volumes are 8Gb which limits Docker and data sizes on machines. This increases to a larger default size of <I>Gb | py |
diff --git a/examples/patent_example/patent_example.py b/examples/patent_example/patent_example.py
index <HASH>..<HASH> 100644
--- a/examples/patent_example/patent_example.py
+++ b/examples/patent_example/patent_example.py
@@ -180,8 +180,10 @@ print 'Learned blocking weights in', time_block_weights - time_start, 'secon... | Added routine to generate full data for tfidf canopy computation | py |
diff --git a/pyemma/msm/__init__.py b/pyemma/msm/__init__.py
index <HASH>..<HASH> 100644
--- a/pyemma/msm/__init__.py
+++ b/pyemma/msm/__init__.py
@@ -153,23 +153,18 @@ class _RedirectMSMToolsImport(object):
_sys.modules[name] = module
return module
-
+"""
_sys.meta_path.append(_RedirectMSMToolsImp... | [msm] disabled import hook (nose succeeds) | py |
diff --git a/mtcnn/mtcnn.py b/mtcnn/mtcnn.py
index <HASH>..<HASH> 100644
--- a/mtcnn/mtcnn.py
+++ b/mtcnn/mtcnn.py
@@ -192,7 +192,7 @@ class MTCNN(object):
with self.__graph.as_default():
self.__session = tf.Session(config=config, graph=self.__graph)
- weights = np.load(weights_file).... | Update mtcnn.py The new version of numpy requires explicitly assigning allow_pickle to True | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -24,9 +24,9 @@ setup(
"This is a {{variable}} in a {{string}}"
from coima import Template
- Template({'variable':'word', 'string':'sentence'}, 'file.txt')
+ t = Template({'variable':'word', 'string':'sentence... | made changes to the API so reflecting on the small doc | py |
diff --git a/cwltool/command_line_tool.py b/cwltool/command_line_tool.py
index <HASH>..<HASH> 100644
--- a/cwltool/command_line_tool.py
+++ b/cwltool/command_line_tool.py
@@ -1214,7 +1214,7 @@ class CommandLineTool(Process):
rfile = files.copy()
revmap(rfile)
... | loadListing is on outputBinding, not schema. | py |
diff --git a/Lib/glyphsLib/builder/sources.py b/Lib/glyphsLib/builder/sources.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphsLib/builder/sources.py
+++ b/Lib/glyphsLib/builder/sources.py
@@ -60,10 +60,10 @@ def _to_designspace_source(self, master, is_regular):
# Make sure UFO filenames are unique, lest we over... | Check source objects for identity, not equality | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -55,6 +55,7 @@ setup(
install_requires=install_requires,
license='LGPL',
use_2to3=True,
+ keywords='django javascript test url reverse helpers',
classifiers=[
"Framework :: Django",
"De... | Added keywords to setup.py | py |
diff --git a/photutils/conftest.py b/photutils/conftest.py
index <HASH>..<HASH> 100644
--- a/photutils/conftest.py
+++ b/photutils/conftest.py
@@ -11,7 +11,7 @@ else:
# automatically made available when Astropy is installed. This means it's
# not necessary to import them here, but we still need to import glob... | Adding pytest header report | py |
diff --git a/contract_sale_generation/tests/common.py b/contract_sale_generation/tests/common.py
index <HASH>..<HASH> 100644
--- a/contract_sale_generation/tests/common.py
+++ b/contract_sale_generation/tests/common.py
@@ -79,11 +79,8 @@ class ContractSaleCommon:
}
)
cls.line_vals = {
- ... | [<I>][IMP] contract_sale_generation: Remove unused code | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,7 +20,7 @@ setup(
install_requires=[
"deprecated==1.2.10",
"cryptography>=2.2.1",
- "protobuf>=3.1.0",
+ "protobuf==3.13.0",
"requests>=2.11.1",
"future>=0.11.0",
... | bugfix: mismatch in protobuf dep between requirements.txt and setup.py This is the source of a bug in which this package will break other systems by allowing the incompatible version 4.* of protobuf to be installed. | py |
diff --git a/lib/svtplay_dl/service/__init__.py b/lib/svtplay_dl/service/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/__init__.py
+++ b/lib/svtplay_dl/service/__init__.py
@@ -54,12 +54,12 @@ class Service(object):
def get_subtitle(self, options):
pass
- def exclude(self, optio... | service: exclude should use options in the class | py |
diff --git a/smartystreets/client.py b/smartystreets/client.py
index <HASH>..<HASH> 100644
--- a/smartystreets/client.py
+++ b/smartystreets/client.py
@@ -103,6 +103,9 @@ class Client(object):
self.logging = logging
self.accept_keypair = accept_keypair
self.truncate_addresses = truncate_addre... | add support for keep-alive to improve performance. This is in line with the SmartyStreets best practices (<URL>) | py |
diff --git a/sass_processor/__init__.py b/sass_processor/__init__.py
index <HASH>..<HASH> 100644
--- a/sass_processor/__init__.py
+++ b/sass_processor/__init__.py
@@ -21,4 +21,4 @@ Release logic:
13. git push
"""
-__version__ = '0.4.4'
+__version__ = '0.4.5' | Bump to version <I> | py |
diff --git a/master/buildbot/status/web/console.py b/master/buildbot/status/web/console.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/status/web/console.py
+++ b/master/buildbot/status/web/console.py
@@ -376,6 +376,10 @@ class ConsoleStatusResource(HtmlResource):
return slaves
+ def isCodebaseInB... | console: check codebase is in build before checking revisions | py |
diff --git a/hex/utils/asc2hasc.py b/hex/utils/asc2hasc.py
index <HASH>..<HASH> 100644
--- a/hex/utils/asc2hasc.py
+++ b/hex/utils/asc2hasc.py
@@ -71,6 +71,9 @@ for j in range(hexGrid.nrows):
y = esriGrid.yll + j * 2 * hexPerp + (j % 2) * hexPerp
hexGrid.set(i, j, esriGrid.getNearestNeighbour(x, y))
... | Generating GML output in ASC2HASC for visual assessment. | py |
diff --git a/instana/meter.py b/instana/meter.py
index <HASH>..<HASH> 100644
--- a/instana/meter.py
+++ b/instana/meter.py
@@ -79,13 +79,17 @@ class Meter(object):
sensor = None
last_usage = None
last_collect = None
+ timer = None
def __init__(self, sensor):
self.sensor = sensor
... | Set timer name/daemon for debug; linter improvements | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,6 +9,7 @@ setup(
packages=[
'two_factor',
],
+ package_data={'two_factor': ['templates/two_factor/*.html',],},
url='http://github.com/Bouke/django-two-factor-auth',
description='Complete Two-... | Include templates in package_data, so they will be installed | py |
diff --git a/digitalocean/Image.py b/digitalocean/Image.py
index <HASH>..<HASH> 100644
--- a/digitalocean/Image.py
+++ b/digitalocean/Image.py
@@ -64,4 +64,4 @@ class Image(BaseAPI):
return "%s %s %s" % (self.id, self.name, self.distribution)
def __repr__(self):
- return "%s %s %s" % (self.id, se... | Update Image.py Make objects more distinguishable | py |
diff --git a/pyardrone/__init__.py b/pyardrone/__init__.py
index <HASH>..<HASH> 100644
--- a/pyardrone/__init__.py
+++ b/pyardrone/__init__.py
@@ -76,7 +76,7 @@ class ARDrone:
@property
def state(self):
'''
- The latest state from *NavData*.
+ The latest state from :py:class:`~pyardrone... | doc: make state doc visiable | py |
diff --git a/sirbot/plugins/scheduler.py b/sirbot/plugins/scheduler.py
index <HASH>..<HASH> 100644
--- a/sirbot/plugins/scheduler.py
+++ b/sirbot/plugins/scheduler.py
@@ -1,4 +1,5 @@
import logging
+import inspect
from sirbot.core import hookimpl, Plugin
from apscheduler.schedulers.asyncio import AsyncIOScheduler
... | scheduler plugin: id and return job | py |
diff --git a/bigfloat_cython/bigfloat/core.py b/bigfloat_cython/bigfloat/core.py
index <HASH>..<HASH> 100644
--- a/bigfloat_cython/bigfloat/core.py
+++ b/bigfloat_cython/bigfloat/core.py
@@ -474,7 +474,7 @@ class BigFloat(mpfr.Mpfr_t):
sign = '-' if self._sign() else ''
e = self._exponent()
- ... | Revert unnecessary change in hex() | py |
diff --git a/kubernetes/K8sObject.py b/kubernetes/K8sObject.py
index <HASH>..<HASH> 100644
--- a/kubernetes/K8sObject.py
+++ b/kubernetes/K8sObject.py
@@ -300,6 +300,23 @@ class K8sObject(object):
return []
return items
+ def get_exportable(self):
+ if self.name is None:
+ r... | K8sObject: Adding a method to get the model in an "exportable" fashion | py |
diff --git a/spython/main/base/command.py b/spython/main/base/command.py
index <HASH>..<HASH> 100644
--- a/spython/main/base/command.py
+++ b/spython/main/base/command.py
@@ -43,7 +43,7 @@ def init_command(self, action, flags=None):
if not isinstance(action, list):
action = [action]
- cmd = ['s... | bug that shouldnt be in second list | py |
diff --git a/mutmut/__init__.py b/mutmut/__init__.py
index <HASH>..<HASH> 100644
--- a/mutmut/__init__.py
+++ b/mutmut/__init__.py
@@ -39,12 +39,13 @@ def number_mutation(value, **_):
value = value[1:]
else:
base = 10
-
- if '.' in value:
- assert base == 10
- parsed = float(valu... | Make number_mutation more robust to floats | py |
diff --git a/test/functional/cluster/test_cluster.py b/test/functional/cluster/test_cluster.py
index <HASH>..<HASH> 100644
--- a/test/functional/cluster/test_cluster.py
+++ b/test/functional/cluster/test_cluster.py
@@ -26,7 +26,7 @@ SYNCONLYPART = 'test'
skip_cluster_tests = True
-if getattr(symbols, 'run_cluster_... | Fixing up opt-in for clustering tests. | py |
diff --git a/rdomanager_oscplugin/plugin.py b/rdomanager_oscplugin/plugin.py
index <HASH>..<HASH> 100644
--- a/rdomanager_oscplugin/plugin.py
+++ b/rdomanager_oscplugin/plugin.py
@@ -28,6 +28,9 @@ DEFAULT_RDOMANAGER_OSCPLUGIN_API_VERSION = '1'
# Required by the OSC plugin interface
API_NAME = 'rdomanager_oscplugin'
... | Conform to new API_VERSIONS requirement from OSC OSC now requires plugins to include an API_VERSIONS dict. Change-Id: I<I>ed5c<I>bc<I>d<I>bd0f2ef0c<I>e1b7 | py |
diff --git a/segments/exit_code.py b/segments/exit_code.py
index <HASH>..<HASH> 100644
--- a/segments/exit_code.py
+++ b/segments/exit_code.py
@@ -1,8 +1,8 @@
-def add_status_indicator_segment():
+def add_exit_code_segment():
if powerline.args.prev_error == 0:
return
fg = Color.CMD_FAILED_FG
bg ... | rename function in exit_code segment to match filename | py |
diff --git a/bids/analysis/base.py b/bids/analysis/base.py
index <HASH>..<HASH> 100644
--- a/bids/analysis/base.py
+++ b/bids/analysis/base.py
@@ -8,14 +8,18 @@ DesignMatrix = namedtuple('DesignMatrix', ('entities', 'groupby', 'data'))
class Analysis(object):
def __init__(self, layouts, model, manager=None, **s... | ENH: Use model input as a default selector | py |
diff --git a/superset/utils/core.py b/superset/utils/core.py
index <HASH>..<HASH> 100644
--- a/superset/utils/core.py
+++ b/superset/utils/core.py
@@ -26,6 +26,7 @@ import re
import signal
import smtplib
import tempfile
+import threading
import traceback
import uuid
import zlib
@@ -631,8 +632,9 @@ class timeout: ... | fix: only call signal if executing on the main thread (#<I>) | py |
diff --git a/packages/vaex-core/vaex/events.py b/packages/vaex-core/vaex/events.py
index <HASH>..<HASH> 100644
--- a/packages/vaex-core/vaex/events.py
+++ b/packages/vaex-core/vaex/events.py
@@ -32,11 +32,11 @@ class Signal(object):
final_kwargs.update(extra_kwargs)
final_kwargs.update(kwargs)... | do not format arg always, just pass them to logger | py |
diff --git a/tests/test_find_enrichment_run.py b/tests/test_find_enrichment_run.py
index <HASH>..<HASH> 100755
--- a/tests/test_find_enrichment_run.py
+++ b/tests/test_find_enrichment_run.py
@@ -9,7 +9,9 @@ from __future__ import print_function
__copyright__ = "Copyright (C) 2010-2018, DV Klopfenstein, H Tang. All rig... | Download go-basic.obo file if it does not exist. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,12 +12,12 @@ from os import path
here = path.abspath(path.dirname(__file__))
setup(
- name='btb',
+ name='baytune',
# Versions should comply with PEP440. For a discussion on single-sourcing
# the ver... | Prepare baytune-<I> release | py |
diff --git a/http_check/datadog_checks/http_check/http_check.py b/http_check/datadog_checks/http_check/http_check.py
index <HASH>..<HASH> 100644
--- a/http_check/datadog_checks/http_check/http_check.py
+++ b/http_check/datadog_checks/http_check/http_check.py
@@ -10,6 +10,7 @@ import time
from datetime import datetime
... | Add type to response (#<I>) | py |
diff --git a/astrodbkit/astrodb.py b/astrodbkit/astrodb.py
index <HASH>..<HASH> 100755
--- a/astrodbkit/astrodb.py
+++ b/astrodbkit/astrodb.py
@@ -977,7 +977,10 @@ class Database:
The table name
"""
- pprint(self.query("PRAGMA table_info({})".format(table), fmt='table'))
+ try:
+ ... | catch error when checking schema of a table that doesn't exist | py |
diff --git a/geth/chain.py b/geth/chain.py
index <HASH>..<HASH> 100644
--- a/geth/chain.py
+++ b/geth/chain.py
@@ -97,6 +97,15 @@ def write_genesis_file(genesis_file_path,
if config is None:
config = {
'homesteadBlock': 0,
+ 'eip150Block': 0,
+ 'eip155Block': 0,
+ ... | feat: set upgrade block numbers in default config (#<I>) * feat: auto set eip blocks in default config * fix: add compiler blocks too * feat: inc berlin and london blocks | py |
diff --git a/urlscan/urlchoose.py b/urlscan/urlchoose.py
index <HASH>..<HASH> 100644
--- a/urlscan/urlchoose.py
+++ b/urlscan/urlchoose.py
@@ -649,18 +649,6 @@ class URLChooser:
another function with the URL.
"""
- # Try-except block to work around webbrowser module bug
- # https://bug... | Remove workaround for fixed python webbrowser bug (#<I>) | py |
diff --git a/py/selenium/webdriver/common/utils.py b/py/selenium/webdriver/common/utils.py
index <HASH>..<HASH> 100644
--- a/py/selenium/webdriver/common/utils.py
+++ b/py/selenium/webdriver/common/utils.py
@@ -40,7 +40,7 @@ def is_connectable(port):
try:
socket_ = socket.socket(socket.AF_INET, socket.SOC... | Use <I> as localhost name resolving might fail on some systems | py |
diff --git a/tests/integration/shell/syndic.py b/tests/integration/shell/syndic.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/syndic.py
+++ b/tests/integration/shell/syndic.py
@@ -51,7 +51,7 @@ class SyndicTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
config['root_dir'] = c... | Fix typo from 6bc5ea<I>. | py |
diff --git a/lib/websession_templates.py b/lib/websession_templates.py
index <HASH>..<HASH> 100644
--- a/lib/websession_templates.py
+++ b/lib/websession_templates.py
@@ -1231,7 +1231,7 @@ class Template:
out = '''<div class="hassubmenu%(on)s">
<a hreflang="en" class="header%(selected)s" href="%(CFG... | WebStyle: fluid width of the menu * Deletes the fixed width of the menus of the websession_templates.py and bibcirculation_templates.py files. (closes #<I>) * Adds new file invenio-ie7.css with some specific styles for IE7. * Adds aconditional comment in the webstyle_templates.py file, to force IE7 to load the ... | 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
@@ -51,7 +51,7 @@ copyright = u'2010-2013, Coda Hale, Yammer Inc., 2014-2015 Dropwizard Team'
# The short X.Y version.
version = '0.8'
# The full version, including alpha/beta/rc tag... | Update docs version to <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -35,6 +35,7 @@ install_requires = [
'six', 'iso8601',
]
tests_require = [
+ 'pycodestyle < 2.4.0',
'pytest >= 3.2.3, < 4.0.0',
'pytest-flake8 >= 0.9.1, < 1.0.0',
'flake8-import-order >= 0.12, < 1.0', | Fix pycodestyle dependency problem | py |
diff --git a/tests/util.py b/tests/util.py
index <HASH>..<HASH> 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -45,8 +45,7 @@ def get_ssl_config(enable_ssl=False,
protocol=PROTOCOL.TLS,
check_hostname=None,
ciphers=None,
- attempt_limit=1,... | increase connection timeout for SSL tests from 1 seconds to 5 seconds (#<I>) Sometimes SSL authentication process may take more than 1 seconds which causes some SSL tests to fail due to timeout error. Increased the timeout to 5 seconds to solve this issue. | py |
diff --git a/sos/plugins/firewalld.py b/sos/plugins/firewalld.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/firewalld.py
+++ b/sos/plugins/firewalld.py
@@ -28,7 +28,7 @@ class FirewallD(Plugin, RedHatPlugin):
def setup(self):
self.add_copy_spec([
- "/etc/firewalld/firewalld.conf",
+ ... | [firewalld] Collect all configs under /etc/firewalld Collect all /etc/firewalld/*.conf files, not only firewalld.conf Resolves: #<I> | py |
diff --git a/pysat/_files.py b/pysat/_files.py
index <HASH>..<HASH> 100644
--- a/pysat/_files.py
+++ b/pysat/_files.py
@@ -238,15 +238,14 @@ class Files(object):
"""
inst_repr = pysat.Instrument(**self.inst_info).__repr__()
- out_str = "".join(["Files(", inst_repr, ", directory_format=",
+ ... | STY: updated the file repr Updated the file repr style to work with eval. | py |
diff --git a/angr/exploration_techniques/explorer.py b/angr/exploration_techniques/explorer.py
index <HASH>..<HASH> 100644
--- a/angr/exploration_techniques/explorer.py
+++ b/angr/exploration_techniques/explorer.py
@@ -58,7 +58,7 @@ class Explorer(ExplorationTechnique):
l.error("Usage of the CFG has be... | fixup! explorer: use extra_stop_points to work with unicorn | py |
diff --git a/pybotvac/robot.py b/pybotvac/robot.py
index <HASH>..<HASH> 100644
--- a/pybotvac/robot.py
+++ b/pybotvac/robot.py
@@ -74,7 +74,7 @@ class Robot:
json = {'reqId': "1",
'cmd': "startCleaning",
'params': {
- 'category': 2,
+ ... | Use the category provided for start_cleaning | py |
diff --git a/oecpy/database.py b/oecpy/database.py
index <HASH>..<HASH> 100644
--- a/oecpy/database.py
+++ b/oecpy/database.py
@@ -60,7 +60,7 @@ class OECDatabase(object):
for planet in self.planets:
try:
- if planet.isTransiting():
+ if planet.isTransiting:
... | changed database transiting planet to use is transiting variable | py |
diff --git a/tests/test_ramon.py b/tests/test_ramon.py
index <HASH>..<HASH> 100644
--- a/tests/test_ramon.py
+++ b/tests/test_ramon.py
@@ -15,10 +15,10 @@ class TestRAMON(unittest.TestCase):
if os.path.exists("1.hdf5"):
os.remove("1.hdf5")
- def test_create_ramon_file(self):
- r = ramo... | kill more tests to gruntle travis | py |
diff --git a/discord/ui/view.py b/discord/ui/view.py
index <HASH>..<HASH> 100644
--- a/discord/ui/view.py
+++ b/discord/ui/view.py
@@ -335,6 +335,10 @@ class View:
if self._cancel_callback:
self._cancel_callback(self)
+ def is_finished(self) -> bool:
+ """:class:`bool`: Whether the vie... | Add View.is_finished() to query listening state | py |
diff --git a/salt/utils/cloud.py b/salt/utils/cloud.py
index <HASH>..<HASH> 100644
--- a/salt/utils/cloud.py
+++ b/salt/utils/cloud.py
@@ -387,9 +387,11 @@ def bootstrap(vm_, opts):
deploy_kwargs['username'] = salt.config.get_cloud_config_value(
'win_username', vm_, opts, default='Administrator'
... | Only assign win_password if it actually is set | py |
diff --git a/examples/help_grep.py b/examples/help_grep.py
index <HASH>..<HASH> 100644
--- a/examples/help_grep.py
+++ b/examples/help_grep.py
@@ -12,12 +12,12 @@
# location: init/Kconfig:39
#
# config SYSVIPC
-# bool
+# bool
# prompt "System V IPC"
# help
-# ...
+# ...
# exchang... | Fix comment formatting in help_grep.py Consistently indent with tabs, like in the actual output. | py |
diff --git a/tests/test_context.py b/tests/test_context.py
index <HASH>..<HASH> 100644
--- a/tests/test_context.py
+++ b/tests/test_context.py
@@ -107,6 +107,14 @@ class ContextTests(TestCase):
self.assertIsInstance(ctx.TRIANGLE_STRIP_ADJACENCY, int)
self.assertIsInstance(ctx.PATCHES, int)
+ ... | Test the presence of texture filters in context | py |
diff --git a/ai/models.py b/ai/models.py
index <HASH>..<HASH> 100644
--- a/ai/models.py
+++ b/ai/models.py
@@ -61,3 +61,6 @@ class SearchNode(object):
node = node.parent
return list(reversed(path))
+
+ def __hash__(self):
+ return hash(self.state) | The hash of a node is the hash of it's state | py |
diff --git a/spotify/http.py b/spotify/http.py
index <HASH>..<HASH> 100644
--- a/spotify/http.py
+++ b/spotify/http.py
@@ -1590,9 +1590,10 @@ class HTTPClient:
Provide this parameter if you want to apply Track Relinking.
"""
route = self.route("GET", "/tracks/{id}", id=track_id)
+ ... | bugfix potentially undefined payload Closes #<I> | py |
diff --git a/docs/extensions/attributetable.py b/docs/extensions/attributetable.py
index <HASH>..<HASH> 100644
--- a/docs/extensions/attributetable.py
+++ b/docs/extensions/attributetable.py
@@ -147,6 +147,7 @@ def get_class_results(lookup, modulename, name, fullname):
groups = OrderedDict([
('Attributes'... | Show classmethods separately in attribute table | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,7 +11,7 @@ def readme(file='', split=False):
setup(
name='pyderman',
- version='1.4.0',
+ version='2.0.0',
description='Installs the latest Chrome/Firefox/Opera/PhantomJS/Edge web drivers automatically.',
long_des... | Increment to <I>, due to potentially-breaking Error handling changes. | py |
diff --git a/setuptools/command/bdist_wininst.py b/setuptools/command/bdist_wininst.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/bdist_wininst.py
+++ b/setuptools/command/bdist_wininst.py
@@ -37,18 +37,3 @@ class bdist_wininst(_bdist_wininst):
self._fix_upload_names()
finally:
... | Remove get_installer_filename (copied from some version of Python now required to be supplied). | py |
diff --git a/zipline/pipeline/factors/factor.py b/zipline/pipeline/factors/factor.py
index <HASH>..<HASH> 100644
--- a/zipline/pipeline/factors/factor.py
+++ b/zipline/pipeline/factors/factor.py
@@ -290,7 +290,9 @@ def function_application(func):
if func not in NUMEXPR_MATH_FUNCS:
raise ValueError("Unsupp... | DOC: Slightly better function_application docstring. | py |
diff --git a/matrix_client/client.py b/matrix_client/client.py
index <HASH>..<HASH> 100644
--- a/matrix_client/client.py
+++ b/matrix_client/client.py
@@ -346,6 +346,8 @@ class MatrixClient(object):
for room_id, left_room in response['rooms']['leave'].items():
for listener in self.left_listeners:
... | matrix_client/client.py: Remove room from rooms dict on leave event When receiving a leave event, we should remove the room from our rooms dictionary since it is no longer meaningful for us. This fix also makes join and leave events more symmetric. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,3 +1,13 @@
+'''
+Package description and configuration.
+To release to PyPI test:
+ - python setup.py register -r pypitest
+ - python setup.py sdist upload -r pypitest
+To release to PyPI:
+ - python setup.py register -r... | Added comments to setup.py to help for future release. | py |
diff --git a/api/opentrons/instruments/pipette.py b/api/opentrons/instruments/pipette.py
index <HASH>..<HASH> 100755
--- a/api/opentrons/instruments/pipette.py
+++ b/api/opentrons/instruments/pipette.py
@@ -17,6 +17,9 @@ PLUNGER_POSITIONS = {
'drop_tip': -7
}
+DEFAULT_ASPIRATE_SPEED = 20
+DEFAULT_DISPENSE_SPEED... | moves plunger default speeds to top of file | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100644
--- a/redis/client.py
+++ b/redis/client.py
@@ -1155,6 +1155,10 @@ class StrictRedis(object):
return self.execute_command('ZCARD', name)
def zcount(self, name, min, max):
+ """
+ Returns the number of elements in th... | added docstring for zcount | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,7 @@ setup(
license="MIT",
url="https://github.com/Kane610/axis",
download_url="https://github.com/Kane610/axis/archive/v35.tar.gz",
- install_requires=["attrs", "requests", "xmltodict"],
+ insta... | Add packaging as dependency (#<I>) | py |
diff --git a/synapse/cores/ram.py b/synapse/cores/ram.py
index <HASH>..<HASH> 100644
--- a/synapse/cores/ram.py
+++ b/synapse/cores/ram.py
@@ -105,3 +105,29 @@ class Cortex(common.Cortex):
rows = [ row for row in rows if row[3] < maxtime ]
return len(rows)
+
+ramcores = {}
+
+def initRamCortex(l... | added factory function so ram cortexes can overlap | py |
diff --git a/tests/functional_tests/test_providers.py b/tests/functional_tests/test_providers.py
index <HASH>..<HASH> 100644
--- a/tests/functional_tests/test_providers.py
+++ b/tests/functional_tests/test_providers.py
@@ -217,10 +217,9 @@ def login(request, browser, app, attempt=1):
log(3, provider_na... | Fixed a bug when human interaction setting could not be unpacked. | py |
diff --git a/webpush/utils.py b/webpush/utils.py
index <HASH>..<HASH> 100644
--- a/webpush/utils.py
+++ b/webpush/utils.py
@@ -9,11 +9,7 @@ from pywebpush import WebPusher
def send_notification_to_user(user, payload, ttl=0):
# Get all the push_info of the user
push_infos = user.webpush_info.select_related("s... | Cleaned up for loops. (#2) | py |
diff --git a/pifpaf/drivers/gnocchi.py b/pifpaf/drivers/gnocchi.py
index <HASH>..<HASH> 100644
--- a/pifpaf/drivers/gnocchi.py
+++ b/pifpaf/drivers/gnocchi.py
@@ -73,7 +73,7 @@ url = %s""" % (self.tempdir, pg.url))
self._exec(gnocchi_upgrade)
c, _ = self._exec(["gnocchi-metricd", "--config-file=%s" ... | gnocchi: Catch a working line for metricd | py |
diff --git a/tests/integration/states/npm.py b/tests/integration/states/npm.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/npm.py
+++ b/tests/integration/states/npm.py
@@ -54,7 +54,8 @@ class NpmStateTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn):
ret = self.run_state('npm.inst... | make sure cmd is not run when npm isn't installed apparently the skipIf on the functions still get run, even if the function is going to be skipped based on a skipIf on the class. | py |
diff --git a/PyFunceble/helpers/hash.py b/PyFunceble/helpers/hash.py
index <HASH>..<HASH> 100644
--- a/PyFunceble/helpers/hash.py
+++ b/PyFunceble/helpers/hash.py
@@ -61,6 +61,8 @@ License:
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
+from .file import ... | Fix issue with the tests under Windows. | py |
diff --git a/src/marshmallow/schema.py b/src/marshmallow/schema.py
index <HASH>..<HASH> 100644
--- a/src/marshmallow/schema.py
+++ b/src/marshmallow/schema.py
@@ -133,7 +133,7 @@ class SchemaMeta(type):
inherited_fields: typing.List,
dict_cls: type,
):
- """Returns a dictionary of field_na... | Fix simple typo: declard -> declared Closes #<I> | py |
diff --git a/pyIOSXR/iosxr.py b/pyIOSXR/iosxr.py
index <HASH>..<HASH> 100644
--- a/pyIOSXR/iosxr.py
+++ b/pyIOSXR/iosxr.py
@@ -39,7 +39,9 @@ def __execute_rpc__(device, rpc_command, timeout):
root = ET.fromstring(response)
childs = [x.tag for x in list(root)]
- if int(root.find('ResultSummary').get('Erro... | Fixed inexistent ResultSummary node issue on IOS-XR <I> | py |
diff --git a/salt/thorium/reg.py b/salt/thorium/reg.py
index <HASH>..<HASH> 100644
--- a/salt/thorium/reg.py
+++ b/salt/thorium/reg.py
@@ -35,9 +35,17 @@ def set_(name, add, match):
return ret
-def list_(name, add, match):
+def list_(name, add, match, stamp=False):
'''
- Add to the named list the speci... | Add timestamping to reg.list | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -53,6 +53,7 @@ setup(
'flask-components >= 0.1',
'sqlalchemy >= 0.8',
'sqlalchemy-utils >= 0.16',
+ 'alembic >= 0.6, < 0.7',
'pytest >= 2.4',
'pytest-pep8 >= 1.0',
'... | Add alembic as a requirement. | py |
diff --git a/satpy/readers/seviri_l2_bufr.py b/satpy/readers/seviri_l2_bufr.py
index <HASH>..<HASH> 100644
--- a/satpy/readers/seviri_l2_bufr.py
+++ b/satpy/readers/seviri_l2_bufr.py
@@ -37,7 +37,6 @@ logger = logging.getLogger('BufrProductClasses')
sub_sat_dict = {"E0000": 0.0, "E0415": 41.5, "E0095": 9.5}
-seg_a... | Removed unused dict seg_area_dict | py |
diff --git a/apispec/core.py b/apispec/core.py
index <HASH>..<HASH> 100644
--- a/apispec/core.py
+++ b/apispec/core.py
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
"""Core apispec classes and functions."""
import re
+from collections import OrderedDict
from apispec.compat import iterkeys
from .exceptions import APISp... | Maintain order in which paths are added to spec | py |
diff --git a/xblock/runtime.py b/xblock/runtime.py
index <HASH>..<HASH> 100644
--- a/xblock/runtime.py
+++ b/xblock/runtime.py
@@ -921,14 +921,6 @@ class Runtime(object):
Arguments:
block (:class:`.XBlock`): The block to render retrieve asides for.
"""
- # TODO: This function will ... | Minor cleanup of get_asides | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,6 +50,13 @@ LICENSE = 'LGPL'
DOWNLOAD_URL = URL
SNDFILE_MAJ_VERSION = 1
+CLASSIFIERS = ['Development Status :: 4 - Beta',
+ 'Environment :: Console',
+ 'Intended Audience :: Developers... | Minor correction to main setup.py. | py |
diff --git a/test/test_motor_collection.py b/test/test_motor_collection.py
index <HASH>..<HASH> 100644
--- a/test/test_motor_collection.py
+++ b/test/test_motor_collection.py
@@ -121,7 +121,7 @@ class MotorCollectionTest(MotorTest):
yield cursor.close()
- @gen_test
+ @gen_test(timeout=10)
def te... | Longer timeout in find_one_is_async. Query could take longer than expected: SERVER-<I>. | py |
diff --git a/src/hamster/today.py b/src/hamster/today.py
index <HASH>..<HASH> 100755
--- a/src/hamster/today.py
+++ b/src/hamster/today.py
@@ -32,6 +32,12 @@ from hamster.configuration import runtime, dialogs, conf, load_ui_file
from hamster import widgets
from hamster.lib import stuff, trophies
+try:
+ import w... | was missing wnck import! found by @Asenar, fixes #<I> | py |
diff --git a/bika/lims/upgrade/v01_02_008.py b/bika/lims/upgrade/v01_02_008.py
index <HASH>..<HASH> 100644
--- a/bika/lims/upgrade/v01_02_008.py
+++ b/bika/lims/upgrade/v01_02_008.py
@@ -36,6 +36,7 @@ def upgrade(tool):
# -------- ADD YOUR STUFF HERE --------
+ setup.runImportStepFromProfile(profile, 'workf... | Missing "workflow" import step in upgradestep (required by #<I>) (#<I>) | py |
diff --git a/pyup/bot.py b/pyup/bot.py
index <HASH>..<HASH> 100644
--- a/pyup/bot.py
+++ b/pyup/bot.py
@@ -84,9 +84,8 @@ class Bot(object):
else:
pull_request = next((pr for pr in self.pull_requests if pr.title == title), None)
- if pull_request:
- for update in... | pull requests should exist here no matter what | py |
diff --git a/hydpy/core/hydpytools.py b/hydpy/core/hydpytools.py
index <HASH>..<HASH> 100644
--- a/hydpy/core/hydpytools.py
+++ b/hydpy/core/hydpytools.py
@@ -252,9 +252,6 @@ class HydPy(object):
funcs.append(node._loaddata_sim)
elif node.sequences.obs.use_ext:
funcs.appen... | Sequence updates from receiver nodes now take place at the end of a simulation step. This offers the advantage that the values stored by the sequences of receiver nodes do not to be saved as (potential) initial conditions. | py |
diff --git a/redis/client.py b/redis/client.py
index <HASH>..<HASH> 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -613,8 +613,10 @@ class Redis(RedisModuleCommands, CoreCommands, object):
This abstract class provides a Python interface to all Redis commands
and an implementation of the Redis protocol.... | Docstring improvements for Redis class (#<I>) | py |
diff --git a/install.py b/install.py
index <HASH>..<HASH> 100644
--- a/install.py
+++ b/install.py
@@ -68,7 +68,7 @@ def copy(src, dest):
def main():
exit_code = call(["coverage", "run", "--source", "getgauge", "-m", "unittest", "discover"])
if exit_code != 0:
- return
+ sys.exit(exit_code)
... | Correcting exit code if tests fail | py |
diff --git a/axis/__init__.py b/axis/__init__.py
index <HASH>..<HASH> 100644
--- a/axis/__init__.py
+++ b/axis/__init__.py
@@ -120,8 +120,16 @@ class AxisDevice(object):
self._event_topics = '{}|{}'.format(self._event_topics,
event_topic)
+ def minimum_... | Added check to ensure minimum firmware version of <I> for metadatastream | py |
diff --git a/vint/ast/plugin/scope_plugin/scope_linker.py b/vint/ast/plugin/scope_plugin/scope_linker.py
index <HASH>..<HASH> 100644
--- a/vint/ast/plugin/scope_plugin/scope_linker.py
+++ b/vint/ast/plugin/scope_plugin/scope_linker.py
@@ -406,14 +406,17 @@ class ScopeLinker(object):
# We can access "a:firstlin... | Fix SyntaxWarning with py<I> (#<I>) > SyntaxWarning: "is not" with a literal. Did you mean "!="? | py |
diff --git a/api/errmsg.py b/api/errmsg.py
index <HASH>..<HASH> 100644
--- a/api/errmsg.py
+++ b/api/errmsg.py
@@ -70,9 +70,9 @@ def warning_empty_loop(lineno):
# Emmits an optimization warning
-def warning_not_used(lineno, id_):
+def warning_not_used(lineno, id_, kind='Variable'):
if OPTIONS.optimization.val... | refact: allow variable kind in warning messages When issuing a warning message of an unused variable, allows specification of "Parameter" or any other ("Variable" by default) | py |
diff --git a/ginga/rv/plugins/LineProfile.py b/ginga/rv/plugins/LineProfile.py
index <HASH>..<HASH> 100644
--- a/ginga/rv/plugins/LineProfile.py
+++ b/ginga/rv/plugins/LineProfile.py
@@ -233,11 +233,13 @@ class LineProfile(GingaPlugin.LocalPlugin):
def redo(self):
# Get image being shown
- self.i... | Fixes for LineProfile plugin - don't pop up annoying error message if an axis was not selected - don't rebuild axes controls if image has not changed, only slice | py |
diff --git a/bulbs/content/tests.py b/bulbs/content/tests.py
index <HASH>..<HASH> 100644
--- a/bulbs/content/tests.py
+++ b/bulbs/content/tests.py
@@ -135,10 +135,10 @@ class PolyContentTestCase(TestCase):
es = get_es(urls=settings.ES_URLS)
es.delete_index(settings.ES_INDEXES.get('default', 'testing')... | Commented out another test that expected extract_document to use serializers | py |
diff --git a/tweepy/streaming.py b/tweepy/streaming.py
index <HASH>..<HASH> 100644
--- a/tweepy/streaming.py
+++ b/tweepy/streaming.py
@@ -144,18 +144,17 @@ class Stream:
self.verify = options.get("verify", True)
- self.new_session()
+ self.session = None
self.retry_time = self.retry... | Remove Stream.new_session Stop unnecessarily creating a new requests Session at the end of each call to Stream._run | py |
diff --git a/optimizely/event/event_processor.py b/optimizely/event/event_processor.py
index <HASH>..<HASH> 100644
--- a/optimizely/event/event_processor.py
+++ b/optimizely/event/event_processor.py
@@ -180,14 +180,16 @@ class BatchEventProcessor(BaseEventProcessor):
"""
try:
while True:
- ... | [OASIS-<I>] fix: make _get_time() value the same throughout the loop (#<I>) * fix: make _get_time() value the same throughout the loop * fix: make all _get_time calls into loop_time | py |
diff --git a/tests/test_netsnmptestenv.py b/tests/test_netsnmptestenv.py
index <HASH>..<HASH> 100644
--- a/tests/test_netsnmptestenv.py
+++ b/tests/test_netsnmptestenv.py
@@ -38,7 +38,9 @@ def test_SecondGetWorks():
except AssertionError:
raise AssertionError("'{0}' != ^SNMPv2-MIB::snmpSetSerialNo.0 = INTEGER: \d+... | Have test_netsnmptestenv.py also test shutdown(), not just call it | py |
diff --git a/pancloud/httpclient.py b/pancloud/httpclient.py
index <HASH>..<HASH> 100755
--- a/pancloud/httpclient.py
+++ b/pancloud/httpclient.py
@@ -235,7 +235,7 @@ class HTTPClient(object):
'timeout']:
if x in kwargs and x == 'data':
d = kwargs.pop(x)
- ... | Convert list to JSON to support logging write | py |
diff --git a/pyfrc/mains/cli_deploy.py b/pyfrc/mains/cli_deploy.py
index <HASH>..<HASH> 100644
--- a/pyfrc/mains/cli_deploy.py
+++ b/pyfrc/mains/cli_deploy.py
@@ -234,6 +234,10 @@ class PyFrcDeploy:
# If we're in a git repo
if in_git_repo:
try:
+ hashProc = subprocess.run(
... | Add raw git hash to deploy info also | py |
diff --git a/bids/layout/layout.py b/bids/layout/layout.py
index <HASH>..<HASH> 100644
--- a/bids/layout/layout.py
+++ b/bids/layout/layout.py
@@ -107,7 +107,7 @@ class BIDSLayout(Layout):
"project root. Every valid BIDS dataset must have "
"this file.")
el... | set ``encoding='utf-8'`` on all open calls | py |
diff --git a/zinnia/views/shortlink.py b/zinnia/views/shortlink.py
index <HASH>..<HASH> 100644
--- a/zinnia/views/shortlink.py
+++ b/zinnia/views/shortlink.py
@@ -13,8 +13,9 @@ class EntryShortLink(RedirectView):
def get_redirect_url(self, **kwargs):
"""
- Get entry corresponding to 'pk' and
- ... | The shortlink view decode the PK i base <I> | py |
diff --git a/mqueue/models.py b/mqueue/models.py
index <HASH>..<HASH> 100644
--- a/mqueue/models.py
+++ b/mqueue/models.py
@@ -84,6 +84,7 @@ class MEvent(models.Model):
verbose_name = _(u'Events')
verbose_name_plural = _(u'Events')
ordering = ['-date_posted']
+ unique_together = ['cont... | Unique together constrain for obj_pk and content_type | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.