diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -44,7 +44,7 @@ class TestCommand(distutils.core.Command):
distutils.core.setup(
name="gviz_api.py",
- version="1.8.1",
+ version="1.8.2",
description="Python API for Google Visualization",
long_descript... | Increase version number to <I> | py |
diff --git a/vinaigrette/management/commands/makemessages.py b/vinaigrette/management/commands/makemessages.py
index <HASH>..<HASH> 100644
--- a/vinaigrette/management/commands/makemessages.py
+++ b/vinaigrette/management/commands/makemessages.py
@@ -10,7 +10,8 @@ import vinaigrette
from django.core.management.base ... | makemessages: replace ugettext with gettext As in d<I>f<I>ea4ff<I>f<I>a5ef1aead4d<I>c<I>d2e, this is to resolve a warning and future deprecation. | py |
diff --git a/django-nova/src/django_nova/views/images.py b/django-nova/src/django_nova/views/images.py
index <HASH>..<HASH> 100644
--- a/django-nova/src/django_nova/views/images.py
+++ b/django-nova/src/django_nova/views/images.py
@@ -90,7 +90,6 @@ def launch(request, project_id, image_id):
... | removing redirect from images view, as it is handled by the @handle_nova_error decorator | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -8,6 +8,7 @@ setup(
author='Fernando Nogueira',
author_email="fmfnogueira@gmail.com",
description='Bayesian Optimization package',
+ long_description='A Python implementation of global optimization with gauss... | Add long_description to README This will stop the [PyPI page](<URL>) looking bare with "The author of this package has not provided a project description." | py |
diff --git a/python/herald/utils.py b/python/herald/utils.py
index <HASH>..<HASH> 100644
--- a/python/herald/utils.py
+++ b/python/herald/utils.py
@@ -44,3 +44,40 @@ def json_converter(obj):
return tuple(obj)
raise TypeError
+
+# --------------------------------------------------------------------------... | Added a utility method to un-map IPv4 addresses from IPv6 ... does nothing if the "ipaddress" module isn't present | py |
diff --git a/src/fonduer/parser/parser.py b/src/fonduer/parser/parser.py
index <HASH>..<HASH> 100644
--- a/src/fonduer/parser/parser.py
+++ b/src/fonduer/parser/parser.py
@@ -39,7 +39,7 @@ class Parser(UDFRunner):
language="en",
lingual=True, # lingual information
strip=True,
- replac... | Remove the invalid unicode char from replacements | py |
diff --git a/raven/utils/serializer/base.py b/raven/utils/serializer/base.py
index <HASH>..<HASH> 100644
--- a/raven/utils/serializer/base.py
+++ b/raven/utils/serializer/base.py
@@ -105,7 +105,7 @@ class UnicodeSerializer(Serializer):
# unicode character
# e.g. we want the output to be like: "u'רונית... | Better repr for Python 3 for string types | py |
diff --git a/src/richenum/enums.py b/src/richenum/enums.py
index <HASH>..<HASH> 100644
--- a/src/richenum/enums.py
+++ b/src/richenum/enums.py
@@ -268,5 +268,5 @@ class OrderedRichEnum(_EnumMethods):
__metaclass__ = _OrderedRichEnumMetaclass
@classmethod
- def from_index(cls, index): # Purely for consis... | Remove outdated comment The .from_index method was purely for consistency when we supported access with slice notation; now it's essential. | py |
diff --git a/socialregistration/auth.py b/socialregistration/auth.py
index <HASH>..<HASH> 100644
--- a/socialregistration/auth.py
+++ b/socialregistration/auth.py
@@ -1,7 +1,7 @@
from django.contrib.auth.models import User
from django.contrib.sites.models import Site
-from socialregistration.models import (Facebook... | Auth backends catch now Model.DoesNotExist exceptions instead of all of them | py |
diff --git a/aiohttp_admin/backends/mongo_utils.py b/aiohttp_admin/backends/mongo_utils.py
index <HASH>..<HASH> 100644
--- a/aiohttp_admin/backends/mongo_utils.py
+++ b/aiohttp_admin/backends/mongo_utils.py
@@ -95,4 +95,4 @@ def create_validator(schema, primary_key):
keys = [s for s in schema.keys if s.get_name() ... | remove primary key in case of mongo schema. mongo complains if one do updates with pk present in update fields | py |
diff --git a/test/test_subprocwrapper.py b/test/test_subprocwrapper.py
index <HASH>..<HASH> 100644
--- a/test/test_subprocwrapper.py
+++ b/test/test_subprocwrapper.py
@@ -67,7 +67,7 @@ class Test_SubprocessWrapper_run:
])
def test_stdout(self, subproc_run, command, expected):
assert subproc_run.run(c... | Improve python3 compatibility | py |
diff --git a/tests/test_dispatch.py b/tests/test_dispatch.py
index <HASH>..<HASH> 100644
--- a/tests/test_dispatch.py
+++ b/tests/test_dispatch.py
@@ -201,3 +201,8 @@ def test_batch_dispatch(dispatch):
method2.assert_called_with(3, 4)
# FIXME: could use better checking?
+
+
+def test_dispatch_raises_key_err... | Added KeyError check to dispatch test cases. | py |
diff --git a/pyrtl/simulation.py b/pyrtl/simulation.py
index <HASH>..<HASH> 100644
--- a/pyrtl/simulation.py
+++ b/pyrtl/simulation.py
@@ -886,10 +886,10 @@ class SimulationTrace(object):
print(''.join(['#', str(timestamp*10)]), file=file)
print_trace_strs(timestamp)
if include_cl... | fixed bug with missing "b" in vcd clock output | py |
diff --git a/actstream/managers.py b/actstream/managers.py
index <HASH>..<HASH> 100644
--- a/actstream/managers.py
+++ b/actstream/managers.py
@@ -68,6 +68,10 @@ class ActionManager(GFKManager):
actors_by_content_type = defaultdict(lambda: [])
others_by_content_type = defaultdict(lambda: [])
+ ... | Optionally include user's activity in the user stream. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ else:
setup(
name='nodeconductor',
- version='0.92.0',
+ version='0.93.0',
author='OpenNode Team',
author_email='info@opennodecloud.com',
url='https://github.com/opennode/nodeconduct... | Preparing new release: <I> | py |
diff --git a/subconvert/subutils/suboptparse.py b/subconvert/subutils/suboptparse.py
index <HASH>..<HASH> 100644
--- a/subconvert/subutils/suboptparse.py
+++ b/subconvert/subutils/suboptparse.py
@@ -27,6 +27,15 @@ Python standard library.
import optparse
+import gettext
+import path as subpath
+
+t = gettext.trans... | Fix SubOptParser gettext issues Soooo lucky that get_locale_path is in the same directory! :) | py |
diff --git a/nessclient/cli/events.py b/nessclient/cli/events.py
index <HASH>..<HASH> 100644
--- a/nessclient/cli/events.py
+++ b/nessclient/cli/events.py
@@ -25,10 +25,7 @@ def events(host: str, port: int):
def on_event_received(event: BaseEvent):
print(event)
- loop.run_until_complete(asyncio.gathe... | Update CLI to consume similar to home-assistant (#<I>) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -328,11 +328,11 @@ class TCDistribution(Distribution):
'docs': sphinx_build,
'clean': clean,
}
- try:
- shell_cmd('which dpkg-buildpackage')
- self.cmdclass['debian'] = debian
- except IOErro... | disabling debian build command until fully implemented | py |
diff --git a/pyapns/client.py b/pyapns/client.py
index <HASH>..<HASH> 100644
--- a/pyapns/client.py
+++ b/pyapns/client.py
@@ -40,8 +40,8 @@ class UnknownAppID(Exception): pass
class APNSNotConfigured(Exception): pass
-def provision(app_id, path_to_cert, environment, callback=None):
- args = [app_id, path_to_cert... | add timeout to python client provision method | py |
diff --git a/runtests.py b/runtests.py
index <HASH>..<HASH> 100755
--- a/runtests.py
+++ b/runtests.py
@@ -26,7 +26,9 @@ DATABASES = {
'USER': 'root',
},
}
-
+DEFAULT_DATABASE_KEY = os.environ.get('DB_ENGINE', 'sqlite3')
+DATABASES['default'] = DATABASES[DEFAULT_DATABASE_KEY]
+del DATABASES[DEFAULT_DATAB... | Tests again multiple databases at the same time. | py |
diff --git a/dataviews/styles/__init__.py b/dataviews/styles/__init__.py
index <HASH>..<HASH> 100644
--- a/dataviews/styles/__init__.py
+++ b/dataviews/styles/__init__.py
@@ -17,6 +17,8 @@ options.Contours = StyleOpts(color='k')
options.SheetView = StyleOpts(cmap='gray', interpolation='nearest')
options.Matrix = Styl... | Added style to reduce GridLayout font and label size | py |
diff --git a/pymrio/core/constants.py b/pymrio/core/constants.py
index <HASH>..<HASH> 100644
--- a/pymrio/core/constants.py
+++ b/pymrio/core/constants.py
@@ -10,13 +10,13 @@ import os
PYMRIO_PATH = {
'root': os.path.dirname(__file__),
'test_mrio': os.path.abspath(os.path.join(os.path.dirname(__file__),
- ... | Change relative file path for the mrio data | py |
diff --git a/tornado/test/httpclient_test.py b/tornado/test/httpclient_test.py
index <HASH>..<HASH> 100644
--- a/tornado/test/httpclient_test.py
+++ b/tornado/test/httpclient_test.py
@@ -657,6 +657,16 @@ X-XSS-Protection: 1;
for k, v in response.time_info.items():
self.assertTrue(0 <= v < 1.0, "ti... | httpclient_test: add test for connect_timeout=0 request_timeout=0 | py |
diff --git a/winpty/tests/test_winpty_wrapper.py b/winpty/tests/test_winpty_wrapper.py
index <HASH>..<HASH> 100644
--- a/winpty/tests/test_winpty_wrapper.py
+++ b/winpty/tests/test_winpty_wrapper.py
@@ -58,20 +58,11 @@ def test_write():
def test_isalive():
pty = pty_fixture(80, 25)
- line = pty.read()
- w... | Test should wait until process has exited | py |
diff --git a/vprof/code_heatmap.py b/vprof/code_heatmap.py
index <HASH>..<HASH> 100644
--- a/vprof/code_heatmap.py
+++ b/vprof/code_heatmap.py
@@ -63,3 +63,13 @@ class CodeHeatmapProfile(base_profile.BaseProfile):
'srcCode': src_code,
'heatmap': prof.heatmap
}
+
+ def run(self):
+ ... | Render code heatmap in current process (#<I>). | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -26,7 +26,7 @@ tests_require = [
# use external unittest for 2.6
if sys.version_info[:2] == (2, 6):
- tests_require.append('unittest2')
+ install_requires.append('unittest2')
if sys.version_info[0] == 2:
# on... | unittest2 is now used in test helpers | py |
diff --git a/menuconfig.py b/menuconfig.py
index <HASH>..<HASH> 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -957,10 +957,12 @@ def _init():
# Looking for this in addition to KEY_BACKSPACE (which is unreliable) makes
# backspace work with TERM=vt100. That makes it likely to work in sane
# environmen... | menuconfig: Only decode curses.erasechar() on Python 3 Avoids turning it into a Unicode string on Python 2, which gets messy when strings are compared. | py |
diff --git a/tests/py/test_unittest.py b/tests/py/test_unittest.py
index <HASH>..<HASH> 100644
--- a/tests/py/test_unittest.py
+++ b/tests/py/test_unittest.py
@@ -19,10 +19,17 @@
import unittest
-def assertMultiLineEqual(self, a, b, msg=None): self.assertEqual(a,b,msg)
-unittest.TestCase.assertMultiLineEqual = ass... | NO-JIRA: [c,cpp] fix monkey-patch of python <I> unittest features for python <I> Don't apply patch on versions that have the feature. | py |
diff --git a/yotta/lib/target.py b/yotta/lib/target.py
index <HASH>..<HASH> 100644
--- a/yotta/lib/target.py
+++ b/yotta/lib/target.py
@@ -559,6 +559,8 @@ class DerivedTarget(Target):
@fsutils.dropRootPrivs
def test(self, cwd, test_command, filter_command, forward_args):
+ # we assume that test c... | Assume that test commands are programs in the working directory. (it isn't currently possible to specify a system-installed program in a test command) Also ensure that non-existent test program errors are reported correctly. | py |
diff --git a/src/rez/package_cache.py b/src/rez/package_cache.py
index <HASH>..<HASH> 100644
--- a/src/rez/package_cache.py
+++ b/src/rez/package_cache.py
@@ -271,7 +271,10 @@ class PackageCache(object):
def _while_copying():
while still_copying:
time.sleep(self._COPYING_TIME_INC)... | -fix undefined logger error -CI hit case where copying file wasn't present? | py |
diff --git a/art/test.py b/art/test.py
index <HASH>..<HASH> 100644
--- a/art/test.py
+++ b/art/test.py
@@ -4989,18 +4989,27 @@ True
<BLANKLINE>
<BLANKLINE>
>>> file.close()
->>> tsave("test","standard",filename="test1.txt")
+>>> Data = tsave("test","standard",filename="test1.txt")
Saved!
Filename: test1.txt
-{'Sta... | fix : tests are now suitable for all Python versions | py |
diff --git a/test_pal.py b/test_pal.py
index <HASH>..<HASH> 100644
--- a/test_pal.py
+++ b/test_pal.py
@@ -311,6 +311,27 @@ class TestPAL(unittest.TestCase) :
self.assertAlmostEqual( dh, hin, 12 )
self.assertAlmostEqual( dd, din, 12 )
+ def test_e2hVector(self):
+ nTests = 100
+ phi... | added test for de2hVector | py |
diff --git a/wandb/sdk/wandb_init.py b/wandb/sdk/wandb_init.py
index <HASH>..<HASH> 100644
--- a/wandb/sdk/wandb_init.py
+++ b/wandb/sdk/wandb_init.py
@@ -49,6 +49,15 @@ logger = logging.getLogger("wandb")
def online_status(*args, **kwargs):
pass
+def _get_python_type():
+ try:
+ if 'terminal' in get_... | api key with jupyter | py |
diff --git a/troposphere/opsworks.py b/troposphere/opsworks.py
index <HASH>..<HASH> 100644
--- a/troposphere/opsworks.py
+++ b/troposphere/opsworks.py
@@ -364,4 +364,5 @@ class Server(AWSObject):
'ServerName': (basestring, False),
'ServiceRoleArn': (basestring, True),
'SubnetIds': ([basestrin... | adding Tags to Server, per Feb 6 <I> update | py |
diff --git a/smartcard/Examples/scard-api/sample_getAttrib.py b/smartcard/Examples/scard-api/sample_getAttrib.py
index <HASH>..<HASH> 100755
--- a/smartcard/Examples/scard-api/sample_getAttrib.py
+++ b/smartcard/Examples/scard-api/sample_getAttrib.py
@@ -109,9 +109,9 @@ if __name__ == '__main__':
if len(read... | sample_getAttrib.py: display the reader name The program loops on all the readers. We display the name of each reader. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -30,7 +30,7 @@ login = Extension('systemd/login',
sources = ['systemd/login.c',
'systemd/pyutil.c',
'systemd/strv.c'])
-setup (name = 'sys... | Use python-systemd as the name We want the package to be installed under this name. This is also used for sdist, and we want python-systemd-<version>.tar.xz. | py |
diff --git a/plenum/server/consensus/ordering_service.py b/plenum/server/consensus/ordering_service.py
index <HASH>..<HASH> 100644
--- a/plenum/server/consensus/ordering_service.py
+++ b/plenum/server/consensus/ordering_service.py
@@ -2307,9 +2307,6 @@ class OrderingService:
if result != PROCESS:
... | INDY-<I>: Remove incorrect check from ordering service | py |
diff --git a/nfc/npp/server.py b/nfc/npp/server.py
index <HASH>..<HASH> 100644
--- a/nfc/npp/server.py
+++ b/nfc/npp/server.py
@@ -14,7 +14,7 @@ import nfc.llcp
class NPPServer(Thread):
""" Simple NPP server. If single_threaded is True then a new thread will not be spawned.
"""
- def __init__(self, single... | Make single-threaded the default behavior. | py |
diff --git a/pdb.py b/pdb.py
index <HASH>..<HASH> 100644
--- a/pdb.py
+++ b/pdb.py
@@ -1358,12 +1358,7 @@ def set_trace(frame=None, header=None, Pdb=Pdb, **kwds):
local.GLOBAL_PDB = getattr(local, "GLOBAL_PDB", None)
if local.GLOBAL_PDB:
pdb = local.GLOBAL_PDB
- # Unset tracing (gets set py pd... | set_trace: use set_continue with global pdb (#<I>) This seems to be better than unsetting the trace function, and `test_steps_over_set_trace` still passes. | py |
diff --git a/tests/test_common/test_vcenter/test_vmomi_service.py b/tests/test_common/test_vcenter/test_vmomi_service.py
index <HASH>..<HASH> 100644
--- a/tests/test_common/test_vcenter/test_vmomi_service.py
+++ b/tests/test_common/test_vcenter/test_vmomi_service.py
@@ -1173,4 +1173,17 @@ class ignore_test_common_pyvmo... | added test_get_network_by_full_name test | py |
diff --git a/compbaseball/baseball.py b/compbaseball/baseball.py
index <HASH>..<HASH> 100644
--- a/compbaseball/baseball.py
+++ b/compbaseball/baseball.py
@@ -46,8 +46,7 @@ def validate_inputs(inputs):
def parse_inputs(inputs):
ew = validate_inputs(inputs)
- return {"params": inputs, "jsonstrs": {"inputs": j... | Keep things consistent and return a tuple | py |
diff --git a/scvelo/preprocessing/utils.py b/scvelo/preprocessing/utils.py
index <HASH>..<HASH> 100644
--- a/scvelo/preprocessing/utils.py
+++ b/scvelo/preprocessing/utils.py
@@ -19,10 +19,13 @@ def show_proportions(adata):
Prints the fractions of abundances.
"""
layers_keys = [key for key in ['spliced',... | bugfix (cells with zero counts) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -22,7 +22,7 @@ def main():
'eidos_offline': ['pyyaml>=5.1.0', 'cython', 'pyjnius==1.1.4'],
'geneways': ['stemming', 'nltk'],
'sofia': ['openpyxl'],
- ... | Be safe about next pybel upgrade [skip ci] | py |
diff --git a/parler/templatetags/parler_tags.py b/parler/templatetags/parler_tags.py
index <HASH>..<HASH> 100644
--- a/parler/templatetags/parler_tags.py
+++ b/parler/templatetags/parler_tags.py
@@ -88,7 +88,12 @@ def get_translated_url(context, lang_code, object=None):
"""
view = context.get('view', None)
... | Support most typical CMS context variables in get_translated_url Adds translation switching for many CMS apps out of the box. | py |
diff --git a/splunklib/searchcommands/external_search_command.py b/splunklib/searchcommands/external_search_command.py
index <HASH>..<HASH> 100644
--- a/splunklib/searchcommands/external_search_command.py
+++ b/splunklib/searchcommands/external_search_command.py
@@ -142,7 +142,9 @@ class ExternalSearchCommand(object):
... | Resolved DVPL-<I>, Python SDK | Windows | ExternalSearchCommand._execute should not call sys.exit unless the return code from the external process it starts returns a non-zero code | py |
diff --git a/challonge/api.py b/challonge/api.py
index <HASH>..<HASH> 100644
--- a/challonge/api.py
+++ b/challonge/api.py
@@ -91,7 +91,7 @@ def _parse(root):
value = None
elif type == "boolean":
value = True if child.text.lower() == "true" else False
- elif type == "datetime":... | Fixed a bug where items of type "dateTime" weren't properly parsed | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -89,7 +89,7 @@ setup(
'selenium = nosedjango.nosedjango:SeleniumPlugin',
'djangosphinxsearch = nosedjango.plugins.sphinxsearch_plugin:SphinxSearchPlugin',
'sshtunnel = nosedjango.plugins.... | Fixed broken setup.py entry for celery | py |
diff --git a/docker/api/network.py b/docker/api/network.py
index <HASH>..<HASH> 100644
--- a/docker/api/network.py
+++ b/docker/api/network.py
@@ -52,7 +52,7 @@ class NetworkApiMixin(object):
options (dict): Driver options as a key-value dictionary
ipam (IPAMConfig): Optional custom IP scheme ... | client.networks.create check_duplicates docs not reflective of behavior Fixes #<I> | py |
diff --git a/tropo.py b/tropo.py
index <HASH>..<HASH> 100644
--- a/tropo.py
+++ b/tropo.py
@@ -278,10 +278,11 @@ class Record(TropoAction):
"timeout": Float,
"transcription": Array or Object,
"url": String,#Required ?????
- "username": String } }
+ "username"... | Inclusion of voice attribute didn't catch last time, for unknown reasons. | py |
diff --git a/django_jenkins/tasks/with_coverage.py b/django_jenkins/tasks/with_coverage.py
index <HASH>..<HASH> 100644
--- a/django_jenkins/tasks/with_coverage.py
+++ b/django_jenkins/tasks/with_coverage.py
@@ -59,12 +59,14 @@ class Task(BaseTask):
if not hasattr(mod, "__file__"):
return False
+... | Improve coverage modules selection, tnks j2a | py |
diff --git a/test/luigi_tests.py b/test/luigi_tests.py
index <HASH>..<HASH> 100644
--- a/test/luigi_tests.py
+++ b/test/luigi_tests.py
@@ -9,19 +9,17 @@ except ImportError:
import json
-class FooRecord(pyschema.Record):
- foo = Text()
- bar = Integer()
-
-
class TestMRWriter(BaseTest):
def setUp(se... | Fix for luigi tests that broke due to global state | py |
diff --git a/cassandra/cluster.py b/cassandra/cluster.py
index <HASH>..<HASH> 100644
--- a/cassandra/cluster.py
+++ b/cassandra/cluster.py
@@ -617,9 +617,12 @@ class Cluster(object):
future.add_done_callback(callback)
futures.add(future)
except Exception:
- ... | Reconnect after failed node up under all conditions | py |
diff --git a/foolbox/models/pytorch.py b/foolbox/models/pytorch.py
index <HASH>..<HASH> 100644
--- a/foolbox/models/pytorch.py
+++ b/foolbox/models/pytorch.py
@@ -1,4 +1,5 @@
import numpy as np
+import warnings
from .base import DifferentiableModel
@@ -43,6 +44,12 @@ class PyTorchModel(DifferentiableModel):
... | added a warning when a PyTorch model is in train mode (#<I>) * added a warning when a PyTorch model is in train mode * added missing import | py |
diff --git a/SoftLayer/managers/dns.py b/SoftLayer/managers/dns.py
index <HASH>..<HASH> 100644
--- a/SoftLayer/managers/dns.py
+++ b/SoftLayer/managers/dns.py
@@ -226,6 +226,7 @@ class DNSManager(utils.IdentifierMixin, object):
:param dict record: the record to update
"""
+ record.pop('isGate... | #<I> Remove isGatewayAddress property of record template | py |
diff --git a/tests/integration/runners/test_fileserver.py b/tests/integration/runners/test_fileserver.py
index <HASH>..<HASH> 100644
--- a/tests/integration/runners/test_fileserver.py
+++ b/tests/integration/runners/test_fileserver.py
@@ -8,8 +8,7 @@ import contextlib
# Import Salt Testing libs
import tests.integra... | Changes to imports to comport with test suite changes in develop | 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
@@ -48,6 +48,12 @@ extensions = [
'recommonmark',
]
+# Hack to make sphinx_js work with python 3.10
+import collections
+import collections.abc
+if not hasattr(collections, 'Map... | Copy back collections.Mapping to make sphinx_js work | py |
diff --git a/spyder/utils/iofuncs.py b/spyder/utils/iofuncs.py
index <HASH>..<HASH> 100644
--- a/spyder/utils/iofuncs.py
+++ b/spyder/utils/iofuncs.py
@@ -315,7 +315,7 @@ def save_dictionary(data, filename):
if saved_arrays:
data['__saved_arrays__'] = saved_arrays
pickle_filenam... | Fix #<I> cPickle error on network drives due to file open mode | py |
diff --git a/pyinfra/modules/files.py b/pyinfra/modules/files.py
index <HASH>..<HASH> 100644
--- a/pyinfra/modules/files.py
+++ b/pyinfra/modules/files.py
@@ -561,11 +561,11 @@ def directory(
'''
Manage the state of directories.
- + name: name/patr of the remote file
- + present: whether the file shou... | Correct `file` -> `folder` for the `files.directory` operation. | py |
diff --git a/tests/python/pants_test/process/test_lock.py b/tests/python/pants_test/process/test_lock.py
index <HASH>..<HASH> 100644
--- a/tests/python/pants_test/process/test_lock.py
+++ b/tests/python/pants_test/process/test_lock.py
@@ -55,7 +55,7 @@ class TestOwnerPrintingInterProcessFileLock(unittest.TestCase):
... | Python 3 fixes - fix process test byte issue (#<I>) | py |
diff --git a/myql/myql.py b/myql/myql.py
index <HASH>..<HASH> 100755
--- a/myql/myql.py
+++ b/myql/myql.py
@@ -24,8 +24,7 @@ class MYQL(object):
private_url = 'http://query.yahooapis.com/v1/yql'
community_data = "env 'store://datatables.org/alltableswithkeys'; " #Access to community table
- def __init__(se... | useless args removed from MYQL object definition | py |
diff --git a/indra/statements/statements.py b/indra/statements/statements.py
index <HASH>..<HASH> 100644
--- a/indra/statements/statements.py
+++ b/indra/statements/statements.py
@@ -513,6 +513,14 @@ class Statement(object):
if not stmt_id:
stmt_id = '%s' % uuid.uuid4()
stmt.uuid = stmt_i... | If a matches hash is available in JSON, deserialize it | py |
diff --git a/tests/test_validation.py b/tests/test_validation.py
index <HASH>..<HASH> 100644
--- a/tests/test_validation.py
+++ b/tests/test_validation.py
@@ -26,6 +26,7 @@ schema = {
}
# TODO: Add more test for all types and combinations
+
def validation_boolean(schema, *records):
return validate_many(record... | added todo for testing spacing between comment and todo needed extra | py |
diff --git a/lenstronomy/MCMC/mcmc.py b/lenstronomy/MCMC/mcmc.py
index <HASH>..<HASH> 100644
--- a/lenstronomy/MCMC/mcmc.py
+++ b/lenstronomy/MCMC/mcmc.py
@@ -120,6 +120,13 @@ class MCMCSampler(object):
mean_start = np.maximum(lowerLimit, mean_start)
mean_start = np.minimum(upperLimit, mean_start)
+... | address issue #9 with bounds on sigma | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -6,7 +6,7 @@ setup( name = "feedstail"
, description = "A tail-f-like utility for feeds"
, long_description = open('README.rst').read()
, license = "GNU General Public License v3"
- ... | [doc] change url in setup.py to github's one | py |
diff --git a/src/wormhole/test/test_transit.py b/src/wormhole/test/test_transit.py
index <HASH>..<HASH> 100644
--- a/src/wormhole/test/test_transit.py
+++ b/src/wormhole/test/test_transit.py
@@ -1572,6 +1572,7 @@ class Full(ServerBase, unittest.TestCase):
s.set_transit_key(KEY)
r.set_transit_key(KEY)
... | test_transit sometimes fails with EADDRINUSE on travis | py |
diff --git a/thefuck/shells/fish.py b/thefuck/shells/fish.py
index <HASH>..<HASH> 100644
--- a/thefuck/shells/fish.py
+++ b/thefuck/shells/fish.py
@@ -15,17 +15,13 @@ class Fish(Generic):
def app_alias(self, fuck):
return ('function {0} -d "Correct your previous console command"\n'
- ' s... | #N/A Remove fucked up cmd from history regardless of status Most fucked up commands are erroneous, but that's not always the case. | py |
diff --git a/werkzeug/contrib/cache.py b/werkzeug/contrib/cache.py
index <HASH>..<HASH> 100644
--- a/werkzeug/contrib/cache.py
+++ b/werkzeug/contrib/cache.py
@@ -135,7 +135,7 @@ class BaseCache(object):
:param keys: The function accepts multiple keys as positional
arguments.
"""... | Fix ``Cache.get_many`` The ``map`` function behaviors differently between Python 2 and Python 3. In Python 3, you can't access the results returned by ``get_many`` with index. | py |
diff --git a/LiSE/LiSE/handle.py b/LiSE/LiSE/handle.py
index <HASH>..<HASH> 100644
--- a/LiSE/LiSE/handle.py
+++ b/LiSE/LiSE/handle.py
@@ -784,7 +784,6 @@ class EngineHandle(object):
def del_portal(self, char, orig, dest):
del self._real.character[char].portal[orig][dest]
del self._portal_stat_ca... | Don't try to delete node caches when you're deleting a portal | py |
diff --git a/galpy/orbit/Orbits.py b/galpy/orbit/Orbits.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit/Orbits.py
+++ b/galpy/orbit/Orbits.py
@@ -4588,12 +4588,16 @@ class Orbit(object):
kwargs.pop('quantity',None)
auto_scale= not 'xrange' in kwargs and not 'yrange' in kwargs \
and not k... | Allow labels to be passed to Orbit.plot | py |
diff --git a/myql/contrib/auth/auth.py b/myql/contrib/auth/auth.py
index <HASH>..<HASH> 100644
--- a/myql/contrib/auth/auth.py
+++ b/myql/contrib/auth/auth.py
@@ -5,7 +5,6 @@ import requests
from requests_oauthlib import OAuth1
from urlparse import parse_qs
import webbrowser
-import credentials
BASE_URL = "http:/... | #<I> : fxing failed build | py |
diff --git a/lib/server.py b/lib/server.py
index <HASH>..<HASH> 100755
--- a/lib/server.py
+++ b/lib/server.py
@@ -139,6 +139,7 @@ class Mumoro:
print "Got string"
return str;
+ @cherrypy.expose
def addhash(self,mlon,mlat,zoom,slon,slat,dlon,dlat,saddress,daddress,snode,dnode):
cher... | Forgot to expose addhash function... | py |
diff --git a/gwpy/table/io/sql.py b/gwpy/table/io/sql.py
index <HASH>..<HASH> 100644
--- a/gwpy/table/io/sql.py
+++ b/gwpy/table/io/sql.py
@@ -90,4 +90,10 @@ def fetch(engine, tablename, columns=None, selection=None, **kwargs):
# perform query
tab = pd.read_sql(qstr, engine, **kwargs)
+ # Convert unicode... | Modified sql.py to convert unicode columns to strings. This allows them to be save with astropy .to_write with first needed to convert the rows yourself | py |
diff --git a/openstack_dashboard/dashboards/project/routers/forms.py b/openstack_dashboard/dashboards/project/routers/forms.py
index <HASH>..<HASH> 100644
--- a/openstack_dashboard/dashboards/project/routers/forms.py
+++ b/openstack_dashboard/dashboards/project/routers/forms.py
@@ -32,7 +32,8 @@ LOG = logging.getLogger... | [Trivial] Add required=False to router name in Create Router Because Router name is not required. Change-Id: If<I>bcd1a8d<I>e<I>c2e6a<I>de6fe2b<I>cc<I> Closes-Bug: #<I> | py |
diff --git a/masonite/commands/InfoCommand.py b/masonite/commands/InfoCommand.py
index <HASH>..<HASH> 100644
--- a/masonite/commands/InfoCommand.py
+++ b/masonite/commands/InfoCommand.py
@@ -6,6 +6,7 @@ import sys
from cleo import Command
import psutil
from tabulate import tabulate
+from masonite_cli.application imp... | Added Craft version to command output. | py |
diff --git a/tests/constants.py b/tests/constants.py
index <HASH>..<HASH> 100644
--- a/tests/constants.py
+++ b/tests/constants.py
@@ -20,6 +20,7 @@ DOCKERFILE_OK_PATH = os.path.join(os.path.dirname(__file__), 'files', 'docker-he
DOCKERFILE_ERROR_BUILD_PATH =\
os.path.join(os.path.dirname(__file__), 'files', ... | util,clone: git can't clone with `-b $SHA1` Resolves #<I> | py |
diff --git a/electronics/gateways/__init__.py b/electronics/gateways/__init__.py
index <HASH>..<HASH> 100644
--- a/electronics/gateways/__init__.py
+++ b/electronics/gateways/__init__.py
@@ -1,3 +1,5 @@
+import platform
from .buspirate import *
-from .linuxdevice import *
+if not platform.system() is "Windows":
+ f... | importing electronics no longer crashes Windows importing everything from `linuxdevice` automatically imports `smbus` which has the line `from fcntl import ioctl` and there is no `fcntl` on Windows, so a crash occurs. Here, linuxdevice isn't loaded on Windows systems. | py |
diff --git a/custodian/cp2k/handlers.py b/custodian/cp2k/handlers.py
index <HASH>..<HASH> 100644
--- a/custodian/cp2k/handlers.py
+++ b/custodian/cp2k/handlers.py
@@ -1074,6 +1074,7 @@ class UnconvergedRelaxationErrorHandler(ErrorHandler):
if ci['motion']['geo_opt'].get(
'OPTIMIZER', K... | Extend the iteration counter. | py |
diff --git a/craftai/constants.py b/craftai/constants.py
index <HASH>..<HASH> 100644
--- a/craftai/constants.py
+++ b/craftai/constants.py
@@ -2,4 +2,4 @@ import re
AGENT_ID_PATTERN = re.compile("^([a-zA-Z0-9_-]){1,36}$")
DEFAULT_DECISION_TREE_VERSION = "1"
-REACT_CRAFT_AI_DECISION_TREE_VERSION = "0.0.12"
+REACT_CR... | update the react tree component in order to display v2 trees | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -28,7 +28,8 @@ else:
if platform.dist()[0] == 'centos' or 'redhat':
data_files.append(('/etc/init.d', ['bin/init.d/diamond'] ))
data_files.append(('/var/log/diamond', ['.keep'] ))... | Added check for upstart. Do not include if version is below centos/redhat 6 | py |
diff --git a/src/scrapy_redis/dupefilter.py b/src/scrapy_redis/dupefilter.py
index <HASH>..<HASH> 100644
--- a/src/scrapy_redis/dupefilter.py
+++ b/src/scrapy_redis/dupefilter.py
@@ -35,10 +35,13 @@ class RFPDupeFilter(BaseDupeFilter):
return cls.from_settings(crawler.settings)
def request_seen(self, re... | Allow to override request fingerprint call. | py |
diff --git a/pachyderm/histogram.py b/pachyderm/histogram.py
index <HASH>..<HASH> 100644
--- a/pachyderm/histogram.py
+++ b/pachyderm/histogram.py
@@ -543,9 +543,9 @@ class Histogram1D:
def __imul__(self: _T, other: Union[_T, float]) -> _T:
""" Handles ``a *= b``. """
- if np.isscalar(other):
+ ... | Add Histogram1D mult, divide by an array For scaling by bin width, for example | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -3,6 +3,6 @@
from setuptools import setup
setup(
- setup_requires=['pbr']
+ setup_requires=['pbr'],
pbr=True
) | add missing , after setup_requires | py |
diff --git a/pymzn/_mzn/_model.py b/pymzn/_mzn/_model.py
index <HASH>..<HASH> 100644
--- a/pymzn/_mzn/_model.py
+++ b/pymzn/_mzn/_model.py
@@ -266,6 +266,21 @@ class MiniZincModel(object):
self._solve_stmt = solve_stmt
self._modified = True
+ def satisfy(self, comment=None):
+ """ Shorthan... | model: add some shorthands for solving statements | py |
diff --git a/uproot/write/TFile.py b/uproot/write/TFile.py
index <HASH>..<HASH> 100644
--- a/uproot/write/TFile.py
+++ b/uproot/write/TFile.py
@@ -208,7 +208,7 @@ class TFileRecreate(TFileUpdate):
def _writeheader(self):
cursor = uproot.write.sink.cursor.Cursor(0)
- self._fVersion = self._fVersio... | Writing ROOT <I> files | py |
diff --git a/belpy/rdf_to_pysb.py b/belpy/rdf_to_pysb.py
index <HASH>..<HASH> 100644
--- a/belpy/rdf_to_pysb.py
+++ b/belpy/rdf_to_pysb.py
@@ -727,7 +727,8 @@ def add_default_initial_conditions(model):
try:
default_ic = model.parameters['default_ic']
except KeyError:
- default_ic = Parameter('... | Increase default initial condition to <I> This is better for stochastic/Kappa analysis. | py |
diff --git a/malcolm/modules/ADCore/parts/detectordriverpart.py b/malcolm/modules/ADCore/parts/detectordriverpart.py
index <HASH>..<HASH> 100644
--- a/malcolm/modules/ADCore/parts/detectordriverpart.py
+++ b/malcolm/modules/ADCore/parts/detectordriverpart.py
@@ -50,12 +50,13 @@ AMri = builtin.parts.AMri
# We will se... | DetectorDriverPart: add attributesFile to no_save as replaced with Attributes to Capture interface | py |
diff --git a/indra/tests/test_hierarchy_manager.py b/indra/tests/test_hierarchy_manager.py
index <HASH>..<HASH> 100644
--- a/indra/tests/test_hierarchy_manager.py
+++ b/indra/tests/test_hierarchy_manager.py
@@ -65,4 +65,12 @@ def test_partof_comp_not():
def test_partof_comp_none():
cyto_loc = get_valid_location... | Additional None tests for comps in hierarchy mgr | py |
diff --git a/docs/conf.py b/docs/conf.py
index <HASH>..<HASH> 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -442,6 +442,7 @@ def build_cli_examples(_):
rst, cmd = _build_cli_example(config, sect, exdir, logger)
if cmd:
logger.info('[cli] running example {0!r}'.format(sect))
+ ... | docs: print cli example cmd to shell when running | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -51,9 +51,6 @@ setuptools.setup(
'wrapt>=1.10.8',
'shellescape>=3.4.1',
'asteval~=0.9.12',
- # XXX: Temporarily pin idna since the latest version of the requests
- # package (2.20.1) ex... | Remove temporarily pinned idna requirement | py |
diff --git a/ReText/highlighter.py b/ReText/highlighter.py
index <HASH>..<HASH> 100644
--- a/ReText/highlighter.py
+++ b/ReText/highlighter.py
@@ -24,12 +24,14 @@ class ReTextHighlighter(QSyntaxHighlighter):
('^#.+', None, QFont.Black), # 10: Headers
(r'(?<=\[)[^\[\]]*(?=\])', Qt.blue, QFo... | Highlighter: highlight reStructuredText directives and roles | py |
diff --git a/tickets/views.py b/tickets/views.py
index <HASH>..<HASH> 100644
--- a/tickets/views.py
+++ b/tickets/views.py
@@ -1,8 +1,8 @@
-from django.views.generic import ListView, DetailView, CreateView
-from django.core.urlresolvers import reverse
from django.contrib import messages
+from django.core.urlresolvers ... | sort imports in views.py | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -42,8 +42,7 @@ on how to use MAVProxy.''',
# use the system versions of these dependencies, so it tries to download and install
# large numbers of modules like numpy etc which may be already installed
inst... | removed lxml dependency the lxml dependency is not satisfied on Mint by python-lxml, so only soln is to remove it. Sigh | py |
diff --git a/zengine/forms/json_form.py b/zengine/forms/json_form.py
index <HASH>..<HASH> 100644
--- a/zengine/forms/json_form.py
+++ b/zengine/forms/json_form.py
@@ -240,9 +240,6 @@ class JsonForm(ModelForm):
if 'kwargs' in itm and 'widget' in itm['kwargs']:
item_props['widget'] = itm['kw... | ADD, Value update at json_form reviewed. rref #<I> | py |
diff --git a/pixiedust/display/chart/renderers/bokeh/histogramDisplay.py b/pixiedust/display/chart/renderers/bokeh/histogramDisplay.py
index <HASH>..<HASH> 100644
--- a/pixiedust/display/chart/renderers/bokeh/histogramDisplay.py
+++ b/pixiedust/display/chart/renderers/bokeh/histogramDisplay.py
@@ -64,8 +64,10 @@ class ... | Get histogram bin from commons option get and compute bin size from user through a slider for histogram binning | py |
diff --git a/rdbtools/callbacks.py b/rdbtools/callbacks.py
index <HASH>..<HASH> 100644
--- a/rdbtools/callbacks.py
+++ b/rdbtools/callbacks.py
@@ -247,12 +247,11 @@ class DiffCallback(RdbCallback):
pass
def start_sorted_set(self, key, length, expiry, info):
- self._index = 0
-
+ pa... | Remove index printing from sorted set diff callback (was useless and didn't procude usable output). | py |
diff --git a/cassandra/cqlengine/query.py b/cassandra/cqlengine/query.py
index <HASH>..<HASH> 100644
--- a/cassandra/cqlengine/query.py
+++ b/cassandra/cqlengine/query.py
@@ -832,10 +832,11 @@ class AbstractQuerySet(object):
return clone
def _only_or_defer(self, action, fields):
- clone = copy.de... | Check deferred/only fields before copy | py |
diff --git a/tests/unit/transport/zeromq_test.py b/tests/unit/transport/zeromq_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/transport/zeromq_test.py
+++ b/tests/unit/transport/zeromq_test.py
@@ -80,7 +80,9 @@ class BaseZMQReqCase(TestCase):
@classmethod
def tearDownClass(cls):
- cls.process_m... | Fix test suite hang on salt testing We don't need to clean up here since the test suite will handle it for us. | py |
diff --git a/salt/states/dockerio.py b/salt/states/dockerio.py
index <HASH>..<HASH> 100644
--- a/salt/states/dockerio.py
+++ b/salt/states/dockerio.py
@@ -75,7 +75,7 @@ Available Functions
docker.running:
- container: mysuperdocker
- image: corp/mysuperdocker_img
- - port_binding... | Typo in dockerio doc (#<I>) | py |
diff --git a/bugwarrior/services/githubutils.py b/bugwarrior/services/githubutils.py
index <HASH>..<HASH> 100644
--- a/bugwarrior/services/githubutils.py
+++ b/bugwarrior/services/githubutils.py
@@ -73,7 +73,7 @@ def get_pulls(username, repo, auth):
return _getter(url, auth)
-def _getter(url, auth):
+def _gett... | githubutils: allow getting a key from the result Search results return the list in the 'items' key, not at the top-level. | py |
diff --git a/tx_people/models.py b/tx_people/models.py
index <HASH>..<HASH> 100644
--- a/tx_people/models.py
+++ b/tx_people/models.py
@@ -1,6 +1,5 @@
from django.db import models
-# TODO: Find a better location for this
from . import fields
from . import mixins
from .conf import settings | Remove a random TODO note that should have been removed a few commits ago | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.