diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/spyder/widgets/sourcecode/codeeditor.py b/spyder/widgets/sourcecode/codeeditor.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/sourcecode/codeeditor.py
+++ b/spyder/widgets/sourcecode/codeeditor.py
@@ -81,7 +81,8 @@ def is_letter_or_number(char):
# =====================================================... | Removed question mark button on the 'Go to line' dialog. | py |
diff --git a/pabot/pabotlib.py b/pabot/pabotlib.py
index <HASH>..<HASH> 100644
--- a/pabot/pabotlib.py
+++ b/pabot/pabotlib.py
@@ -149,6 +149,9 @@ class PabotLib(_PabotLib):
__version__ = 0.67
ROBOT_LIBRARY_SCOPE = 'GLOBAL'
ROBOT_LISTENER_API_VERSION = 2
+ _pollingSeconds_SetupTeardown = 0.3
+ _pol... | fix pabotlib configuration setting (in robot multiple class objects exists => thus use class vars for config) | py |
diff --git a/kotti_contactform/__init__.py b/kotti_contactform/__init__.py
index <HASH>..<HASH> 100644
--- a/kotti_contactform/__init__.py
+++ b/kotti_contactform/__init__.py
@@ -33,3 +33,10 @@ def includeme(config):
config.add_static_view('static-kotti_contactform',
'kotti_contactform:... | Allows to override templates in other addon. | py |
diff --git a/simian/test/test_patch.py b/simian/test/test_patch.py
index <HASH>..<HASH> 100644
--- a/simian/test/test_patch.py
+++ b/simian/test/test_patch.py
@@ -47,8 +47,8 @@ def test_patch_with_internal_but_no_module_path():
'internal_fn_a',
'internal_fn_b'))
def never_call... | Removing lines from coverage, since they cannot be run. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -21,6 +21,7 @@ for m in ('multiprocessing', 'billiard'):
pass
from setuptools import setup, find_packages
+import sys
dev_requires = [
'flake8>=1.6,<2.0', | Don't forget to import sys. | py |
diff --git a/torment/decorators.py b/torment/decorators.py
index <HASH>..<HASH> 100644
--- a/torment/decorators.py
+++ b/torment/decorators.py
@@ -45,7 +45,7 @@ def log(prefix = ''):
def wrapper(*args, **kwargs):
name = function.__name__
- if inspect.isclass(args[0]):
+ if ... | add guard to args in log decorator If the wrapped function takes no arguments and has no arguments, we need to skip the check for classes as the first argument and treat it as a simple function (it has to be by pythonic definition). | py |
diff --git a/dclab/definitions.py b/dclab/definitions.py
index <HASH>..<HASH> 100644
--- a/dclab/definitions.py
+++ b/dclab/definitions.py
@@ -209,6 +209,7 @@ uid = [
"Defo",
"Frame",
"Pos Lat",
+ "Pos x",
"Time",
"FC0max",
"FC0width",
@@ -239,6 +240,7 @@ axl... | Update definitions.py include position along channel axis | py |
diff --git a/setuptools_odoo/external_dependencies.py b/setuptools_odoo/external_dependencies.py
index <HASH>..<HASH> 100644
--- a/setuptools_odoo/external_dependencies.py
+++ b/setuptools_odoo/external_dependencies.py
@@ -5,6 +5,10 @@
# map names of common python external dependencies in Odoo manifest files
# to act... | add additional external dependencies map for OCA addons | py |
diff --git a/numina/instrument/detector.py b/numina/instrument/detector.py
index <HASH>..<HASH> 100644
--- a/numina/instrument/detector.py
+++ b/numina/instrument/detector.py
@@ -217,6 +217,7 @@ class ArrayDetector(BaseConectable):
for amp in self.channels:
data[amp.shape] /= amp.gain
+ ... | Processing non-linearity during readout | py |
diff --git a/Lib/fontmake/font_project.py b/Lib/fontmake/font_project.py
index <HASH>..<HASH> 100644
--- a/Lib/fontmake/font_project.py
+++ b/Lib/fontmake/font_project.py
@@ -238,8 +238,7 @@ class FDKFeatureCompiler(FeatureOTFCompiler):
os.close(fd)
fd, fea_path = tempfile.mkstemp()
- with op... | [minor] Write to file via handle, not filename | py |
diff --git a/marrow/mongo/core/field/date.py b/marrow/mongo/core/field/date.py
index <HASH>..<HASH> 100644
--- a/marrow/mongo/core/field/date.py
+++ b/marrow/mongo/core/field/date.py
@@ -106,8 +106,8 @@ class Date(Field):
def to_native(self, obj, name, value):
if not isinstance(value, datetime):
- log.warn("N... | Corretion for field name refernce in warning. | py |
diff --git a/hug/test.py b/hug/test.py
index <HASH>..<HASH> 100644
--- a/hug/test.py
+++ b/hug/test.py
@@ -57,7 +57,11 @@ def call(method, api_or_module, url, body='', headers=None, params=None, query_s
data = BytesIO()
for chunk in result:
data.write(chunk)
- respo... | Allow for as much of the old behaviour as possible | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,7 +8,7 @@ setup(
"pytz",
"datetime",
],
- version = '0.1.5',
+ version = '0.1.6',
description = 'iCal downloader and parser',
author = 'Thomas Irgang',
author_email = 'thomas@irga... | Update to version <I> New version with fix for all_day recognition #<I> by @dlichtistw | py |
diff --git a/pysatMagVect/_core.py b/pysatMagVect/_core.py
index <HASH>..<HASH> 100644
--- a/pysatMagVect/_core.py
+++ b/pysatMagVect/_core.py
@@ -651,7 +651,7 @@ def calculate_integrated_mag_drift_unit_vectors_ecef(latitude, longitude, altitu
def calculate_mag_drift_unit_vectors_ecef(latitude, longitude, altitude, ... | ENH: Updated tolerance of change in apex height to try and improve robustness. | py |
diff --git a/salt/minion.py b/salt/minion.py
index <HASH>..<HASH> 100644
--- a/salt/minion.py
+++ b/salt/minion.py
@@ -420,7 +420,10 @@ class Minion(object):
self.opts['id'],
self.opts['environment'],
).compile_pillar()
- os.remove(fn... | Add catch for removal of module_refresh file | py |
diff --git a/lib/python/voltcli/verbs.py b/lib/python/voltcli/verbs.py
index <HASH>..<HASH> 100644
--- a/lib/python/voltcli/verbs.py
+++ b/lib/python/voltcli/verbs.py
@@ -453,15 +453,16 @@ class ServerBundle(JavaBundle):
None))
def go(self, verb, runner):
+ final_args = ... | Fix voltdb client parser for replica start action. | py |
diff --git a/pywb/webapp/handlers.py b/pywb/webapp/handlers.py
index <HASH>..<HASH> 100644
--- a/pywb/webapp/handlers.py
+++ b/pywb/webapp/handlers.py
@@ -25,7 +25,7 @@ class WBHandler(WbUrlHandler):
self.fallback_handler = None
if handler_dict:
- fallback = config.get('redir_fallback')
+... | handlers: change 'redir_fallback' to 'fallback' as no redirect happens, fallback called internally | py |
diff --git a/aaf2/cfb.py b/aaf2/cfb.py
index <HASH>..<HASH> 100644
--- a/aaf2/cfb.py
+++ b/aaf2/cfb.py
@@ -243,7 +243,7 @@ class Stream(object):
# convert from minifat to fat
if minifat and byte_size >= self.storage.min_stream_max_size:
- logging.debug("converting stream for minifat to fa... | comment out debug logging in hot loop | py |
diff --git a/Lib/glyphsLib/casting.py b/Lib/glyphsLib/casting.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphsLib/casting.py
+++ b/Lib/glyphsLib/casting.py
@@ -339,14 +339,16 @@ class RWCustomParams(RWGlyphs):
def read(self, src):
assert isinstance(src, list)
+ n = num()
+ t = truthy()
... | casting.py: instanciate num and truthy | py |
diff --git a/tests/testoptions.py b/tests/testoptions.py
index <HASH>..<HASH> 100644
--- a/tests/testoptions.py
+++ b/tests/testoptions.py
@@ -62,7 +62,7 @@ class TestOptions(ViewTestCase):
try:
new_opts = opts(**new_kws)
except OptionError as e:
- assert str(e) == "Invalid opt... | Updated test_options_inherit_invalid_keywords unit test | py |
diff --git a/bedup/tracking.py b/bedup/tracking.py
index <HASH>..<HASH> 100644
--- a/bedup/tracking.py
+++ b/bedup/tracking.py
@@ -92,7 +92,7 @@ def forget_vol(sess, vol):
BLKID_RE = re.compile(
br'^(?P<dev>/dev/[^:]*): '
- br'LABEL="(?P<label>[^"]*)" UUID="(?P<uuid>[^"]*)"\s*$')
+ br'(?:LABEL="(?P<label>... | Handle filesystems with no label. | py |
diff --git a/safe_qgis/plugin.py b/safe_qgis/plugin.py
index <HASH>..<HASH> 100644
--- a/safe_qgis/plugin.py
+++ b/safe_qgis/plugin.py
@@ -655,9 +655,9 @@ class Plugin:
def show_osm_downloader(self):
"""Show the OSM buildings downloader dialog."""
- from safe_qgis.tools.osm_downloader_dialog impo... | Fix unable to open OSM Downloader Dialog. | py |
diff --git a/tests/test_grid.py b/tests/test_grid.py
index <HASH>..<HASH> 100644
--- a/tests/test_grid.py
+++ b/tests/test_grid.py
@@ -64,7 +64,20 @@ def test_grid_setitem():
g[0] = row_2
assert g[0] is row_2
-def test_grid_setitem_v2_list_fail():
+def test_grid_append_notdict():
+ g = Grid()
+ g.colu... | WC-<I>: grid tests: Add test for appending non-grid Also fix up test names while we're here. | py |
diff --git a/shotgun.py b/shotgun.py
index <HASH>..<HASH> 100644
--- a/shotgun.py
+++ b/shotgun.py
@@ -47,7 +47,7 @@ d = A.count()
n = len(A.first()[1])
# initialize sparse weight vector
-b = dok_matrix((d,1))
+b = csr_matrix((d,1))
# initialize product Ab
Ab = zeros((n,1))
# precompute constants (d x 1)
@@ -69,... | Trying combination of dok and csr | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -18,9 +18,7 @@ def fread(fn):
with open(join(dirname(__file__), fn), 'r') as f:
return f.read()
-tests_require = ['cryptography', 'pyjwt>=1.0.0', 'blinker']
-if sys.version_info[0] == 2:
- tests_require.appe... | Remove unused 'tests_require' from setup.py (#<I>) Neither used by Travis CI nor by tox.ini. The mock package was out of sync with requirements-tests.txt for Python 3 environments. Rather than maintain this duplicate, unused list of requirements just remove it. | py |
diff --git a/pythonforandroid/bootstrap.py b/pythonforandroid/bootstrap.py
index <HASH>..<HASH> 100644
--- a/pythonforandroid/bootstrap.py
+++ b/pythonforandroid/bootstrap.py
@@ -277,14 +277,14 @@ class Bootstrap(object):
shprint(sh.mv, '-t', sitepackages, *files)
shprint(sh.rm, '-... | Deleted unused apk function | py |
diff --git a/pyautogui/_pyautogui_x11.py b/pyautogui/_pyautogui_x11.py
index <HASH>..<HASH> 100644
--- a/pyautogui/_pyautogui_x11.py
+++ b/pyautogui/_pyautogui_x11.py
@@ -21,6 +21,12 @@ Much of this code is based on information gleaned from Paul Barton's PyKeyboard
"""
def _position():
+ """Returns the current ... | Add docstring for position() in x<I> script. | py |
diff --git a/grimoire_elk/enriched/remo.py b/grimoire_elk/enriched/remo.py
index <HASH>..<HASH> 100644
--- a/grimoire_elk/enriched/remo.py
+++ b/grimoire_elk/enriched/remo.py
@@ -69,18 +69,18 @@ class ReMoEnrich(Enrich):
return self.author
def get_identities(self, item):
- ''' Return the identiti... | [enrich-remo] Replace list with yield This code replaces the list used in the method get_identities with a yield, thus reducing the memory footprint. | py |
diff --git a/setup_posix.py b/setup_posix.py
index <HASH>..<HASH> 100644
--- a/setup_posix.py
+++ b/setup_posix.py
@@ -69,7 +69,7 @@ def get_config():
# properly handle mysql client libraries that are not called libmysqlclient
client = None
CLIENT_LIST = ['mysqlclient', 'mysqlclient_r', 'mysq... | Add to the client library list for static builds (#<I>) | py |
diff --git a/visidata/aggregators.py b/visidata/aggregators.py
index <HASH>..<HASH> 100644
--- a/visidata/aggregators.py
+++ b/visidata/aggregators.py
@@ -29,16 +29,16 @@ def getValues(self, rows):
vd.aggregators = collections.OrderedDict() # [aggname] -> annotated func, or list of same
-Column.init('aggregators'... | [aggregators] Column.aggstr now actual and Column.aggregators computed (inverted) | py |
diff --git a/test/test_endpoints.py b/test/test_endpoints.py
index <HASH>..<HASH> 100644
--- a/test/test_endpoints.py
+++ b/test/test_endpoints.py
@@ -272,10 +272,11 @@ class EndpointTests(unittest.TestCase):
t = str(t)
os.chdir(t)
os.mkdir(os.path.join(t, 'foo'))
- ... | Make test play nicely on OS X Something odd with tempdirs that I don't wish to understand. | py |
diff --git a/sciluigi/dependencies.py b/sciluigi/dependencies.py
index <HASH>..<HASH> 100644
--- a/sciluigi/dependencies.py
+++ b/sciluigi/dependencies.py
@@ -63,11 +63,11 @@ class DependencyHelpers():
'''
if callable(val):
val = val()
- if isinstance(val, list):
+ if isinst... | Formatting: Default case first, in recursive method | py |
diff --git a/webview/platforms/cocoa.py b/webview/platforms/cocoa.py
index <HASH>..<HASH> 100755
--- a/webview/platforms/cocoa.py
+++ b/webview/platforms/cocoa.py
@@ -263,9 +263,9 @@ class BrowserView:
# Fix arrow keys not responding in text inputs
keyCode_ = theEvent.keyCode()
- ... | fix cocoa delete, page up, page down keys | py |
diff --git a/panoramix/utils.py b/panoramix/utils.py
index <HASH>..<HASH> 100644
--- a/panoramix/utils.py
+++ b/panoramix/utils.py
@@ -1,4 +1,5 @@
-from datetime import datetime
+from datetime import date, datetime, timedelta
+from dateutil.parser import parse
import hashlib
from sqlalchemy.types import TypeDecorator... | Improved free form date parsing | py |
diff --git a/source/rafcon/statemachine/data_flow.py b/source/rafcon/statemachine/data_flow.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/statemachine/data_flow.py
+++ b/source/rafcon/statemachine/data_flow.py
@@ -31,9 +31,9 @@ class DataFlow(StateElement):
raise ValueError("data_flow_id must be o... | remove unnessary validity-check for data_flow_id -> is check when parent is set | py |
diff --git a/pyrabbit/api.py b/pyrabbit/api.py
index <HASH>..<HASH> 100644
--- a/pyrabbit/api.py
+++ b/pyrabbit/api.py
@@ -344,6 +344,17 @@ class Client(object):
path = Client.urls['vhost_permissions'] % (vname, username)
return self.http.do_call(path, 'DELETE')
+ def get_permission(self, vname, ... | adding get_permission to return one permission record | py |
diff --git a/kafka/consumer.py b/kafka/consumer.py
index <HASH>..<HASH> 100644
--- a/kafka/consumer.py
+++ b/kafka/consumer.py
@@ -275,6 +275,7 @@ class SimpleConsumer(Consumer):
2 is relative to the latest known offset (tail)
"""
+ self.count_since_commit += 1
if whence == 1... | Make seek(); commit(); work without commit discarding the seek change | py |
diff --git a/sos/plugins/networking.py b/sos/plugins/networking.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/networking.py
+++ b/sos/plugins/networking.py
@@ -375,7 +375,10 @@ class UbuntuNetworking(Networking, UbuntuPlugin, DebianPlugin):
"/etc/network/interfaces.d",
"/etc/ufw",
... | [networking] Add netplan data collection for Ubuntu. Netplan is a YAML network configuration abstraction for various backends (NetworkManager, networkd). It reads network configuration from /etc/netplan/*.yaml. Related documents: <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,3 @@
-import subprocess
from setuptools import setup
try:
@@ -9,9 +8,6 @@ except ImportError:
import startup
-subprocess.check_call('./gen_manifest.sh')
-
-
if buildtools:
cmdclass = {
'bdist_zi... | Do not run gen_manifest.sh in setup.py, which is not portable to Win<I> | py |
diff --git a/umap/tests/test_parametric_umap.py b/umap/tests/test_parametric_umap.py
index <HASH>..<HASH> 100644
--- a/umap/tests/test_parametric_umap.py
+++ b/umap/tests/test_parametric_umap.py
@@ -3,6 +3,7 @@ import tempfile
import pytest
from sklearn.datasets import make_moons
from sklearn.model_selection import ... | Clean up check on loading model and embedding | py |
diff --git a/param/parameterized.py b/param/parameterized.py
index <HASH>..<HASH> 100644
--- a/param/parameterized.py
+++ b/param/parameterized.py
@@ -5,6 +5,7 @@ messaging.
import copy
import re
+import sys
from operator import itemgetter,attrgetter
from types import FunctionType
@@ -521,13 +522,15 @@ class St... | Unicode support for param.String | 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
@@ -80,10 +80,15 @@ class VarWindow(object):
label = Gtk.Label(pretty_name(v.name))
sliderbox.pack_start(label, False, True, 20)
+ if ... | Attempt to make the step smaller for number vars | py |
diff --git a/asv/environment.py b/asv/environment.py
index <HASH>..<HASH> 100644
--- a/asv/environment.py
+++ b/asv/environment.py
@@ -262,7 +262,17 @@ class Environment(object):
shutil.rmtree(self._path)
if not os.path.exists(self._env_dir):
- os.makedirs(self._env_dir)
+... | Fix a race condition in Environment.create when using parallel execution | py |
diff --git a/kubespawner/spawner.py b/kubespawner/spawner.py
index <HASH>..<HASH> 100644
--- a/kubespawner/spawner.py
+++ b/kubespawner/spawner.py
@@ -403,15 +403,16 @@ class KubeSpawner(Spawner):
@gen.coroutine
def start(self):
- pvc_data = self.get_pvc_info(self.pvc_name)
- if pvc_data is No... | Reverted back to original solution of skipping creating a pvc if it exists. | py |
diff --git a/salt/states/keystone.py b/salt/states/keystone.py
index <HASH>..<HASH> 100644
--- a/salt/states/keystone.py
+++ b/salt/states/keystone.py
@@ -82,6 +82,7 @@ def user_present(name,
enabled=True,
roles=None,
profile=None,
+ password_reset=T... | Add password_reset option to salt.states.keystone.user_present. This option takes a boolean value. True is the default value to mimic current behavior. If True, user_present will continue to set or reset the password whenever the state runs. If False, user_present will only set the password when the user is first c... | py |
diff --git a/starlette/responses.py b/starlette/responses.py
index <HASH>..<HASH> 100644
--- a/starlette/responses.py
+++ b/starlette/responses.py
@@ -215,10 +215,18 @@ class RedirectResponse(Response):
self.headers["location"] = quote(str(url), safe=":/%#?=@[]!$&'()*+,;")
+Content = typing.Union[str, byte... | add type annotations to StreamingResponse (#<I>) | py |
diff --git a/hwt/serializer/verilog/serializer.py b/hwt/serializer/verilog/serializer.py
index <HASH>..<HASH> 100644
--- a/hwt/serializer/verilog/serializer.py
+++ b/hwt/serializer/verilog/serializer.py
@@ -61,6 +61,8 @@ class ToHdlAstVerilog(ToHdlAstVerilog_types,
w.val = [] # initial process
... | ToHdlAstVerilog rm const from vars. initialized in initial proc. | py |
diff --git a/src/armet/resources/resource/options.py b/src/armet/resources/resource/options.py
index <HASH>..<HASH> 100644
--- a/src/armet/resources/resource/options.py
+++ b/src/armet/resources/resource/options.py
@@ -161,6 +161,7 @@ class ResourceOptions(object):
if self.http_allowed_headers is None:
... | Add authz to the defaults. | py |
diff --git a/pylatex/utils.py b/pylatex/utils.py
index <HASH>..<HASH> 100644
--- a/pylatex/utils.py
+++ b/pylatex/utils.py
@@ -418,25 +418,19 @@ def vertical_skip(size):
return pylatex.base_classes.UnsafeCommand("vspace*", arguments=size)
-def text_box(s, *, escape=False):
+def text_box(s):
r"""Add a text... | Changed text_box to be a preamble command because the content that often appears in a text box is often a LatexObject | py |
diff --git a/django_jenkins/management/commands/jenkins.py b/django_jenkins/management/commands/jenkins.py
index <HASH>..<HASH> 100644
--- a/django_jenkins/management/commands/jenkins.py
+++ b/django_jenkins/management/commands/jenkins.py
@@ -170,10 +170,14 @@ class Command(TestCommand):
def get_tested_locations(s... | Allow using of 'source' from coverage-rcfile | py |
diff --git a/qtpandas/compat.py b/qtpandas/compat.py
index <HASH>..<HASH> 100644
--- a/qtpandas/compat.py
+++ b/qtpandas/compat.py
@@ -1,9 +1,10 @@
-import sip
+
import logging
log = logging.getLogger(__name__)
try:
+ import sip
sip.setapi('QString', 2)
sip.setapi('QVariant', 2)
sip.setapi('QDa... | Made compat work with PySide users not on sip. | py |
diff --git a/pyqode/core/api/client.py b/pyqode/core/api/client.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/api/client.py
+++ b/pyqode/core/api/client.py
@@ -153,6 +153,8 @@ class JsonTcpClient(QtNetwork.QTcpSocket):
if error not in SOCKET_ERROR_STRINGS: # pragma: no cover
error = -1
... | Retry connect if error is a conection refused or time out | py |
diff --git a/safe/gui/widgets/dock.py b/safe/gui/widgets/dock.py
index <HASH>..<HASH> 100644
--- a/safe/gui/widgets/dock.py
+++ b/safe/gui/widgets/dock.py
@@ -1315,7 +1315,7 @@ class Dock(QDockWidget, FORM_CLASS):
self.impact_function.callback = self.progress_callback
self.impact_function.debug_mode =... | Fix bug in dock, missing attribute. | py |
diff --git a/instaloader/structures.py b/instaloader/structures.py
index <HASH>..<HASH> 100644
--- a/instaloader/structures.py
+++ b/instaloader/structures.py
@@ -526,7 +526,8 @@ class Profile:
@property
def has_highlight_reels(self) -> bool:
"""
- Always returns `True` since :issue:`153`.
+ ... | doc: Mark Profile.has_higlight_reels as deprecated | py |
diff --git a/src/pyrocore/util/metafile.py b/src/pyrocore/util/metafile.py
index <HASH>..<HASH> 100644
--- a/src/pyrocore/util/metafile.py
+++ b/src/pyrocore/util/metafile.py
@@ -528,7 +528,7 @@ class Metafile(object):
# Build the meta dict
metainfo = {
- "pieces": "".join(pieces),
+ ... | use binary string to join pieces (closes #<I>) | py |
diff --git a/km3pipe/io/jpp.py b/km3pipe/io/jpp.py
index <HASH>..<HASH> 100644
--- a/km3pipe/io/jpp.py
+++ b/km3pipe/io/jpp.py
@@ -255,12 +255,12 @@ class SummaryslicePump(Pump):
blob = Blob()
while self.r.has_next_frame:
rates = np.zeros(31, dtype='f8')
- hrvs ... | Read HRV as ints and cast them to bool | py |
diff --git a/tests/functional/test_adapter.py b/tests/functional/test_adapter.py
index <HASH>..<HASH> 100644
--- a/tests/functional/test_adapter.py
+++ b/tests/functional/test_adapter.py
@@ -25,7 +25,7 @@ class AdapterWithHooks(DefaultAdapter):
# json property re-generates from it, cannot set value direct on d... | add utf-8 encode in samples | py |
diff --git a/gophish/models.py b/gophish/models.py
index <HASH>..<HASH> 100644
--- a/gophish/models.py
+++ b/gophish/models.py
@@ -20,7 +20,7 @@ class Model(object):
if isinstance(val, datetime):
val = val.isoformat()
# Parse custom classes
- elif val and not isinst... | Fixed AttributeErrors due to small errors (#4) | py |
diff --git a/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py b/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py
index <HASH>..<HASH> 100644
--- a/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py
+++ b/neutron/plugins/cisco/n1kv/n1kv_neutron_plugin.py
@@ -1100,6 +1100,8 @@ class N1kvNeutronPluginV2(db_base_plugin_v2... | Delete disassociated floating ips on external network deletion Also remove redundant check for network in use in bigswitch plugin Closes-Bug: #<I> Closes-Bug: #<I> Change-Id: I<I>f<I>c2e<I>be9df<I>c<I>bf1e<I>ffd<I> | py |
diff --git a/bot.py b/bot.py
index <HASH>..<HASH> 100755
--- a/bot.py
+++ b/bot.py
@@ -44,6 +44,7 @@ class IrcBot(SingleServerIRCBot):
"""
atexit.register(self.do_shutdown)
self.handler = handler.BotHandler(botconfig)
+ self.handler.workers = workers.Workers(self.handler)
self... | fix workers not set-up for nicknameinuse | py |
diff --git a/tests/unit/test_app.py b/tests/unit/test_app.py
index <HASH>..<HASH> 100644
--- a/tests/unit/test_app.py
+++ b/tests/unit/test_app.py
@@ -3,6 +3,7 @@ import base64
import logging
import json
import gzip
+import inspect
import pytest
from pytest import fixture
@@ -1784,3 +1785,18 @@ def test_runtime_... | Add test to verify blueprint has all decorators | py |
diff --git a/src/arcrest/manageags/_data.py b/src/arcrest/manageags/_data.py
index <HASH>..<HASH> 100644
--- a/src/arcrest/manageags/_data.py
+++ b/src/arcrest/manageags/_data.py
@@ -185,13 +185,13 @@ class Data(BaseAGSServer):
Input:
item - The JSON representing the data item.
Ou... | Updated _data.py fixing validateDataItem() Was `/ validateDataItem` which is invalid url - this function could never be run successfully; changed to `/validateDataItem`. Works correctly after that. | py |
diff --git a/Lib/glyphsLib/glyphdata.py b/Lib/glyphsLib/glyphdata.py
index <HASH>..<HASH> 100644
--- a/Lib/glyphsLib/glyphdata.py
+++ b/Lib/glyphsLib/glyphdata.py
@@ -105,10 +105,9 @@ def get_glyph(glyph_name, data=None, unicodes=None):
if GLYPHDATA is None:
from importlib.resources import open_bi... | minor: fix ResourceWarning about unclosed file descriptor | py |
diff --git a/squad/core/notification.py b/squad/core/notification.py
index <HASH>..<HASH> 100644
--- a/squad/core/notification.py
+++ b/squad/core/notification.py
@@ -100,13 +100,14 @@ class Notification(object):
'tests_fail': summary.tests_fail,
'tests_pass': summary.tests_pass,
... | core/notification.py: add number of skipped tests to default email template subject | py |
diff --git a/django_productline/tasks.py b/django_productline/tasks.py
index <HASH>..<HASH> 100644
--- a/django_productline/tasks.py
+++ b/django_productline/tasks.py
@@ -44,6 +44,7 @@ def prepare_db_schema():
create the database schema
"""
tasks.manage('syncdb', '--noinput')
+ tasks.manage('migrate')... | call south migrate in prepare_db_schema | py |
diff --git a/python/ray/serve/api.py b/python/ray/serve/api.py
index <HASH>..<HASH> 100644
--- a/python/ray/serve/api.py
+++ b/python/ray/serve/api.py
@@ -136,8 +136,6 @@ def create_endpoint(endpoint_name, route=None, methods=["GET"]):
used as key to set traffic policy.
route (str): A string begin... | fix docstring (#<I>) | py |
diff --git a/CGRtools/containers/cgr.py b/CGRtools/containers/cgr.py
index <HASH>..<HASH> 100644
--- a/CGRtools/containers/cgr.py
+++ b/CGRtools/containers/cgr.py
@@ -72,16 +72,24 @@ class DynAtom(MutableMapping):
return False
def __gt__(self, other):
- return self.__atom > other
+ if isin... | DynBond order fixed. | py |
diff --git a/pydevd_vars.py b/pydevd_vars.py
index <HASH>..<HASH> 100644
--- a/pydevd_vars.py
+++ b/pydevd_vars.py
@@ -363,7 +363,7 @@ def changeAttrExpression(thread_id, frame_id, attr, expression):
if isinstance(frame, DjangoTemplateFrame):
result = eval(expression, frame.f_globals, frame.f_loca... | fix wrong None return result after eval in changeAttrExpression | py |
diff --git a/datajoint/schema.py b/datajoint/schema.py
index <HASH>..<HASH> 100644
--- a/datajoint/schema.py
+++ b/datajoint/schema.py
@@ -58,5 +58,5 @@ class schema:
@property
def jobs(self):
- return get_jobs(self.connection, self.database)
+ return self.connection.jobs[self.database] | schema now has the attribute `jobs` containing the job reservation table | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -106,7 +106,7 @@ setup(
long_description=long_description,
license='Apache 2.0',
classifiers=[
- 'Development Status :: 5 - Stable',
+ 'Development Status :: 5 - Production/Stable',
'Inten... | Correct metadata for "Development Status" | py |
diff --git a/source/rafcon/gui/helpers/state_machine.py b/source/rafcon/gui/helpers/state_machine.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/helpers/state_machine.py
+++ b/source/rafcon/gui/helpers/state_machine.py
@@ -76,6 +76,7 @@ def new_state_machine():
editor_controller = state_machines_editor_c... | feat(helpers/state_machine): returning newly create state machine | py |
diff --git a/post_office/utils.py b/post_office/utils.py
index <HASH>..<HASH> 100644
--- a/post_office/utils.py
+++ b/post_office/utils.py
@@ -23,8 +23,7 @@ except ImportError:
def send_mail(subject, message, from_email, recipient_list, html_message='',
- scheduled_time=None, headers=None, priority=PR... | Remove attachment support from utils.send_mail() | 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
@@ -266,4 +266,8 @@ texinfo_documents = [
# Example configuration for intersphinx: refer to the Python standard library.
-intersphinx_mapping = {'http://docs.python.org/': None}
+i... | Update intersphinx mappings. | py |
diff --git a/tests/test_interface.py b/tests/test_interface.py
index <HASH>..<HASH> 100644
--- a/tests/test_interface.py
+++ b/tests/test_interface.py
@@ -68,6 +68,12 @@ class TestSolver(TestCase):
self.model.remove([c, 'constr1', c2])
self.assertEqual(list(self.model.constraints), [])
+ def test... | test: exceptions raised when trying to remove obj or other crap | py |
diff --git a/pandas/io/tests/test_parsers.py b/pandas/io/tests/test_parsers.py
index <HASH>..<HASH> 100755
--- a/pandas/io/tests/test_parsers.py
+++ b/pandas/io/tests/test_parsers.py
@@ -2827,6 +2827,16 @@ MyColumn
s = StringIO(',,')
self.read_csv(s, header=[10])
+ def test_read_only_head... | BUG: sniffing a csv raises with only a header Closes #<I>. Validation Test. | py |
diff --git a/kmip/services/server/processor.py b/kmip/services/server/processor.py
index <HASH>..<HASH> 100644
--- a/kmip/services/server/processor.py
+++ b/kmip/services/server/processor.py
@@ -260,7 +260,7 @@ class Processor(object):
def _process_locate_request(self, payload):
max_items = payload.maxi... | service/server: fix Locate.Payload member name | py |
diff --git a/salt/log.py b/salt/log.py
index <HASH>..<HASH> 100755
--- a/salt/log.py
+++ b/salt/log.py
@@ -54,7 +54,7 @@ def init():
logging.getLogger().setLevel(1)
-def setup_console_logger(log_level='error'):
+def setup_console_logger(log_level='error', log_format=None, date_format=None):
'''
S... | Add {log,date}_format arguments to setup_console_logger() In the future, perhaps these can be optional configuration options | py |
diff --git a/netmiko/ssh_connection.py b/netmiko/ssh_connection.py
index <HASH>..<HASH> 100644
--- a/netmiko/ssh_connection.py
+++ b/netmiko/ssh_connection.py
@@ -68,11 +68,14 @@ class SSHConnection(BaseSSHConnection):
# Call super class with Cisco check string
return super(SSHConnection, self).exit_c... | Convert to disable for exit enable mode command | py |
diff --git a/plenum/client/signer.py b/plenum/client/signer.py
index <HASH>..<HASH> 100644
--- a/plenum/client/signer.py
+++ b/plenum/client/signer.py
@@ -52,7 +52,7 @@ class SimpleSigner(Signer):
# before-hand with recipient)
self.verkey = self.naclSigner.verhex
- self.verstr = base64_encode... | fixing bugs in tests after fixing signing and verification issues | py |
diff --git a/src/python/dxpy/utils/resolver.py b/src/python/dxpy/utils/resolver.py
index <HASH>..<HASH> 100644
--- a/src/python/dxpy/utils/resolver.py
+++ b/src/python/dxpy/utils/resolver.py
@@ -227,7 +227,7 @@ def resolve_container_id_or_name(raw_string, is_error=False, unescape=True, mult
return ([cached_pro... | dxpy.utils.resolver: fixed bug where it would not resolve projects for which you have < CONTRIBUTE access | py |
diff --git a/api/views.py b/api/views.py
index <HASH>..<HASH> 100644
--- a/api/views.py
+++ b/api/views.py
@@ -289,7 +289,6 @@ class AppConfigViewSet(BaseAppViewSet):
previous_config = config.app.config_set.latest()
config.owner = self.request.user
if previous_config:
- config.owne... | fix(controller): set config as the issuing user When you created new config values, the previous config's owner would become the creator of this config. Removing this line allows the request's user to become the owner. | py |
diff --git a/lhc/file_format/vcf_/merger.py b/lhc/file_format/vcf_/merger.py
index <HASH>..<HASH> 100644
--- a/lhc/file_format/vcf_/merger.py
+++ b/lhc/file_format/vcf_/merger.py
@@ -73,7 +73,8 @@ class VcfMerger(object):
'{:.2f}'.format(top.qual)
samples[sample_name] = {'Q... | added missing gt handling to vcf merging | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -37,6 +37,7 @@ setup(name='natsort',
license='MIT',
py_modules=['natsort'],
scripts=[join('bin', 'natsort')],
+ test_suite='natsort.test',
description=DESCRIPTION,
long_description=LONG_... | Added a test runner to setup.py | py |
diff --git a/albumentations/__init__.py b/albumentations/__init__.py
index <HASH>..<HASH> 100644
--- a/albumentations/__init__.py
+++ b/albumentations/__init__.py
@@ -1,6 +1,6 @@
from __future__ import absolute_import
-__version__ = '0.0.17'
+__version__ = '0.1.0'
from .core.composition import *
from .core.trans... | upd version to <I> - ready to release | py |
diff --git a/napalm_junos/junos.py b/napalm_junos/junos.py
index <HASH>..<HASH> 100644
--- a/napalm_junos/junos.py
+++ b/napalm_junos/junos.py
@@ -535,7 +535,7 @@ class JunOSDriver(NetworkDriver):
if 'router_id' not in bgp_neighbor_data[instance_name]:
# we only need to set this on... | FIXES #<I>, no exception for missing local_id key | py |
diff --git a/salt/returners/etcd_return.py b/salt/returners/etcd_return.py
index <HASH>..<HASH> 100644
--- a/salt/returners/etcd_return.py
+++ b/salt/returners/etcd_return.py
@@ -9,7 +9,7 @@ configuration file:
.. code-block:: yaml
- my_etd_config:
+ my_etcd_config:
etcd.host: 127.0.0.1
etcd.po... | Resolving issue <I> Documentation for etcd returner: my_etd_config: should read my_etcd_config | py |
diff --git a/spyder/widgets/variableexplorer/namespacebrowser.py b/spyder/widgets/variableexplorer/namespacebrowser.py
index <HASH>..<HASH> 100644
--- a/spyder/widgets/variableexplorer/namespacebrowser.py
+++ b/spyder/widgets/variableexplorer/namespacebrowser.py
@@ -205,8 +205,12 @@ class NamespaceBrowser(QWidget):
... | Variable Explorer: Don't show refresh buttons for IPython consoles | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -18,7 +18,7 @@ import os
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, us... | fix to sphinx: conf.py - include .. in sys.path | py |
diff --git a/workbench/workers/view_zip.py b/workbench/workers/view_zip.py
index <HASH>..<HASH> 100644
--- a/workbench/workers/view_zip.py
+++ b/workbench/workers/view_zip.py
@@ -6,7 +6,7 @@ import pprint
class ViewZip(object):
''' ViewZip: Generates a view for Zip files '''
- dependencies = ['meta', 'unzip'... | adding yara_sigs to the zip view | py |
diff --git a/tryp/__init__.py b/tryp/__init__.py
index <HASH>..<HASH> 100644
--- a/tryp/__init__.py
+++ b/tryp/__init__.py
@@ -6,6 +6,8 @@ from tryp.map import Map
from tryp.future import Future
from tryp.boolean import Boolean
+development = False
+
__all__ = ['Maybe', 'Just', 'Empty', 'may', 'List', 'Map', '_'... | move development flag from trypnv | py |
diff --git a/salt/config/__init__.py b/salt/config/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/config/__init__.py
+++ b/salt/config/__init__.py
@@ -1029,8 +1029,6 @@ DEFAULT_MINION_OPTS = {
# ZMQ HWM for EventPublisher pub socket - different for minion vs. master
'event_publisher_pub_hwm': 1000,
'... | Remove comment (it was in the wrong place). | py |
diff --git a/boyle/files/search.py b/boyle/files/search.py
index <HASH>..<HASH> 100644
--- a/boyle/files/search.py
+++ b/boyle/files/search.py
@@ -34,8 +34,7 @@ def dir_search(regex, wd=None):
def dir_match(regex, wd=None):
- """
- Creates a list of regex matches that result from the match_regex
+ """Crea... | files/search.py: doctsring and style fix | py |
diff --git a/indra/sources/signor.py b/indra/sources/signor.py
index <HASH>..<HASH> 100644
--- a/indra/sources/signor.py
+++ b/indra/sources/signor.py
@@ -154,7 +154,7 @@ class SignorProcessor(object):
Counter listing the frequency of different MECHANISM types in the
list of no-mechanism rows.
""... | Update SIGNOR delimiter to tab | py |
diff --git a/pmdarima/arima/tests/test_arima.py b/pmdarima/arima/tests/test_arima.py
index <HASH>..<HASH> 100644
--- a/pmdarima/arima/tests/test_arima.py
+++ b/pmdarima/arima/tests/test_arima.py
@@ -797,7 +797,7 @@ def test_with_intercept(order, seasonal):
def test_to_dict_returns_dict():
- train, test = lynx[:... | Removed test variable that was never used | py |
diff --git a/src/AppiumLibrary/keywords/_applicationmanagement.py b/src/AppiumLibrary/keywords/_applicationmanagement.py
index <HASH>..<HASH> 100644
--- a/src/AppiumLibrary/keywords/_applicationmanagement.py
+++ b/src/AppiumLibrary/keywords/_applicationmanagement.py
@@ -139,11 +139,11 @@ class _ApplicationManagementKey... | added seconds as an argument to Lock method to resolve below issue. also update method help <URL> | py |
diff --git a/shakedown/dcos/command.py b/shakedown/dcos/command.py
index <HASH>..<HASH> 100644
--- a/shakedown/dcos/command.py
+++ b/shakedown/dcos/command.py
@@ -1,4 +1,5 @@
import select
+import shlex
import subprocess
from shakedown.dcos.helpers import *
@@ -90,7 +91,7 @@ def run_dcos_command(command):
... | Split using `shlex.split()` to preserve quotes | py |
diff --git a/xmljson/__init__.py b/xmljson/__init__.py
index <HASH>..<HASH> 100644
--- a/xmljson/__init__.py
+++ b/xmljson/__init__.py
@@ -264,8 +264,8 @@ class Cobra(XMLData):
if 'attributes' in value:
for k, v in value['attributes'].items():
e... | Don't make it err out if 'attributes' are missing | py |
diff --git a/dataswim/db/__init__.py b/dataswim/db/__init__.py
index <HASH>..<HASH> 100644
--- a/dataswim/db/__init__.py
+++ b/dataswim/db/__init__.py
@@ -76,15 +76,29 @@ class Db(Info, Select, Insert, Relation):
"""
Returns a DataSwim instance from a django orm query
"""
- self._check... | Corrections in load_django methods | py |
diff --git a/pyghmi/ipmi/command.py b/pyghmi/ipmi/command.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/command.py
+++ b/pyghmi/ipmi/command.py
@@ -348,6 +348,26 @@ class Command(object):
summary['badreadings'].append(reading)
return summary
+ def get_sensor_reading(self, sensorname):
... | Allow request for single sensor by name In some cases, it is useful for management software to specifically read one or a few sensors specifically. This new function allows management software a convenient way to get sensors without requesting a full sweep. Change-Id: Ibbb7ab0d<I>b7aea<I>be<I>c6ee<I>c<I>f6a6c<I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -14,7 +14,7 @@ setuptools.setup(
description='Implementation of influxdata line protocol format in python',
long_description=long_description,
long_description_content_type='text/markdown',
- version='0.1.3',... | Update version due to #<I> | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.