diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/cherrypy/lib/sessions.py b/cherrypy/lib/sessions.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/sessions.py
+++ b/cherrypy/lib/sessions.py
@@ -130,8 +130,8 @@ class Session:
# So we have to use the old "expires" ... sigh ...
#cookie[cookie_name]['max-age'] = self.timeout * 60
... | Oops. Fix for the session time fix. | py |
diff --git a/vis/visualization.py b/vis/visualization.py
index <HASH>..<HASH> 100644
--- a/vis/visualization.py
+++ b/vis/visualization.py
@@ -26,16 +26,12 @@ def get_num_filters(layer):
Returns: Total number of filters within `layer`.
For `keras.layers.Dense` layer, this is the total number of outputs.
... | Make get_num_filters more robust | py |
diff --git a/moneywagon/services.py b/moneywagon/services.py
index <HASH>..<HASH> 100644
--- a/moneywagon/services.py
+++ b/moneywagon/services.py
@@ -1311,6 +1311,7 @@ class Blockonomics(Service):
url = "%s/api/tx_detail?txid=%s" % (self.base_url, txid)
d = self.get_url(url).json()
return di... | implemented confirmations to blockonomics service | py |
diff --git a/test/test_facebook.py b/test/test_facebook.py
index <HASH>..<HASH> 100644
--- a/test/test_facebook.py
+++ b/test/test_facebook.py
@@ -247,10 +247,10 @@ class TestSearchMethod(FacebookTestCase):
user = self.test_users[0]
self.graph = facebook.GraphAPI(user["access_token"])
- def test_... | Temporarily comment out valid search types test. This test is broken because the Graph API is broken: <URL> | py |
diff --git a/ryu/app/quantum_adapter.py b/ryu/app/quantum_adapter.py
index <HASH>..<HASH> 100644
--- a/ryu/app/quantum_adapter.py
+++ b/ryu/app/quantum_adapter.py
@@ -209,14 +209,7 @@ class OVSSwitch(object):
return
port_data = {
- 'datapath_id': dpid_lib.dpid_to_str(self.... | app/quantum_adapter: unbreak quantum change Now quantum checks attributes strictly on REST request by the changeset of <I>bdda<I>e<I>a<I>e2be7b<I>cdea0af2f<I> Don't send non-standard attribute. > commit <I>bdda<I>e<I>a<I>e2be7b<I>cdea0af2f<I> > | 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
@@ -1616,7 +1616,7 @@ class JunOSDriver(NetworkDriver):
d = {}
# next_hop = route[0]
d = {elem[0]: elem[1] for elem in route[1]}
- ... | Delete the ip validation of the destination of get_route_to in junos | py |
diff --git a/marshmallow/fields.py b/marshmallow/fields.py
index <HASH>..<HASH> 100644
--- a/marshmallow/fields.py
+++ b/marshmallow/fields.py
@@ -981,13 +981,6 @@ class DateTime(Field):
else:
return value.strftime(data_format)
- def _create_data_object_from_parsed_value(self, parsed):
- ... | Remove unused _create_data_object_from_parsed_value from DateTime and Date This should have been removed when dropping dead code in 7eabce1. | py |
diff --git a/geomdl/fitting.py b/geomdl/fitting.py
index <HASH>..<HASH> 100644
--- a/geomdl/fitting.py
+++ b/geomdl/fitting.py
@@ -168,7 +168,7 @@ def approximate_surface(points, size_u, size_v, degree_u, degree_v, **kwargs):
pt0 = points[j + (size_v * 0)] # Qzero
ptm = points[j + (size_v * (size_u -... | Fix Ru calculations Fixes the error in execution of Eqn <I> for u-dir fitting | py |
diff --git a/dragonmapper/__init__.py b/dragonmapper/__init__.py
index <HASH>..<HASH> 100644
--- a/dragonmapper/__init__.py
+++ b/dragonmapper/__init__.py
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
-__version__ = '0.2.0'
+__version__ = '0.2.1' | Bumps version to <I>. | py |
diff --git a/telebot/types.py b/telebot/types.py
index <HASH>..<HASH> 100644
--- a/telebot/types.py
+++ b/telebot/types.py
@@ -479,8 +479,11 @@ class Message(JsonDeserializable):
"pre" : "<pre>{text}</pre>",
"code" : "<code>{text}</code>",
#"url" : "<a href=\"{url}\"... | Added nested entities from Bot API <I> | py |
diff --git a/jaraco/packaging/depends.py b/jaraco/packaging/depends.py
index <HASH>..<HASH> 100644
--- a/jaraco/packaging/depends.py
+++ b/jaraco/packaging/depends.py
@@ -59,8 +59,8 @@ def check_dependencies(req, indent=1, history=None):
class DependencyTree(setuptools.Command):
description = "Report a tree of re... | Stupid getopt chokes on unicode strings on Python <I> | py |
diff --git a/vyper/signatures/function_signature.py b/vyper/signatures/function_signature.py
index <HASH>..<HASH> 100644
--- a/vyper/signatures/function_signature.py
+++ b/vyper/signatures/function_signature.py
@@ -1,3 +1,4 @@
+import math
from collections import Counter
from vyper import ast as vy_ast
@@ -41,7 +42... | fix: correctly return size for new types | py |
diff --git a/pysat/tests/test_utils_io.py b/pysat/tests/test_utils_io.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_utils_io.py
+++ b/pysat/tests/test_utils_io.py
@@ -408,8 +408,6 @@ class TestNetCDF4Integration(object):
if False
"""
- # TODO(#585): consider moving to class with n... | DOC: removed comment Removed outdated comment. | py |
diff --git a/sovrin_client/test/cli/helper.py b/sovrin_client/test/cli/helper.py
index <HASH>..<HASH> 100644
--- a/sovrin_client/test/cli/helper.py
+++ b/sovrin_client/test/cli/helper.py
@@ -1,11 +1,8 @@
import json
import os
import re
-from _sha256 import sha256
+from hashlib import sha256
-import pytest
-
-from ... | fixed issue with wrong import and minor refactoring | py |
diff --git a/bcbio/pipeline/main.py b/bcbio/pipeline/main.py
index <HASH>..<HASH> 100644
--- a/bcbio/pipeline/main.py
+++ b/bcbio/pipeline/main.py
@@ -76,6 +76,7 @@ def _run_toplevel(config, config_file, work_dir, parallel,
"""
parallel = log.create_base_logger(config, parallel)
log.setup_local_logging(c... | Log location of bcbio system YAML file used Help with debugging issues on bcbio_system.yaml retrieval. | py |
diff --git a/planet/scripts/__init__.py b/planet/scripts/__init__.py
index <HASH>..<HASH> 100644
--- a/planet/scripts/__init__.py
+++ b/planet/scripts/__init__.py
@@ -43,7 +43,7 @@ def list_all_scene_types():
@scene_type
@click.argument('scene_ids', nargs=-1)
-@click.option('--product', type=click.Choice(['visual',... | allow landsat product types for cli | py |
diff --git a/src/ansiblelint/rules/YamllintRule.py b/src/ansiblelint/rules/YamllintRule.py
index <HASH>..<HASH> 100644
--- a/src/ansiblelint/rules/YamllintRule.py
+++ b/src/ansiblelint/rules/YamllintRule.py
@@ -33,7 +33,7 @@ rules:
DESCRIPTION = """\
Rule violations reported by YamlLint when this is installed.
-You... | Correct skip tag for yamllint (#<I>) | py |
diff --git a/watchdog/src/watchdog/briefkasten_watchdog/__init__.py b/watchdog/src/watchdog/briefkasten_watchdog/__init__.py
index <HASH>..<HASH> 100644
--- a/watchdog/src/watchdog/briefkasten_watchdog/__init__.py
+++ b/watchdog/src/watchdog/briefkasten_watchdog/__init__.py
@@ -162,7 +162,7 @@ def push_to_prometheus(er... | FIX: include environment in job name since we have only one gateway for all environments | py |
diff --git a/canvasapi/requester.py b/canvasapi/requester.py
index <HASH>..<HASH> 100644
--- a/canvasapi/requester.py
+++ b/canvasapi/requester.py
@@ -60,7 +60,7 @@ class Requester(object):
headers.update(auth_header)
# Convert kwargs into list of 2-tuples and combine with _kwargs.
- _kwa... | Slightly cleaner way to set no _kwargs to empty list | py |
diff --git a/mount_images.py b/mount_images.py
index <HASH>..<HASH> 100755
--- a/mount_images.py
+++ b/mount_images.py
@@ -157,8 +157,11 @@ class ImageParser(object):
self.partition_mountpoints.append(mountpoint)
yield mountpoint
del d
- except:
+ ... | Add better debugging in case mount fails | py |
diff --git a/pyinfra/modules/git.py b/pyinfra/modules/git.py
index <HASH>..<HASH> 100644
--- a/pyinfra/modules/git.py
+++ b/pyinfra/modules/git.py
@@ -10,7 +10,7 @@ from pyinfra.api import operation
@operation
def repo(source, target, branch='master', pull=True, rebase=False):
- '''Manage git repositories.'''
+ ... | Add comment about git.repo not being branch aware (yet) | py |
diff --git a/tests/test_core.py b/tests/test_core.py
index <HASH>..<HASH> 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -123,6 +123,9 @@ class TestResource:
user = User()
assert repr(user) == '<mysite.User: foo>'
+ del User.__str__
+ assert repr(user) == '<mysite.User: [n... | test rebustness of session, resource repr | py |
diff --git a/pipenv/environments.py b/pipenv/environments.py
index <HASH>..<HASH> 100644
--- a/pipenv/environments.py
+++ b/pipenv/environments.py
@@ -206,12 +206,6 @@ class Setting:
Default is 0. Automatically set to 1 on CI environments for robust testing.
"""
- self.PIPENV_MAX_ROUNDS = int... | PIPENV_MAX_ROUNDS is no longer used Since [this commit][1] removed the usage of piptools resolver in favor of pip's internal resolver. [1] 5ef5a<I>d<I>f2fc7f0e<I>ffc<I>b | py |
diff --git a/pyghmi/ipmi/events.py b/pyghmi/ipmi/events.py
index <HASH>..<HASH> 100644
--- a/pyghmi/ipmi/events.py
+++ b/pyghmi/ipmi/events.py
@@ -447,12 +447,15 @@ class EventHandler(object):
sensorid = petdata[28]
event_data = petdata[31:34]
event = {}
- seqnum = struct.unpack_from('... | Fix PET acknowledge errors The PET acknowledge code was incorrect. Fix it by properly extracting the fields by index and fixing reference to self._ipmicmd and also do not treat a failure on acknowledge as an error for now. Change-Id: Icafc<I>a<I>e<I>acf<I>bf4dbeee9e5d | py |
diff --git a/jsone/render.py b/jsone/render.py
index <HASH>..<HASH> 100644
--- a/jsone/render.py
+++ b/jsone/render.py
@@ -156,14 +156,19 @@ def let(template, context):
subcontext = context.copy()
for k, v in template['$let'].items():
- if k in operators:
- operator_values = renderValue(te... | operators: Allow $let to be evaluated. Python Implementation. | py |
diff --git a/salt/modules/cp.py b/salt/modules/cp.py
index <HASH>..<HASH> 100644
--- a/salt/modules/cp.py
+++ b/salt/modules/cp.py
@@ -209,6 +209,9 @@ def get_file(path,
gzip=None,
**kwargs):
'''
+ .. versionchanged:: Oxygen
+ ``dest`` can now be a directory
+
Used to get... | Add versionchanged to document new functionality | py |
diff --git a/alburnum/maas/bones/__init__.py b/alburnum/maas/bones/__init__.py
index <HASH>..<HASH> 100644
--- a/alburnum/maas/bones/__init__.py
+++ b/alburnum/maas/bones/__init__.py
@@ -23,6 +23,7 @@ import httplib2
from .. import utils
from ..utils import profiles
+from ..utils.login import login
class Sessi... | Add a login() class method to SessionAPI. | py |
diff --git a/tests/test_actionAngle.py b/tests/test_actionAngle.py
index <HASH>..<HASH> 100644
--- a/tests/test_actionAngle.py
+++ b/tests/test_actionAngle.py
@@ -210,7 +210,7 @@ def test_actionAngleSpherical_basic_actions():
assert numpy.fabs(js[2]) < 10.**-16., 'Circular orbit in the spherical LogarithmicHaloPot... | No need to test OrbitTop input to actionAngle anymore | py |
diff --git a/lib/tri/table/__init__.py b/lib/tri/table/__init__.py
index <HASH>..<HASH> 100644
--- a/lib/tri/table/__init__.py
+++ b/lib/tri/table/__init__.py
@@ -573,8 +573,8 @@ class Table(object):
header__template = 'tri_table/table_header_rows.html'
links__template = 'tri_table/links.html'
- ... | Avoid failing when tables are rendered without any query machinery | py |
diff --git a/gitenberg/push.py b/gitenberg/push.py
index <HASH>..<HASH> 100644
--- a/gitenberg/push.py
+++ b/gitenberg/push.py
@@ -25,6 +25,9 @@ class GithubRepo():
self.create_repo()
except github3.GitHubError as g_exception:
print g_exception
+ if g_exception.code == 422:... | fix exception throwing for github validation errors | py |
diff --git a/salt/roster/ansible.py b/salt/roster/ansible.py
index <HASH>..<HASH> 100644
--- a/salt/roster/ansible.py
+++ b/salt/roster/ansible.py
@@ -139,9 +139,10 @@ class Target(object):
Execute the correct tgt_type routine and return
'''
try:
- return getattr(self, 'get_{0}'.fo... | move routine call out of try/except block The try/except block is indented to handle AttributeErrors if the routine `get_<tgt_type>` is not available. But since the actual function call is also wrapped in the block if the routine is actually implemented but raises an AttributeError that one is catched too (which I thi... | py |
diff --git a/demo_and_tests/model_filefields_example/tests.py b/demo_and_tests/model_filefields_example/tests.py
index <HASH>..<HASH> 100644
--- a/demo_and_tests/model_filefields_example/tests.py
+++ b/demo_and_tests/model_filefields_example/tests.py
@@ -526,3 +526,11 @@ class AddEditAndDeleteCDsTests(TestCase):
... | fix exists() and add tests for it | py |
diff --git a/nfc/clf.py b/nfc/clf.py
index <HASH>..<HASH> 100644
--- a/nfc/clf.py
+++ b/nfc/clf.py
@@ -166,9 +166,8 @@ class ContactlessFrontend(object):
"""Close the contacless reader device."""
with self.lock:
if self.dev:
- #try:
- self.dev.close()
- ... | reactivate the try/except around dev.close() which got deactivated with an earlier commit | py |
diff --git a/internetarchive/api.py b/internetarchive/api.py
index <HASH>..<HASH> 100644
--- a/internetarchive/api.py
+++ b/internetarchive/api.py
@@ -129,7 +129,7 @@ def download_file(identifier, filename, **kwargs):
# get_tasks()
#_____________________________________________________________________________________... | Do not send kwargs to Catalog(). | py |
diff --git a/airflow/example_dags/example_branch_python_dop_operator_3.py b/airflow/example_dags/example_branch_python_dop_operator_3.py
index <HASH>..<HASH> 100644
--- a/airflow/example_dags/example_branch_python_dop_operator_3.py
+++ b/airflow/example_dags/example_branch_python_dop_operator_3.py
@@ -42,9 +42,9 @@ def... | [AIRFLOW-<I>] - Corrected task ids returned by BranchPythonOperator to match the dummy operator ids (#<I>) | py |
diff --git a/datascience/tables.py b/datascience/tables.py
index <HASH>..<HASH> 100644
--- a/datascience/tables.py
+++ b/datascience/tables.py
@@ -584,14 +584,6 @@ class Table(collections.abc.MutableMapping):
8 | 10
34 | 5
5 | 6
-
- >>> # You... | Take out example with list For context, Ani wrote: > We might support lists, but we're not teaching them yet and might not > teach them at all. Could the first example under select please not > include any lists? > Motivation for the docs: I realize that docs will have to reach a > broader public because it's a publ... | py |
diff --git a/ansible_runner/config/_base.py b/ansible_runner/config/_base.py
index <HASH>..<HASH> 100644
--- a/ansible_runner/config/_base.py
+++ b/ansible_runner/config/_base.py
@@ -35,7 +35,6 @@ from ansible_runner.output import debug
from ansible_runner.exceptions import ConfigurationError
from ansible_runner.load... | Back out cleanup of dot runner file | py |
diff --git a/pyontutils/htmlfun.py b/pyontutils/htmlfun.py
index <HASH>..<HASH> 100644
--- a/pyontutils/htmlfun.py
+++ b/pyontutils/htmlfun.py
@@ -11,14 +11,16 @@ def tag(_tag, n=False):
return s + nl.join(value) + e
return tagwrap
-def atag(href, value=None, new_tab=False, uriconv=None, cls=None):
+def... | htmlfun added atag title | py |
diff --git a/pycanlib/CAN.py b/pycanlib/CAN.py
index <HASH>..<HASH> 100644
--- a/pycanlib/CAN.py
+++ b/pycanlib/CAN.py
@@ -871,8 +871,15 @@ class Bus(object):
self.__timer_offset = value
if value < self.__timer_offset: #Check for overflow
- value += 0xFFFFFFFF
- ... | Fixed CAN timestamp overflow on <I>-bit machines | py |
diff --git a/src/scs_core/aws/client/mqtt_client.py b/src/scs_core/aws/client/mqtt_client.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/aws/client/mqtt_client.py
+++ b/src/scs_core/aws/client/mqtt_client.py
@@ -77,11 +77,13 @@ class MQTTClient(object):
# connect...
try:
- self.__clien... | Improved AWS MQTT client connection failure handling. | py |
diff --git a/ceph_deploy/hosts/common.py b/ceph_deploy/hosts/common.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/hosts/common.py
+++ b/ceph_deploy/hosts/common.py
@@ -128,6 +128,18 @@ def mon_add(distro, args, monitor_keyring, hostname):
],
)
+ # add it
+ process.run(
+ ... | call 'mon add' to get the mon into the monmap | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -302,7 +302,7 @@ def do_setup():
'funcsigs==1.0.0',
'future>=0.16.0, <0.17',
'gitpython>=2.0.2',
- 'gunicorn>=19.4.0, <20.0',
+ 'gunicorn>=19.5.0, <20.0',
... | [AIRFLOW-<I>] - Upgrade gunicorn to <I> to avoid moderate-severity CVE (#<I>) Upgrade gunicorn to <I> to avoid moderate-severity CVE | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name = 'lessrpc_common',
- packages = ['lessrpc_common'], # this must be the same as the name above
+ packages = ['lessrpc_common','lessrpc_common.info','lessrpc_common.... | updated setup.py to include all recursive packages | py |
diff --git a/salt/states/cron.py b/salt/states/cron.py
index <HASH>..<HASH> 100644
--- a/salt/states/cron.py
+++ b/salt/states/cron.py
@@ -540,6 +540,7 @@ def file(name,
__env__,
context,
defaults,
+ False, # skip_verify
**kwargs
)
except Exce... | Unbreak cron.file An extra argument (skip_verify) was recently added to get_managed(), resulting in this error: Unable to manage file: get_managed() takes exactly <I> arguments (<I> given) Also eliminate a variable that can remain uninitialized when running `salt-call` | py |
diff --git a/m2bk/driver.py b/m2bk/driver.py
index <HASH>..<HASH> 100644
--- a/m2bk/driver.py
+++ b/m2bk/driver.py
@@ -34,12 +34,12 @@ def load(*, name="dummy", **kwargs):
.format(driver=_driver.get_name()))
def backup_file(*, file, host):
- log.msg_debug("[{driver}] Backing up file '{file}'"
- ... | Log messages on driver only show if an actual driver has been loaded | py |
diff --git a/m2r.py b/m2r.py
index <HASH>..<HASH> 100644
--- a/m2r.py
+++ b/m2r.py
@@ -228,7 +228,7 @@ class RestRenderer(mistune.Renderer):
elif lang:
first_line = '\n.. code-block:: {}\n\n'.format(lang)
elif _is_sphinx:
- first_line = '\n.. code-block:: guess\n\n'
+ ... | Use reST literal block for Sphinx code block This lets language be managed by Sphinx config option 'highlight_language'. | py |
diff --git a/OpenSSL/__init__.py b/OpenSSL/__init__.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/__init__.py
+++ b/OpenSSL/__init__.py
@@ -10,13 +10,17 @@ pyOpenSSL - A simple wrapper around the OpenSSL library
"""
import sys
-orig = sys.getdlopenflags()
-sys.setdlopenflags(2|256)
-from OpenSSL import crypto
-sys.s... | Try to support Windows here - ie, do not do any of the dl flags stuff | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -82,6 +82,7 @@ def write_version():
f = open(fname, "w")
f.writelines("version = '%s'\n" % build_verstring())
f.writelines("dev = %s" % DEV)
+ f.writelines("full_version = %s" % build_fverstring())
f.clo... | Add full version string to version info. | py |
diff --git a/arcrest/server.py b/arcrest/server.py
index <HASH>..<HASH> 100644
--- a/arcrest/server.py
+++ b/arcrest/server.py
@@ -1286,7 +1286,7 @@ class GPJobStatus(RestURL):
def __getattr__(self, attr):
return self.__class__.results.__get__(self)[attr]
-class GPJob(JsonResult):
+class GPJob(JsonPostR... | fixes SubmitJob when server is behind WebAdaptor-IIS | py |
diff --git a/AWSScout2/finding_ec2.py b/AWSScout2/finding_ec2.py
index <HASH>..<HASH> 100755
--- a/AWSScout2/finding_ec2.py
+++ b/AWSScout2/finding_ec2.py
@@ -26,10 +26,10 @@ class Ec2Finding(Finding):
def checkInternetAccessiblePort(self, key, obj):
method = self.callback_args[0]
if method == 'w... | Fix a number of EC2 vulns reporting due to capitalization of protocols | py |
diff --git a/twarc/client2.py b/twarc/client2.py
index <HASH>..<HASH> 100644
--- a/twarc/client2.py
+++ b/twarc/client2.py
@@ -861,7 +861,7 @@ class Twarc2:
resource_owner_secret=self.access_token_secret,
)
- def _id_exists(user):
+ def _id_exists(self, user):
"""
... | fix ensure_user_id after refactor | py |
diff --git a/lib/git/objects/utils.py b/lib/git/objects/utils.py
index <HASH>..<HASH> 100644
--- a/lib/git/objects/utils.py
+++ b/lib/git/objects/utils.py
@@ -113,18 +113,15 @@ class Traversable(object):
``branch_first``
if True, items will be returned branch first, otherwise depth first
- ``visit_once``
-... | improved performance of item traversal, its nearly as fast as it was with the first very pure implementation | py |
diff --git a/easy_thumbnails/migrations/0010_rename_storage.py b/easy_thumbnails/migrations/0010_rename_storage.py
index <HASH>..<HASH> 100644
--- a/easy_thumbnails/migrations/0010_rename_storage.py
+++ b/easy_thumbnails/migrations/0010_rename_storage.py
@@ -10,9 +10,6 @@ class Migration(SchemaMigration):
db.r... | Remove some test code from the <I> migration | py |
diff --git a/symbols/type_.py b/symbols/type_.py
index <HASH>..<HASH> 100644
--- a/symbols/type_.py
+++ b/symbols/type_.py
@@ -45,6 +45,9 @@ class SymbolTYPE(Symbol):
def is_basic(self):
''' Whether this is a basic (canonical) type or not.
'''
+ if len(self.children) == 1:
+ ret... | - A composed type is basic if it consist only of a basic type. - A type is dynamic if it consist of a string or any other type that uses the heap. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ if sys.version_info < (3, 2):
else:
from os import makedirs
-if LooseVersion(pip.__version__) >= LooseVersion('6.0.0'):
+if hasattr(pip, '__version__') and LooseVersion(pip.__version__) >= LooseVersion('... | Pip <I> support. | py |
diff --git a/salt/modules/grains.py b/salt/modules/grains.py
index <HASH>..<HASH> 100644
--- a/salt/modules/grains.py
+++ b/salt/modules/grains.py
@@ -33,7 +33,7 @@ def item(key=None):
'''
return __grains__.get(key, '')
-def list():
+def ls():
'''
Return a list of all available grains
@@ -42,6 +... | Remove grains.list in favor of grains.ls It overrides a python builtin | py |
diff --git a/tests/double_disp.py b/tests/double_disp.py
index <HASH>..<HASH> 100644
--- a/tests/double_disp.py
+++ b/tests/double_disp.py
@@ -7,10 +7,13 @@ from pyvirtualdisplay import Display
def check_double_disp(backend):
python = sys.executable
+ if not backend:
+ backend = ""
# the main p... | test: fix check_double_disp | py |
diff --git a/pyqode/core/frontend/modes/indenter.py b/pyqode/core/frontend/modes/indenter.py
index <HASH>..<HASH> 100644
--- a/pyqode/core/frontend/modes/indenter.py
+++ b/pyqode/core/frontend/modes/indenter.py
@@ -136,7 +136,7 @@ class IndenterMode(Mode):
if char == " ":
spaces +=... | Fix bug with unindent that eats meaningful chars | py |
diff --git a/paved/util.py b/paved/util.py
index <HASH>..<HASH> 100644
--- a/paved/util.py
+++ b/paved/util.py
@@ -8,7 +8,7 @@ from paver.easy import info, options, path, dry, sh, Bunch
from . import paved
-__all__ = ['pip_install', 'easy_install', 'rmFilePatterns', 'rmDirPatterns', 'shv', 'update', ]
+__all__ = [... | Added bash in paved.util.__all__ | py |
diff --git a/tests/api_test.py b/tests/api_test.py
index <HASH>..<HASH> 100644
--- a/tests/api_test.py
+++ b/tests/api_test.py
@@ -576,6 +576,20 @@ class APITest(jtu.JaxTestCase):
"the scope of <jax.custom_transforms function bar>, but defjvp and "
"defjvp_all only support differentiation w.r.t. posit... | Test for defvjp closure error | py |
diff --git a/bids/modeling/statsmodels.py b/bids/modeling/statsmodels.py
index <HASH>..<HASH> 100644
--- a/bids/modeling/statsmodels.py
+++ b/bids/modeling/statsmodels.py
@@ -689,6 +689,8 @@ class BIDSStatsModelsNodeOutput:
in_contrasts = self.node.contrasts.copy()
col_names = set(self.X.columns)
+ ... | Set intercept to 1 in dummycontrast | py |
diff --git a/alpaca_trade_api/stream2.py b/alpaca_trade_api/stream2.py
index <HASH>..<HASH> 100644
--- a/alpaca_trade_api/stream2.py
+++ b/alpaca_trade_api/stream2.py
@@ -190,11 +190,11 @@ class StreamConn(object):
self,
key_id: str = None,
secret_key: str = None,
- oau... | fix: move StreamConn oauth arg to end of list Even though it is better suited next to the api keys, when users don't use named args ( => kwargs) this new order may break their usage. e.g: ```py StreamConn(self._key_id, self._secret_key, self._base_url) ``` this will put... | py |
diff --git a/src/gui/qt_b26_load_dialog.py b/src/gui/qt_b26_load_dialog.py
index <HASH>..<HASH> 100644
--- a/src/gui/qt_b26_load_dialog.py
+++ b/src/gui/qt_b26_load_dialog.py
@@ -139,10 +139,13 @@ Returns:
if name in self.elements_old:
info = self.elements_old[name].__class__.__doc__
+ ... | Load_dialog now uses path of script or instrument to see what module it is in, and then makes sure to load it from that module when looking for __doc__ | py |
diff --git a/tests/test_50_sample_data.py b/tests/test_50_sample_data.py
index <HASH>..<HASH> 100644
--- a/tests/test_50_sample_data.py
+++ b/tests/test_50_sample_data.py
@@ -59,7 +59,7 @@ def test_open_dataset_fail(grib_name):
])
def test_to_grib_eccodes(grib_name, tmpdir):
grib_path = os.path.join(SAMPLE_DATA_... | Bugfix: python2 notices the missing cast to str. | py |
diff --git a/pyipmi/msgs/device_messaging.py b/pyipmi/msgs/device_messaging.py
index <HASH>..<HASH> 100644
--- a/pyipmi/msgs/device_messaging.py
+++ b/pyipmi/msgs/device_messaging.py
@@ -302,7 +302,7 @@ class GetSessionChallengeRsp(Message):
__fields__ = (
CompletionCode(),
UnsignedInt('temporary... | msgs: device_messaging: fix challenge_string field initialization The field is a string not int. | py |
diff --git a/tests/base.py b/tests/base.py
index <HASH>..<HASH> 100644
--- a/tests/base.py
+++ b/tests/base.py
@@ -45,7 +45,7 @@ class TestCaseBackendArchive(unittest.TestCase):
"""Test whether the method fetch_from_archive works properly"""
items = [items for items in self.backend_write_archive.fet... | [tests] Fix fetch_from_archive test This patch fixes the method _test_fetch_from_archive. Before, archived items and items were read from the same backend, now archived items are read from backend_read_archive, while items from backend_write_archive. | py |
diff --git a/ford/tipue_search.py b/ford/tipue_search.py
index <HASH>..<HASH> 100644
--- a/ford/tipue_search.py
+++ b/ford/tipue_search.py
@@ -6,18 +6,22 @@
#
# Copyright 2015 Christopher MacMackin <cmacmackin@gmail.com>
#
-# Foobar is free software: you can redistribute it and/or modify
-# it under the terms... | Correct inadvertent issue with licensing. | py |
diff --git a/graphene/core/types.py b/graphene/core/types.py
index <HASH>..<HASH> 100644
--- a/graphene/core/types.py
+++ b/graphene/core/types.py
@@ -1,6 +1,7 @@
import copy
import inspect
from collections import OrderedDict
+from functools import partial
import six
@@ -192,8 +193,7 @@ class BaseObjectType(obj... | Improved resolve_type function using partials | py |
diff --git a/h11/_headers.py b/h11/_headers.py
index <HASH>..<HASH> 100644
--- a/h11/_headers.py
+++ b/h11/_headers.py
@@ -206,6 +206,14 @@ def get_comma_header(headers, name):
def set_comma_header(headers, name, new_values):
# The header name `name` is expected to be lower-case bytes.
+ #
+ # Note that w... | Note on title casing in set_headers | py |
diff --git a/readability/scoring.py b/readability/scoring.py
index <HASH>..<HASH> 100644
--- a/readability/scoring.py
+++ b/readability/scoring.py
@@ -241,6 +241,9 @@ class ScoredNode(object):
return generate_hash_id(self.node)
def __repr__(self):
+ if self.node is None:
+ return "<Nul... | Added string representation for empty scored node | py |
diff --git a/subprocrunner/_subprocess_runner.py b/subprocrunner/_subprocess_runner.py
index <HASH>..<HASH> 100644
--- a/subprocrunner/_subprocess_runner.py
+++ b/subprocrunner/_subprocess_runner.py
@@ -23,7 +23,7 @@ from ._which import Which
class SubprocessRunner(object):
_DRY_RUN_OUTPUT = ""
- is_dry_run ... | Rename a variable to be more precisely represent the variable objective | py |
diff --git a/telethon/client/messages.py b/telethon/client/messages.py
index <HASH>..<HASH> 100644
--- a/telethon/client/messages.py
+++ b/telethon/client/messages.py
@@ -914,6 +914,7 @@ class MessageMethods:
parse_mode: str = (),
link_preview: bool = True,
file: 'hints.FileLike' ... | Allow force_document in edit_message (#<I>) | py |
diff --git a/Example/PyDect200_Demo.py b/Example/PyDect200_Demo.py
index <HASH>..<HASH> 100755
--- a/Example/PyDect200_Demo.py
+++ b/Example/PyDect200_Demo.py
@@ -28,5 +28,5 @@ for dev_id in info.keys():
print(u"Device State: %s" % ('ON' if info.get(dev_id) == '1' else 'OFF'))
print(u"Device Po... | Fixes °C in Demo | py |
diff --git a/log_request_id/tests.py b/log_request_id/tests.py
index <HASH>..<HASH> 100644
--- a/log_request_id/tests.py
+++ b/log_request_id/tests.py
@@ -127,7 +127,3 @@ if async_to_sync:
def call_view(self, request):
return async_to_sync(test_async_view)(request)
-
-
- class AsyncRequestIDP... | Remove async version of tests for request ID passthrough | py |
diff --git a/poloniex/poloniex.py b/poloniex/poloniex.py
index <HASH>..<HASH> 100644
--- a/poloniex/poloniex.py
+++ b/poloniex/poloniex.py
@@ -125,7 +125,11 @@ class Poloniex(PoloniexPublic):
self._apikey, self._secret = apikey, secret
def __call__(self, request):
- signature = _hmac.... | fix encoding for hashing | py |
diff --git a/tests/integration/states/test_file.py b/tests/integration/states/test_file.py
index <HASH>..<HASH> 100644
--- a/tests/integration/states/test_file.py
+++ b/tests/integration/states/test_file.py
@@ -569,6 +569,8 @@ class FileTest(integration.ModuleCase, integration.SaltReturnAssertsMixIn):
'''
... | Fail test if sudo is missing | py |
diff --git a/pysc2/lib/renderer_human.py b/pysc2/lib/renderer_human.py
index <HASH>..<HASH> 100644
--- a/pysc2/lib/renderer_human.py
+++ b/pysc2/lib/renderer_human.py
@@ -979,7 +979,7 @@ class RendererHuman(object):
hmap_feature = features.SCREEN_FEATURES.height_map
hmap = hmap_feature.unpack(self._obs.observ... | hmap is read-only in new versions of numpy. PiperOrigin-RevId: <I> | py |
diff --git a/pghoard/transfer.py b/pghoard/transfer.py
index <HASH>..<HASH> 100644
--- a/pghoard/transfer.py
+++ b/pghoard/transfer.py
@@ -238,7 +238,7 @@ class TransferAgent(Thread):
else:
# Basebackups may be multipart uploads, depending on the driver.
# Swift needs to k... | fix: upload basebackup_chunk as multipart | py |
diff --git a/tests/test_plugin_api_http_session.py b/tests/test_plugin_api_http_session.py
index <HASH>..<HASH> 100644
--- a/tests/test_plugin_api_http_session.py
+++ b/tests/test_plugin_api_http_session.py
@@ -8,12 +8,13 @@ class TestPluginAPIHTTPSession(unittest.TestCase):
def test_read_timeout(self):
s... | tests: Python <I>'s unittest module is terrible. | py |
diff --git a/dvc/__init__.py b/dvc/__init__.py
index <HASH>..<HASH> 100644
--- a/dvc/__init__.py
+++ b/dvc/__init__.py
@@ -5,7 +5,7 @@ Make your data science projects reproducible and shareable.
"""
import os
-VERSION_BASE = '0.16.0'
+VERSION_BASE = '0.16.2'
__version__ = VERSION_BASE
PACKAGEPATH = os.path.absp... | dvc: bump to <I> | py |
diff --git a/utilities/text-import.py b/utilities/text-import.py
index <HASH>..<HASH> 100755
--- a/utilities/text-import.py
+++ b/utilities/text-import.py
@@ -178,7 +178,7 @@ class TextImporter(Importer):
p1.prefix = prefix_node1
p1.type = 'host'
p1.node = node1
- ... | Whops, typo :( Fixes issue #5 | py |
diff --git a/howdoi/howdoi.py b/howdoi/howdoi.py
index <HASH>..<HASH> 100755
--- a/howdoi/howdoi.py
+++ b/howdoi/howdoi.py
@@ -712,18 +712,22 @@ def prompt_stash_remove(args, stash_list, view_stash=True):
def perform_sanity_check():
+ '''Perform sanity check.
+ Returns exit code for program. An exit code of ... | fix: add non-zero exit code to validation errors in sanity check | py |
diff --git a/metaextract/metaextract.py b/metaextract/metaextract.py
index <HASH>..<HASH> 100644
--- a/metaextract/metaextract.py
+++ b/metaextract/metaextract.py
@@ -50,6 +50,9 @@ class metaextract(Command):
'scripts', 'tests_require', 'tests_suite']:
if hasattr(self.distribution, key... | Fix json serialization for dict_items on py3 (#4) With python<I>, data_files is a 'dict_items' object which is not serializable. Closes #4 | py |
diff --git a/charmhelpers/contrib/openstack/amulet/deployment.py b/charmhelpers/contrib/openstack/amulet/deployment.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/amulet/deployment.py
+++ b/charmhelpers/contrib/openstack/amulet/deployment.py
@@ -46,7 +46,7 @@ class OpenStackAmuletDeployment(AmuletD... | amulet openstack deployment.py - also fix series logic for stable deploys | py |
diff --git a/salt/modules/gentoolkitmod.py b/salt/modules/gentoolkitmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/gentoolkitmod.py
+++ b/salt/modules/gentoolkitmod.py
@@ -35,7 +35,7 @@ def revdep_rebuild(lib=None):
salt '*' gentoolkit.revdep_rebuild
'''
- cmd = 'revdep-rebuild --quiet --no-pr... | to avoid problem I think that would be better to delete old temp files every time revdep-rebuild runs | py |
diff --git a/scanorama/scanorama.py b/scanorama/scanorama.py
index <HASH>..<HASH> 100644
--- a/scanorama/scanorama.py
+++ b/scanorama/scanorama.py
@@ -89,7 +89,7 @@ def correct(datasets_full, genes_list, return_dimred=False,
"""
datasets_full = check_datasets(datasets_full)
- datasets, genes = merge_... | Fix issue where functions mutate variable passed in | py |
diff --git a/mysql2pgsql/lib/postgres_writer.py b/mysql2pgsql/lib/postgres_writer.py
index <HASH>..<HASH> 100644
--- a/mysql2pgsql/lib/postgres_writer.py
+++ b/mysql2pgsql/lib/postgres_writer.py
@@ -218,7 +218,7 @@ class PostgresWriter(object):
serial_key_sql.append('DROP SEQUENCE IF EXISTS "%s" CASCADE;' ... | sequence names shouldn't be quoted with QuotedString | py |
diff --git a/mythril/interfaces/cli.py b/mythril/interfaces/cli.py
index <HASH>..<HASH> 100644
--- a/mythril/interfaces/cli.py
+++ b/mythril/interfaces/cli.py
@@ -91,7 +91,6 @@ def main():
print("Mythril version {}".format(VERSION))
sys.exit()
-
# Parse cmdline args
if not (args.search o... | Uncomment multiple file check for graphs code | py |
diff --git a/openquake/commonlib/tests/readinput_test.py b/openquake/commonlib/tests/readinput_test.py
index <HASH>..<HASH> 100644
--- a/openquake/commonlib/tests/readinput_test.py
+++ b/openquake/commonlib/tests/readinput_test.py
@@ -454,7 +454,7 @@ class GetCompositeSourceModelTestCase(unittest.TestCase):
# ... | Improved comment [skip CI] | py |
diff --git a/pytorch2keras/layers.py b/pytorch2keras/layers.py
index <HASH>..<HASH> 100644
--- a/pytorch2keras/layers.py
+++ b/pytorch2keras/layers.py
@@ -20,7 +20,7 @@ def convert_conv(params, w_name, scope_name, inputs, layers, weights):
tf_name = w_name + str(random.random())
bias_name = '{0}.bias'.format(... | Fixed wrong element selection from layers dictionary. Closes #<I> | py |
diff --git a/tpb/constants.py b/tpb/constants.py
index <HASH>..<HASH> 100644
--- a/tpb/constants.py
+++ b/tpb/constants.py
@@ -3,15 +3,20 @@ from new import classobj
class Constants(type):
def __repr__(cls):
- for attr in dir(cls):
- if not attr.startswith('_'):
- attr = getattr... | beautiful indented representations of constants | py |
diff --git a/claripy/vsa/strided_interval.py b/claripy/vsa/strided_interval.py
index <HASH>..<HASH> 100644
--- a/claripy/vsa/strided_interval.py
+++ b/claripy/vsa/strided_interval.py
@@ -29,8 +29,12 @@ def normalize_types(f):
return o.union(self)
if isinstance(o, ValueSet) or isinstance(o, Discr... | Support conversion from ValueSet to SI in SI.normalize_types() code | py |
diff --git a/getpaid/middleware.py b/getpaid/middleware.py
index <HASH>..<HASH> 100644
--- a/getpaid/middleware.py
+++ b/getpaid/middleware.py
@@ -1,4 +1,4 @@
-class SetRemoteAddrFromForwardedFor(object):
+class SetRemoteAddrFromForwardedForMiddleware(object):
def process_request(self, request):
try:
... | Using django naming convention | py |
diff --git a/story/adventures.py b/story/adventures.py
index <HASH>..<HASH> 100644
--- a/story/adventures.py
+++ b/story/adventures.py
@@ -71,13 +71,13 @@ class BaseAdventure(object):
@property
def problem_formatted(self):
context = self.get_context()
- context['adventure_problem'] = self.prob... | Remove unnecesary formatting in adventure, that caused unexpected errors when printing | py |
diff --git a/stravalib/client.py b/stravalib/client.py
index <HASH>..<HASH> 100644
--- a/stravalib/client.py
+++ b/stravalib/client.py
@@ -1643,6 +1643,8 @@ class ActivityUploader(object):
elif response.get('errors'):
# This appears to be an undocumented API; ths is a bit of a hack for now.
... | Prevent AttributeError when ActivityUploader has no error If there are no errors in the upload response, raise_for_exc raises AttributeError | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -39,13 +39,6 @@ setup(
license='MIT License',
author='Santosh Philip',
tests_require=['pytest'],
- install_requires=["munch>=2.0.2",
- "beautifulsoup4>=4.2.1",
- # "numpy>=1.7.1"... | Remove install_requires section from setup.py | py |
diff --git a/tests/test_downloaders.py b/tests/test_downloaders.py
index <HASH>..<HASH> 100644
--- a/tests/test_downloaders.py
+++ b/tests/test_downloaders.py
@@ -7,7 +7,7 @@ from functools import wraps
from numpy.testing import assert_equal, assert_raises
-from fuel.downloaders import mnist, binarized_mnist, cifa... | Added download test for Cifar<I> #<I>. | py |
diff --git a/spyderlib/utils/windows.py b/spyderlib/utils/windows.py
index <HASH>..<HASH> 100644
--- a/spyderlib/utils/windows.py
+++ b/spyderlib/utils/windows.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
-# Copyright � 2012 Pierre Raybaut
+# Copyright © 2012 Pierre Raybaut
# Licensed under the terms of the MIT ... | (Fixes Issue <I>) Fixed spyderlib/utils/windows.py encoding issue with 2to3 | py |
diff --git a/tests/test_compressor.py b/tests/test_compressor.py
index <HASH>..<HASH> 100644
--- a/tests/test_compressor.py
+++ b/tests/test_compressor.py
@@ -393,6 +393,28 @@ class TestCompressor_compressobj(unittest.TestCase):
cobj.flush()
self.assertEqual(cctx.frame_progression(), (6, 6, 15))
+ ... | tests: add test for compressobj() getting in bad state | py |
diff --git a/cobe/brain.py b/cobe/brain.py
index <HASH>..<HASH> 100644
--- a/cobe/brain.py
+++ b/cobe/brain.py
@@ -207,8 +207,10 @@ class Brain:
count += 1
- if best_score is not None \
- and self._too_similar(input_token_infos, reply):
+ if score < 0.0:
+ ... | Use scores < 0 to signal that no further processing should occur Return -<I> for replies with no tokens or replies that have already been scored. | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.