diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/chatterbot/__init__.py b/chatterbot/__init__.py
index <HASH>..<HASH> 100644
--- a/chatterbot/__init__.py
+++ b/chatterbot/__init__.py
@@ -3,7 +3,7 @@ import sys
if 'install' not in sys.argv and 'egg_info' not in sys.argv:
from .chatterbot import ChatBot
-__version__ = '0.4.12'
+__version__ = '0.4.1... | Updated version string to <I> | py |
diff --git a/PySimpleGUIWx/PySimpleGUIWx.py b/PySimpleGUIWx/PySimpleGUIWx.py
index <HASH>..<HASH> 100644
--- a/PySimpleGUIWx/PySimpleGUIWx.py
+++ b/PySimpleGUIWx/PySimpleGUIWx.py
@@ -803,9 +803,10 @@ class Radio(Element):
def Update(self, value=None, disabled=None, background_color=None, text_color=None, font=... | If RadioButton updated to False, all buttons in the group are set to False | py |
diff --git a/koordinates/layers.py b/koordinates/layers.py
index <HASH>..<HASH> 100644
--- a/koordinates/layers.py
+++ b/koordinates/layers.py
@@ -164,6 +164,21 @@ class Layer(base.Model):
self.metadata = Metadata()._deserialize(data["metadata"], manager._metadata, self) if data.get("metadata") else None
... | Add properties to check whether the current version is published/draft | py |
diff --git a/pulsar/managers/base/base_drmaa.py b/pulsar/managers/base/base_drmaa.py
index <HASH>..<HASH> 100644
--- a/pulsar/managers/base/base_drmaa.py
+++ b/pulsar/managers/base/base_drmaa.py
@@ -54,6 +54,7 @@ class BaseDrmaaManager(ExternalBaseManager):
def _build_template_attributes(self, job_id, command_line... | Set the DRMAA workingDirectory to the job's working directory | py |
diff --git a/src/pyiso/pyiso.py b/src/pyiso/pyiso.py
index <HASH>..<HASH> 100644
--- a/src/pyiso/pyiso.py
+++ b/src/pyiso/pyiso.py
@@ -22,7 +22,6 @@ import struct
import time
import bisect
import collections
-import StringIO
import os
from dates import *
@@ -1830,6 +1829,16 @@ class PyIso(object):
retur... | Small fixes suggested by pylint. | py |
diff --git a/ella/tagging/__init__.py b/ella/tagging/__init__.py
index <HASH>..<HASH> 100644
--- a/ella/tagging/__init__.py
+++ b/ella/tagging/__init__.py
@@ -1,6 +1,5 @@
from django.utils.translation import ugettext as _
-from ella.tagging.managers import ModelTaggedItemManager, TagDescriptor
VERSION = (0, 3, 'p... | Avoid circular imports in tagging (cherry picked from commit <I>ca<I>fac5cf<I>c8e<I>d<I>c0dd2c<I>e<I>) | py |
diff --git a/test/frontend/test_basics.py b/test/frontend/test_basics.py
index <HASH>..<HASH> 100644
--- a/test/frontend/test_basics.py
+++ b/test/frontend/test_basics.py
@@ -206,12 +206,12 @@ class FrontendTest(TestCase):
def test_metrics(self):
response = self.hit('/mygroup/myproject/build/1.0/testrun/%... | test: test_basics: fix missing test Honestly it's weird that this worked before. It's fixed now. | py |
diff --git a/tests/test_swapi.py b/tests/test_swapi.py
index <HASH>..<HASH> 100755
--- a/tests/test_swapi.py
+++ b/tests/test_swapi.py
@@ -74,7 +74,7 @@ class SwapiTest(unittest.TestCase):
luke = swapi.get_person(1)
films = luke.get_films()
self.assertEquals(type(films.items[0]), Film)
- ... | Update test_swapi.py increased numbers of films luke is in by 1 | py |
diff --git a/molo/core/utils.py b/molo/core/utils.py
index <HASH>..<HASH> 100644
--- a/molo/core/utils.py
+++ b/molo/core/utils.py
@@ -31,7 +31,7 @@ def generate_slug(text, tail_number=0):
text = 'no-title'
# use django slugify filter to slugify
- slug = cautious_slugify(text)
+ slug = cautious_sl... | ensure slugs are not longer than <I> | py |
diff --git a/examples/asyncio.py b/examples/asyncio.py
index <HASH>..<HASH> 100644
--- a/examples/asyncio.py
+++ b/examples/asyncio.py
@@ -1,3 +1,4 @@
+# flake8: noqa
# Copyright 2019 Confluent Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License"); | example is python 3 only, so adding # flake8: noqa | py |
diff --git a/disqus/management/commands/disqus-threadedcomments-export.py b/disqus/management/commands/disqus-threadedcomments-export.py
index <HASH>..<HASH> 100644
--- a/disqus/management/commands/disqus-threadedcomments-export.py
+++ b/disqus/management/commands/disqus-threadedcomments-export.py
@@ -36,7 +36,7 @@ cla... | Dry run is a bool, not an int. | py |
diff --git a/http.py b/http.py
index <HASH>..<HASH> 100644
--- a/http.py
+++ b/http.py
@@ -140,7 +140,7 @@ class HttpUA(object):
def process_response(self):
"""
- iParses an HTTP response after an HTTP request is sent
+ Parses an HTTP response after an HTTP request is sent
"""... | Vim got me again :( | py |
diff --git a/GPy/models/mrd.py b/GPy/models/mrd.py
index <HASH>..<HASH> 100644
--- a/GPy/models/mrd.py
+++ b/GPy/models/mrd.py
@@ -392,9 +392,9 @@ class MRD(BayesianGPLVMMiniBatch):
privateDims[i].sort()
if printOut:
- print '# Shared dimensions: ' + str(sharedDims)
+ print... | [mrd] print statement py3, OMG | py |
diff --git a/metal/end_model/end_model.py b/metal/end_model/end_model.py
index <HASH>..<HASH> 100644
--- a/metal/end_model/end_model.py
+++ b/metal/end_model/end_model.py
@@ -238,7 +238,7 @@ class EndModel(Classifier):
# if grad_clip:
# torch.nn.utils.clip_grad_norm(self.net.parame... | Fix one letter because it'll drive me nuts otherwise | py |
diff --git a/mythril/ether/asm.py b/mythril/ether/asm.py
index <HASH>..<HASH> 100644
--- a/mythril/ether/asm.py
+++ b/mythril/ether/asm.py
@@ -86,12 +86,21 @@ def find_opcode_sequence(pattern, instruction_list):
return match_indexes
+
+
+
def disassemble(bytecode):
instruction_list = []
addr = 0
... | Detect and ignore swarm hash at end of bytecode | py |
diff --git a/inginious/frontend/user_manager.py b/inginious/frontend/user_manager.py
index <HASH>..<HASH> 100644
--- a/inginious/frontend/user_manager.py
+++ b/inginious/frontend/user_manager.py
@@ -386,7 +386,9 @@ class UserManager:
self._logger.exception("Tried to bind an already bound account !")
... | social bindings: search for user with email even if logged in | py |
diff --git a/mordred/mordred.py b/mordred/mordred.py
index <HASH>..<HASH> 100755
--- a/mordred/mordred.py
+++ b/mordred/mordred.py
@@ -379,7 +379,7 @@ class Mordred:
logger.error(var)
if self.conf['panels_on']:
- tasks_cls = [TaskPanels]
+ tasks_cls = [TaskPanels, TaskPanel... | [menu] Readd TaskPanelsMenu so dashboard menu is created. For some strange reason it was deleted in ea<I>e<I>c<I>f2dd5d6f3abfd<I>ef4f<I> | py |
diff --git a/tests/test_circuit.py b/tests/test_circuit.py
index <HASH>..<HASH> 100644
--- a/tests/test_circuit.py
+++ b/tests/test_circuit.py
@@ -75,7 +75,14 @@ def test_toffoli_gate(bin):
expected_meas = "001" if bin[0] and bin[1] else "000"
assert c.run(shots=1) == Counter([expected_meas])
+def test_u3_g... | Add test for U1, U2, U3 gates | py |
diff --git a/eventsourcing/application.py b/eventsourcing/application.py
index <HASH>..<HASH> 100644
--- a/eventsourcing/application.py
+++ b/eventsourcing/application.py
@@ -2,10 +2,6 @@ import os
from abc import ABC, abstractmethod
from dataclasses import dataclass
from itertools import chain
-try:
- from types... | Changed type annotation to use Optional rather than NoneType. | py |
diff --git a/anthem/__init__.py b/anthem/__init__.py
index <HASH>..<HASH> 100644
--- a/anthem/__init__.py
+++ b/anthem/__init__.py
@@ -2,7 +2,7 @@
# Copyright 2016 Camptocamp SA
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0.en.html)
-__version__ = "0.6.0"
+__version__ = "0.7.0.dev0"
# publis... | Change version to <I>dev0 | py |
diff --git a/tests/test_acceptance.py b/tests/test_acceptance.py
index <HASH>..<HASH> 100644
--- a/tests/test_acceptance.py
+++ b/tests/test_acceptance.py
@@ -1611,6 +1611,15 @@ class TestAcceptance(TestCase):
self.assertRender(template, context, result)
+ template = u"{{^if goodbye}}Hello{{else}}GO... | Add tests for if not/else | py |
diff --git a/bbc_tracklist.py b/bbc_tracklist.py
index <HASH>..<HASH> 100755
--- a/bbc_tracklist.py
+++ b/bbc_tracklist.py
@@ -28,7 +28,7 @@ import codecs
import os
import sys
-import beets
+import mediafile
import lxml.html
import requests
@@ -161,7 +161,7 @@ def save_tag_to_audio_file(audio_file, tracklisting... | Replace beets with mediafile We only need mediafile, not the whole of beets. | py |
diff --git a/charmhelpers/contrib/openstack/utils.py b/charmhelpers/contrib/openstack/utils.py
index <HASH>..<HASH> 100644
--- a/charmhelpers/contrib/openstack/utils.py
+++ b/charmhelpers/contrib/openstack/utils.py
@@ -510,8 +510,10 @@ def git_clone_and_install(projects_yaml, core_project):
repository: 'g... | Add http(s)_proxy keys to openstack-origin-git yaml | py |
diff --git a/instana/version.py b/instana/version.py
index <HASH>..<HASH> 100644
--- a/instana/version.py
+++ b/instana/version.py
@@ -1,3 +1,3 @@
# Module version file. Used by setup.py and snapshot reporting.
-VERSION = '1.25.7'
+VERSION = '1.26.0' | Bump package version to <I> | py |
diff --git a/riak/bucket.py b/riak/bucket.py
index <HASH>..<HASH> 100644
--- a/riak/bucket.py
+++ b/riak/bucket.py
@@ -437,6 +437,16 @@ class RiakBucket(object):
"""
return self._client.get_index(self.name, index, startkey, endkey)
+ def delete(self, key, rw=None, r=None, w=None, dw=None, pr=None... | Added bucket.delete, fixes #<I> | py |
diff --git a/src/uptime.py b/src/uptime.py
index <HASH>..<HASH> 100755
--- a/src/uptime.py
+++ b/src/uptime.py
@@ -1,5 +1,16 @@
#!/usr/bin/env python
+"""
+Provides a cross-platform way to figure out the system uptime.
+
+Should work on damned near any operating system you can realistically expect
+to be asked to wr... | PEP <I> up in this bitch. | py |
diff --git a/ginga/misc/plugins/Cuts.py b/ginga/misc/plugins/Cuts.py
index <HASH>..<HASH> 100644
--- a/ginga/misc/plugins/Cuts.py
+++ b/ginga/misc/plugins/Cuts.py
@@ -505,8 +505,6 @@ Keyboard shortcuts: press 'h' for a full horizontal cut and 'j' for a full verti
self.canvas.add(cut, tag=tag)
select_f... | Corrected a small error in the code | py |
diff --git a/company/package/config.py b/company/package/config.py
index <HASH>..<HASH> 100644
--- a/company/package/config.py
+++ b/company/package/config.py
@@ -37,14 +37,20 @@ def load_configuration(config_file=DEFAULT_CONFIG_FILE):
logging.getLogger(__name__).error(msg)
raise ValueError(msg)
- ... | settings are now a dictionary. get now returns settings properly when they haven't been preloaded beforehand. remove unnecessary global statement. | py |
diff --git a/num2words/lang_EU.py b/num2words/lang_EU.py
index <HASH>..<HASH> 100644
--- a/num2words/lang_EU.py
+++ b/num2words/lang_EU.py
@@ -42,6 +42,7 @@ class Num2Word_EU(Num2Word_Base):
'PLN': (('zloty', 'zlotys', 'zlotu'), ('grosz', 'groszy')),
'MXN': (('peso', 'pesos'), GENERIC_CENTS),
... | Add support for the Indian rupee. (#<I>) | py |
diff --git a/telebot/handler_backends.py b/telebot/handler_backends.py
index <HASH>..<HASH> 100644
--- a/telebot/handler_backends.py
+++ b/telebot/handler_backends.py
@@ -114,11 +114,11 @@ class FileHandlerBackend(HandlerBackend):
class RedisHandlerBackend(HandlerBackend):
- def __init__(self, handlers=None, ho... | Modify RedisHandlerBackend, add argument "password=None" to __init__() With argument "password=None" in method __init__(), and argument "password" in "self.redis = Redis(host, port, db, password)", will be able to use Redis with password protection, if password is set . | py |
diff --git a/py/testdir_multi_jvm/test_GLM_covtype_hosts.py b/py/testdir_multi_jvm/test_GLM_covtype_hosts.py
index <HASH>..<HASH> 100644
--- a/py/testdir_multi_jvm/test_GLM_covtype_hosts.py
+++ b/py/testdir_multi_jvm/test_GLM_covtype_hosts.py
@@ -42,7 +42,7 @@ class Basic(unittest.TestCase):
y = "54"
... | typo. was 'args' needed to be 'kwargs' | py |
diff --git a/pyani/aniblastall.py b/pyani/aniblastall.py
index <HASH>..<HASH> 100644
--- a/pyani/aniblastall.py
+++ b/pyani/aniblastall.py
@@ -104,13 +104,14 @@ def get_version(blast_exe: Path = pyani_config.BLASTALL_DEFAULT) -> str:
except (FileNotFoundError, PermissionError):
raise PyaniblastallExceptio... | Fix indentation and order of exception handling in `get_version()` | py |
diff --git a/salt/modules/rabbitmq-server.py b/salt/modules/rabbitmq-server.py
index <HASH>..<HASH> 100644
--- a/salt/modules/rabbitmq-server.py
+++ b/salt/modules/rabbitmq-server.py
@@ -8,7 +8,7 @@ def list_users():
List a a users
'''
d = {}
- res = __salt__['cmd.run']('list_users')
+ res = __salt... | Woops forgot to prepend rabbitmqctl to list_users() | py |
diff --git a/bloop/types.py b/bloop/types.py
index <HASH>..<HASH> 100644
--- a/bloop/types.py
+++ b/bloop/types.py
@@ -84,8 +84,8 @@ class NumberType(ColumnType):
def can_dump(self, value):
''' explicitly disallow bool and subclasses '''
- return (isinstance(value, self.backing_type)
- ... | Fix types.py flake8 errors flake8 uses pep8, which reports W<I> now | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -54,7 +54,7 @@ setup(
author='Valentin Lab',
author_email='valentin.lab@kalysto.org',
url='http://github.com/vaab/colour',
- license='GPL License',
+ license='BSD License',
py_modules=['colour'],
... | fix: inconsistency in licence information (removed GPL mention). (fixes #8) | py |
diff --git a/tests/test_environment.py b/tests/test_environment.py
index <HASH>..<HASH> 100644
--- a/tests/test_environment.py
+++ b/tests/test_environment.py
@@ -69,7 +69,7 @@ class TestMeCabEnv(unittest.TestCase):
'''
-Copyright (c) 2014, Brooke M. Fujita.
+Copyright (c) 2014-2015, Brooke M. Fujita.
All rights ... | test_environment.py edited online with Bitbucket; updating copyright to include <I>. | py |
diff --git a/tornado/web.py b/tornado/web.py
index <HASH>..<HASH> 100644
--- a/tornado/web.py
+++ b/tornado/web.py
@@ -2713,7 +2713,8 @@ class GZipContentEncoding(OutputTransform):
# beginning with "text/").
CONTENT_TYPES = set(["application/javascript", "application/x-javascript",
"... | Added SVG to compressible mime types This adds the mime type `image/svg+xml` to the whitelist of compressible mime types for the tornado.web.GZipContentEncoding class. SVG images are served with the mime type `image/svg+xml`, but are not compressed by the GZipContentEncoding transform. My first thought was to add a... | py |
diff --git a/txdbus/interface.py b/txdbus/interface.py
index <HASH>..<HASH> 100644
--- a/txdbus/interface.py
+++ b/txdbus/interface.py
@@ -38,10 +38,10 @@ class Method (object):
self.sigOut = returns
if arguments.count('h') > 1:
# More than one UNIX_FD argument requires Twisted >= 17.1.0.... | Simpler Twisted version check for multi FD arg support. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -940,6 +940,26 @@ class RelatedFieldTests(BasePeeweeTestCase):
# this should work the same
some_tags = EntryTag.select().where(entry__in=some_entries)
self.assertEqual(list(some_tags), [a_tag, b_tag]... | Checking in test for complex subqueries | py |
diff --git a/katcp/test/test_inspecting_client.py b/katcp/test/test_inspecting_client.py
index <HASH>..<HASH> 100644
--- a/katcp/test/test_inspecting_client.py
+++ b/katcp/test/test_inspecting_client.py
@@ -224,8 +224,7 @@ class TestInspectingClientInspect(tornado.testing.AsyncTestCase):
@tornado.testing.gen_tes... | put two lines on one as per PR<I> comment | py |
diff --git a/tinytag/tinytag.py b/tinytag/tinytag.py
index <HASH>..<HASH> 100644
--- a/tinytag/tinytag.py
+++ b/tinytag/tinytag.py
@@ -24,6 +24,7 @@
#
import codecs
+import re
import struct
import os
import io
@@ -367,7 +368,7 @@ class ID3(TinyTag):
extended = (header[3] & 0x40) > 0
exp... | Fix MemoryError when parsing corrupted frame data -Frame ID is validated before trying to read its content | py |
diff --git a/cumulusci/core/runtime.py b/cumulusci/core/runtime.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/runtime.py
+++ b/cumulusci/core/runtime.py
@@ -16,10 +16,8 @@ class BaseRuntime(object):
self.project_config = None
self.keychain = None
- if "global_config_obj" in kwargs:
- ... | this wasn't a thing. | py |
diff --git a/configman/tests/test_namespace.py b/configman/tests/test_namespace.py
index <HASH>..<HASH> 100644
--- a/configman/tests/test_namespace.py
+++ b/configman/tests/test_namespace.py
@@ -161,4 +161,4 @@ class TestCase(unittest.TestCase):
n4 = config_manager.Namespace()
n4.add_option('name', ... | bustage fix of missing fix in unit test | py |
diff --git a/umap/parametric_umap.py b/umap/parametric_umap.py
index <HASH>..<HASH> 100644
--- a/umap/parametric_umap.py
+++ b/umap/parametric_umap.py
@@ -510,15 +510,15 @@ class ParametricUMAP(UMAP):
print("Keras full model saved to {}".format(parametric_model_output))
# # save model.pkl (i... | Finally fixed; extended test to check model loads correctly. | py |
diff --git a/muffin_peewee/plugin.py b/muffin_peewee/plugin.py
index <HASH>..<HASH> 100644
--- a/muffin_peewee/plugin.py
+++ b/muffin_peewee/plugin.py
@@ -22,6 +22,7 @@ class Plugin(BasePlugin):
'max_connections': 2,
'migrations_enabled': True,
'migrations_path': 'migrations',
+ 'encod... | Fix encoding for pg | py |
diff --git a/src/urh/plugins/InsertSine/InsertSinePlugin.py b/src/urh/plugins/InsertSine/InsertSinePlugin.py
index <HASH>..<HASH> 100644
--- a/src/urh/plugins/InsertSine/InsertSinePlugin.py
+++ b/src/urh/plugins/InsertSine/InsertSinePlugin.py
@@ -228,3 +228,4 @@ class InsertSinePlugin(SignalEditorPlugin):
@pyqtSlo... | set dialog ui to None on finished to prevent runtime errors on reopen | py |
diff --git a/spyder/preferences/languageserver.py b/spyder/preferences/languageserver.py
index <HASH>..<HASH> 100644
--- a/spyder/preferences/languageserver.py
+++ b/spyder/preferences/languageserver.py
@@ -45,7 +45,7 @@ def iter_servers():
yield server
-class LSPServer:
+class LSPServer(object):
... | Preferences: Make LSPServer auxiliary class inherit from object | py |
diff --git a/util.py b/util.py
index <HASH>..<HASH> 100644
--- a/util.py
+++ b/util.py
@@ -545,10 +545,8 @@ def get_platform ():
i.e. "???" or "???"."""
if os.name == 'posix':
- uname = os.uname()
- OS = uname[0]
- arch = uname[4]
- return "%s-%s" % (string.lower (OS), string.... | Tweaked 'get_platform()' to include the first character of the OS release: eg. sunos5, linux2, irix5. | py |
diff --git a/formcreator/__init__.py b/formcreator/__init__.py
index <HASH>..<HASH> 100644
--- a/formcreator/__init__.py
+++ b/formcreator/__init__.py
@@ -174,8 +174,7 @@ class Form(object):
field_position = len(self.form._fields) + 1
opt.name = 'arg-{}'.format(field_position)
if opt.name in ... | Better handling of exception on field name duplication | py |
diff --git a/ipyrad/assemble/cluster_within.py b/ipyrad/assemble/cluster_within.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/cluster_within.py
+++ b/ipyrad/assemble/cluster_within.py
@@ -296,8 +296,8 @@ def build_clusters(data, sample):
for i in xrange(len(values)):
inserts = int(values[i]... | Fixed access before assignment for fwdseq | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -29,9 +29,6 @@ install_requires=[
'numpy >= 1.6.1',
'scipy >= 0.9.0']
-# For Python 2.6 we additionally need ordereddict
-if (sys.version_info < (2, 7, 0)):
- install_requires.append('ordereddict >= 1.1'... | Changed yml for installing ordereddict for python <I> | py |
diff --git a/fusesoc/coremanager.py b/fusesoc/coremanager.py
index <HASH>..<HASH> 100644
--- a/fusesoc/coremanager.py
+++ b/fusesoc/coremanager.py
@@ -187,7 +187,8 @@ class CoreManager:
self.db = CoreDB()
self._lm = LibraryManager(config.library_root)
- def _load_cores(self, library):
+ def fi... | Add CoreManager.find_cores() function This is a split of the CoreManager.load_cores() functionality into two, to make the discovery functionality usable outside this specific use case. | py |
diff --git a/pymod2pkg/__init__.py b/pymod2pkg/__init__.py
index <HASH>..<HASH> 100644
--- a/pymod2pkg/__init__.py
+++ b/pymod2pkg/__init__.py
@@ -138,7 +138,7 @@ SUSE_PKG_MAP = [
MultiRule(
mods=['python-%sclient' % c for c in (
'k8s', 'barbican',
- 'ceilometer', 'cinder', 'cloudk... | Add additional mapping for cueclient Change-Id: I6e<I>e7dfc<I>f<I>fcd<I>a9f<I>a5d<I>a<I> | py |
diff --git a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/api/serializers.py b/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/api/serializers.py
index <HASH>..<HASH> 100644
--- a/{{cookiecutter.project_slug}}/{{cookiecutter.project_slug}}/users/api/serializers.py
+++ b/{{cookiecu... | Replace User by get_user_model | py |
diff --git a/src/saml2/validate.py b/src/saml2/validate.py
index <HASH>..<HASH> 100644
--- a/src/saml2/validate.py
+++ b/src/saml2/validate.py
@@ -91,7 +91,7 @@ def validate_on_or_after(not_on_or_after, slack):
nooa = calendar.timegm(time_util.str_to_time(not_on_or_after))
if now > nooa + slack:
... | Fix typo - inproper string formatting API used Due to this bug, messages were being rendered literally with '%d' characters, missing the actual intended information. | py |
diff --git a/memcache_status/templatetags/memcache_status_tags.py b/memcache_status/templatetags/memcache_status_tags.py
index <HASH>..<HASH> 100644
--- a/memcache_status/templatetags/memcache_status_tags.py
+++ b/memcache_status/templatetags/memcache_status_tags.py
@@ -36,14 +36,14 @@ def get_cache_stats(context):
... | More clear why memcache-status might not be visible. | py |
diff --git a/geomdl/__init__.py b/geomdl/__init__.py
index <HASH>..<HASH> 100644
--- a/geomdl/__init__.py
+++ b/geomdl/__init__.py
@@ -5,7 +5,7 @@
"""
__author__ = "Onur Rauf Bingol"
-__version__ = "4.0b6"
+__version__ = "4.0b7"
__license__ = "MIT" | Version bump to <I>b7 | py |
diff --git a/astrobase/lcproc.py b/astrobase/lcproc.py
index <HASH>..<HASH> 100644
--- a/astrobase/lcproc.py
+++ b/astrobase/lcproc.py
@@ -1337,8 +1337,8 @@ def variability_threshold(featuresdir,
# IQR
if (magcol in thisfeatures and
thisfeatures[magcol] and
- th... | lcproc: stetson_threshold -> variability_threshold, now per mag-bin | py |
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index <HASH>..<HASH> 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -915,6 +915,21 @@ class Gitlab(object):
return False
+ def getmilestoneissues(self, project_id, milestone_id, page=1, per_page=20):
+ """Get the issues associa... | add getmilestoneissues() method This gets the issues associated with a milestone. | py |
diff --git a/script/lib/util.py b/script/lib/util.py
index <HASH>..<HASH> 100644
--- a/script/lib/util.py
+++ b/script/lib/util.py
@@ -161,11 +161,11 @@ def safe_mkdir(path):
raise
-def execute(argv, env=os.environ):
+def execute(argv, env=os.environ, cwd=None):
if is_verbose_mode():
print ' '.join(a... | make verbose execute and non verbose execute do the same things | py |
diff --git a/libre/apps/origins/models.py b/libre/apps/origins/models.py
index <HASH>..<HASH> 100644
--- a/libre/apps/origins/models.py
+++ b/libre/apps/origins/models.py
@@ -52,8 +52,8 @@ class Origin(models.Model):
"""
hash_function = hashlib.sha256()
- self.temporary_file = tempfile.Tempor... | Use NameTemporaryFile class so that the file name can be accessed | py |
diff --git a/flask_webpack/__init__.py b/flask_webpack/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_webpack/__init__.py
+++ b/flask_webpack/__init__.py
@@ -80,7 +80,8 @@ class Webpack(object):
for arg in args:
asset_path = self.asset_url_for('{0}.js'.format(arg))
- tags.append(... | Fix None script/stylesheet tags from being emit | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -235,7 +235,8 @@ class JavaLib(object):
self.java_files = []
self.dependencies = []
self.properties = []
- if hadoop_vinfo.main >= (2, 0, 0) and hadoop_vinfo.is_yarn():
+ if hadoop_vinf... | Also build with v2 API when using Hadoop2 without Yarn | py |
diff --git a/src/sos/hosts.py b/src/sos/hosts.py
index <HASH>..<HASH> 100755
--- a/src/sos/hosts.py
+++ b/src/sos/hosts.py
@@ -1229,6 +1229,11 @@ class Host:
if hasattr(self._host_agent, '_task_engine'):
self._task_engine = self._host_agent._task_engine
+ # it is possible that Host() is i... | Start engine if it was not started | py |
diff --git a/dash/dashblocks/views.py b/dash/dashblocks/views.py
index <HASH>..<HASH> 100644
--- a/dash/dashblocks/views.py
+++ b/dash/dashblocks/views.py
@@ -89,14 +89,12 @@ class DashBlockCRUDL(SmartCRUDL):
search_fields = ('title__icontains', 'content__icontains', 'summary__icontains')
def derive... | Re-implement derive_fields in dashblock list | py |
diff --git a/scripts/alimerge.py b/scripts/alimerge.py
index <HASH>..<HASH> 100755
--- a/scripts/alimerge.py
+++ b/scripts/alimerge.py
@@ -34,9 +34,10 @@ for ali in olddat:
Print(big[0], 'seems to have merged with', big[1])
merged.append(big)
-try:
- email('Aliquot merge!', '\n'.join('{} see... | alimerge only email when merge | py |
diff --git a/cheroot/server.py b/cheroot/server.py
index <HASH>..<HASH> 100644
--- a/cheroot/server.py
+++ b/cheroot/server.py
@@ -911,7 +911,14 @@ class HTTPRequest:
return False
mrbs = self.server.max_request_body_size
- if mrbs and int(self.inheaders.get(b'Content-Length', 0)) > mrbs:
... | Fix #<I> Non-int content-length header Use try/except to catch ValueError when converting content-length to int. Responds to client with <I> error rather than <I> error. | py |
diff --git a/unittests/copy_constructor_tester.py b/unittests/copy_constructor_tester.py
index <HASH>..<HASH> 100644
--- a/unittests/copy_constructor_tester.py
+++ b/unittests/copy_constructor_tester.py
@@ -19,7 +19,7 @@ class tester_t( parser_test_case.parser_test_case_t ):
def setUp(self):
i... | fixing small bug. for the following class struct map_iterator_t{ map_iterator_t( int i ){} map_iterator_t( const map_iterator_t& ){} private: map_iterator_t(){}; }; py++ generated wrong code | py |
diff --git a/sos/plugins/anaconda.py b/sos/plugins/anaconda.py
index <HASH>..<HASH> 100644
--- a/sos/plugins/anaconda.py
+++ b/sos/plugins/anaconda.py
@@ -39,7 +39,7 @@ class Anaconda(Plugin, RedHatPlugin):
paths.append('/var/log/anaconda')
else:
paths = paths + [
- "/v... | [anaconda] Fix missing comma Closes #<I>. | py |
diff --git a/colorclass/windows.py b/colorclass/windows.py
index <HASH>..<HASH> 100644
--- a/colorclass/windows.py
+++ b/colorclass/windows.py
@@ -321,15 +321,9 @@ class Windows(object):
return changed
@staticmethod
- def is_enabled(both=False):
- """Return True if either stderr or stdout has ... | Revert is_enabled(). Reverting to current release code. No longer need "both" keyword arg. | py |
diff --git a/fireplace/entity.py b/fireplace/entity.py
index <HASH>..<HASH> 100644
--- a/fireplace/entity.py
+++ b/fireplace/entity.py
@@ -33,7 +33,11 @@ class Entity(object):
def getIntProperty(self, tag):
ret = self.tags.get(tag, 0)
for slot in self.slots:
- ret += slot.getIntProperty(tag)
+ _ret = slot.g... | Allow for callables in getIntProperty() Some tags can now implicitly be functions, as long as they are called through getIntProperty(). The function will take the current value as input, and will output the result of a calculation. This matters for Gahz'rilla and Blessed Champion where the attack up to the point of th... | py |
diff --git a/simpleimages/test/test_transforms.py b/simpleimages/test/test_transforms.py
index <HASH>..<HASH> 100644
--- a/simpleimages/test/test_transforms.py
+++ b/simpleimages/test/test_transforms.py
@@ -24,8 +24,8 @@ class ConversionTest(TestCase):
self.assertIsInstance(django_file, File)
def test_h... | renane pil image in test | py |
diff --git a/stacker_blueprints/dynamodb.py b/stacker_blueprints/dynamodb.py
index <HASH>..<HASH> 100644
--- a/stacker_blueprints/dynamodb.py
+++ b/stacker_blueprints/dynamodb.py
@@ -2,7 +2,7 @@ from stacker.blueprints.base import Blueprint
from stacker.blueprints.variables.types import TroposphereType
from troposp... | Use dynamodb since dynamodb2 has been deprecated | py |
diff --git a/gns3server/handlers/api/controller/node_handler.py b/gns3server/handlers/api/controller/node_handler.py
index <HASH>..<HASH> 100644
--- a/gns3server/handlers/api/controller/node_handler.py
+++ b/gns3server/handlers/api/controller/node_handler.py
@@ -20,6 +20,7 @@ import aiohttp
from gns3server.web.route... | Fix an issue with editing network on windows Fix #<I> | py |
diff --git a/bcbio/variation/samtools.py b/bcbio/variation/samtools.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/samtools.py
+++ b/bcbio/variation/samtools.py
@@ -88,7 +88,7 @@ def _call_variants_samtools(align_bams, ref_file, items, target_regions, tx_out_
compress_cmd = "| bgzip -c" if tx_out_file.endswi... | Use vt normalization instead of bcftools normalization to attempt to avoid segmentation faults #<I> | py |
diff --git a/hotdoc/parsers/gtk_doc.py b/hotdoc/parsers/gtk_doc.py
index <HASH>..<HASH> 100644
--- a/hotdoc/parsers/gtk_doc.py
+++ b/hotdoc/parsers/gtk_doc.py
@@ -356,9 +356,12 @@ class GtkDocParser:
actual_parameters = OrderedDict({})
for param in parameters:
if is_section:
- ... | gtkparser: Make paths in sources absolute | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -92,7 +92,9 @@ setup(
# https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst#622-2020-01-02
'Pillow<7.0.0',
# https://pypi.org/project/more-itertools/
- 'more-itertools<6.0.0'
+ ... | Pin CSSSelect to < <I> (#<I>) * Pin CSSSelect to < <I> * Fixed name | py |
diff --git a/MAVProxy/tools/mavflightview.py b/MAVProxy/tools/mavflightview.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/tools/mavflightview.py
+++ b/MAVProxy/tools/mavflightview.py
@@ -127,7 +127,8 @@ def colourmap_for_mav_type(mav_type):
map = colour_map_copter
if mav_type == mavutil.mavlink.MAV_TYPE_F... | mavflightview.py: use Rover colourmap for MAV_TYPE_SURFACE_BOAT resolves No colormap for mav_type=<I> | py |
diff --git a/remoto/connection.py b/remoto/connection.py
index <HASH>..<HASH> 100644
--- a/remoto/connection.py
+++ b/remoto/connection.py
@@ -121,6 +121,9 @@ def needs_ssh(hostname, _socket=None):
of its FQDN.
"""
_socket = _socket or socket
+ fqdn = _socket.getfqdn()
+ if hostname == fqdn:
+ ... | detect fqdn hosts against fqdn hosts Closes #5 | py |
diff --git a/bindings/py/setup.py b/bindings/py/setup.py
index <HASH>..<HASH> 100644
--- a/bindings/py/setup.py
+++ b/bindings/py/setup.py
@@ -30,6 +30,7 @@ import tempfile
from setuptools import Command, find_packages, setup
from setuptools.command.test import test as BaseTestCommand
+from distutils.core import Ex... | Creating a fake Extension so distuils build platform binary. | py |
diff --git a/invocations/testing.py b/invocations/testing.py
index <HASH>..<HASH> 100644
--- a/invocations/testing.py
+++ b/invocations/testing.py
@@ -29,10 +29,14 @@ def test(c, module=None, runner=None, opts=None, pty=True):
def coverage(c, package=None):
"""
Run tests w/ coverage enabled, generating HTML,... | Honor config for easier coverage task reuse | py |
diff --git a/ford/pagetree.py b/ford/pagetree.py
index <HASH>..<HASH> 100644
--- a/ford/pagetree.py
+++ b/ford/pagetree.py
@@ -115,8 +115,13 @@ def get_page_tree(topdir,proj_copy_subdir,md,parent=None):
if name[0] != '.' and name[-1] != '~':
if os.path.isdir(os.path.join(topdir,name)):
... | Do not attempt to traverse subdirectories provided in copy_subdir. | py |
diff --git a/gwpy/io/cis.py b/gwpy/io/cis.py
index <HASH>..<HASH> 100644
--- a/gwpy/io/cis.py
+++ b/gwpy/io/cis.py
@@ -76,9 +76,9 @@ def _get(url, debug=False):
try:
response = auth.request(url, debug=debug)
except HTTPError:
- raise ValueError("Channel named '%s' not found in Channel "
+ ... | Channel.query: store url from CIS query | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -70,6 +70,7 @@ def build_long_description():
install_requires = [
'python-dateutil',
+ 'sarge',
] | BLD: setup.py: add sarge to install_requires | py |
diff --git a/aioelasticsearch/transport.py b/aioelasticsearch/transport.py
index <HASH>..<HASH> 100644
--- a/aioelasticsearch/transport.py
+++ b/aioelasticsearch/transport.py
@@ -278,10 +278,11 @@ class AIOHttpTransport(Transport):
raise
else:
+ self.connection_pool.ma... | mark any connection sucessful if server responded | py |
diff --git a/mbuild/packing.py b/mbuild/packing.py
index <HASH>..<HASH> 100755
--- a/mbuild/packing.py
+++ b/mbuild/packing.py
@@ -291,9 +291,9 @@ def fill_region(compound, n_compounds, region, overlap=0.2,
for comp, m_compounds in zip(compound, n_compounds):
for _ in range(m_compounds):
new_... | forgot to pop off coords correctly | py |
diff --git a/django_q/tests/settings.py b/django_q/tests/settings.py
index <HASH>..<HASH> 100644
--- a/django_q/tests/settings.py
+++ b/django_q/tests/settings.py
@@ -103,4 +103,4 @@ STATIC_URL = '/static/'
# Django Q specific
Q_CLUSTER = {'name': 'django_q_test',
- 'cpu_affinity': 1}
+ 'cpu... | Travis doesn't like cpu affinity. I'm guessing | py |
diff --git a/py/slimmer/slimmer.py b/py/slimmer/slimmer.py
index <HASH>..<HASH> 100644
--- a/py/slimmer/slimmer.py
+++ b/py/slimmer/slimmer.py
@@ -40,7 +40,7 @@ class SlimmerMiddleware(object):
location.path,
location.query,
location.fragment )
- ... | Thrashing around, but nearly there | py |
diff --git a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
+++ b/spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py
@@ -1539,9 +1539,11 @@ def te... | Testing: Skip new test in macOS because it hangs there | py |
diff --git a/tlkmerge.py b/tlkmerge.py
index <HASH>..<HASH> 100755
--- a/tlkmerge.py
+++ b/tlkmerge.py
@@ -2,7 +2,7 @@
# encoding: utf-8
# vim: shiftwidth=4 expandtab
-from tappio import Lexer, Parser, Writer
+from tappio import Document, read_file, write_file
import sys
def combine_accounts(earliers, laters):
... | tlkmerge: fix missing return and imports | py |
diff --git a/circlator/minimus2.py b/circlator/minimus2.py
index <HASH>..<HASH> 100644
--- a/circlator/minimus2.py
+++ b/circlator/minimus2.py
@@ -144,8 +144,8 @@ class Merger:
print('Error running merge. Going to use original contigs. Minimus2 errors follow...\n', file=sys.stderr)
print(error... | Fix bug dying when minimus2 first merge fails | py |
diff --git a/src/aioice/ice.py b/src/aioice/ice.py
index <HASH>..<HASH> 100644
--- a/src/aioice/ice.py
+++ b/src/aioice/ice.py
@@ -6,6 +6,7 @@ import logging
import random
import secrets
import socket
+import threading
from itertools import count
from typing import Dict, List, Optional, Set, Text, Tuple, Union, ca... | [mdns] initialise lock later to avoid mismatched event-loops See: <URL> | py |
diff --git a/pythran/backend.py b/pythran/backend.py
index <HASH>..<HASH> 100644
--- a/pythran/backend.py
+++ b/pythran/backend.py
@@ -567,7 +567,8 @@ class CxxBackend(Backend):
test = self.visit(node.test)
body = [self.visit(n) for n in node.body]
orelse = [self.visit(n) for n in node.orelse... | Make it possible to attach OpenMP directives on if statements. | py |
diff --git a/scenarios/kubernetes_e2e.py b/scenarios/kubernetes_e2e.py
index <HASH>..<HASH> 100755
--- a/scenarios/kubernetes_e2e.py
+++ b/scenarios/kubernetes_e2e.py
@@ -508,7 +508,7 @@ def create_parser():
parser.add_argument(
'--soak-test', action='store_true', help='If the test is a soak test job')
... | Update e2e image tag (#<I>) | py |
diff --git a/uqbar/containers/UniqueTreeNode.py b/uqbar/containers/UniqueTreeNode.py
index <HASH>..<HASH> 100644
--- a/uqbar/containers/UniqueTreeNode.py
+++ b/uqbar/containers/UniqueTreeNode.py
@@ -2,7 +2,7 @@ import collections
import copy
-class UniqueTreeNode:
+class UniqueTreeNode(object):
### CLASS VA... | UniqueTreeNode inherits from object. | py |
diff --git a/dock/plugins/post_cp_built_image.py b/dock/plugins/post_cp_built_image.py
index <HASH>..<HASH> 100644
--- a/dock/plugins/post_cp_built_image.py
+++ b/dock/plugins/post_cp_built_image.py
@@ -119,7 +119,6 @@ class CopyBuiltImageToNFSPlugin(PostBuildPlugin):
self.log.error("Couldn't copy %s into ... | no need to call this twice when the value of fname hasn't changed | py |
diff --git a/atomic_reactor/plugins/build_imagebuilder.py b/atomic_reactor/plugins/build_imagebuilder.py
index <HASH>..<HASH> 100644
--- a/atomic_reactor/plugins/build_imagebuilder.py
+++ b/atomic_reactor/plugins/build_imagebuilder.py
@@ -52,13 +52,16 @@ class ImagebuilderPlugin(BuildStepPlugin):
(output, last... | build_imagebuilder: stop logging stderr as ERROR imagebuilder uses stderr for normal operation. In order to avoid alarming ERROR logs, these are now logged at INFO level like stdout. Because the two streams are not always logged in the same order as they're produced, prefix them with stderr/stdout to distinguish the s... | py |
diff --git a/imagen/patterngenerator.py b/imagen/patterngenerator.py
index <HASH>..<HASH> 100644
--- a/imagen/patterngenerator.py
+++ b/imagen/patterngenerator.py
@@ -66,10 +66,10 @@ class PatternGenerator(param.Parameterized):
default=BoundingBox(points=((-0.5,-0.5), (0.5,0.5))),precedence=-1,
doc="B... | Default pattern density increased to <I> for display in Notebook | py |
diff --git a/nosedjangotests/polls/tests/test2.py b/nosedjangotests/polls/tests/test2.py
index <HASH>..<HASH> 100644
--- a/nosedjangotests/polls/tests/test2.py
+++ b/nosedjangotests/polls/tests/test2.py
@@ -38,12 +38,17 @@ class AltersBleed1TestCase(TestCase):
fixtures = ['polls1.json']
rebuild_schema = True
... | refs #<I>: Added comments. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -58,6 +58,7 @@ setup(
'djangorestframework==3.3.3',
'python-telegram-bot==3.3',
'Jinja2==2.8',
+ 'jinja2-time==0.1.0',
'requests==2.10.0',
'shortuuid==0.4.3',
'kik==... | jinja2-time in setup | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.