diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/channels/backends/base.py b/channels/backends/base.py
index <HASH>..<HASH> 100644
--- a/channels/backends/base.py
+++ b/channels/backends/base.py
@@ -4,6 +4,8 @@ from abc import ABCMeta, abstractmethod
from six import add_metaclass
+from channels.exceptions import ImproperlyConfigured
+
@add_metacl... | Update exceptions in BaseChannel | py |
diff --git a/bugzoo/testing/base.py b/bugzoo/testing/base.py
index <HASH>..<HASH> 100644
--- a/bugzoo/testing/base.py
+++ b/bugzoo/testing/base.py
@@ -109,7 +109,7 @@ class TestSuite(object):
raise Exception("unexpected test harness type: {}".format(typ))
def __init__(self, tests: List[TestCase]) -> Non... | testing: removed Python <I> code | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -110,7 +110,11 @@ def windows_lensfun_compile():
path = 'external/' + os.path.basename(url)
if not os.path.exists(path):
print('Downloading', url)
- urlretrieve(url, pa... | repeat lib/tools download once in case of network problems | py |
diff --git a/psamm/commands/fluxcoupling.py b/psamm/commands/fluxcoupling.py
index <HASH>..<HASH> 100644
--- a/psamm/commands/fluxcoupling.py
+++ b/psamm/commands/fluxcoupling.py
@@ -45,8 +45,11 @@ class FluxCouplingCommand(MetabolicMixin, SolverCommandMixin,
if max_reaction is None:
self.fail('Th... | fluxcoupling: Report flux balance errors | py |
diff --git a/clients/python/setup.py b/clients/python/setup.py
index <HASH>..<HASH> 100644
--- a/clients/python/setup.py
+++ b/clients/python/setup.py
@@ -32,7 +32,10 @@ with open('README.rst') as f:
setup(
name='girder-client',
use_scm_version={'root': '../..', 'local_scheme': prerelease_local_scheme},
- ... | Change setuptools-scm requirement in python client. This is also necessary to get the ansible tests to pass (after merging it). | py |
diff --git a/cassandra/protocol.py b/cassandra/protocol.py
index <HASH>..<HASH> 100644
--- a/cassandra/protocol.py
+++ b/cassandra/protocol.py
@@ -66,6 +66,7 @@ TRACING_FLAG = 0x02
CUSTOM_PAYLOAD_FLAG = 0x04
WARNING_FLAG = 0x08
USE_BETA_FLAG = 0x10
+USE_BETA_MASK = ~USE_BETA_FLAG
_message_types_by_opcode = {}
@... | don't xor beta flag when it's not set | py |
diff --git a/dysl/corpora/corpuslib/train.py b/dysl/corpora/corpuslib/train.py
index <HASH>..<HASH> 100644
--- a/dysl/corpora/corpuslib/train.py
+++ b/dysl/corpora/corpuslib/train.py
@@ -61,6 +61,7 @@ class Train:
for sample in self.temp_train_data[lang]:
text = sample + u'\n'
... | Closing open file when saving new training samples | py |
diff --git a/src/scs_core/sync/schedule.py b/src/scs_core/sync/schedule.py
index <HASH>..<HASH> 100644
--- a/src/scs_core/sync/schedule.py
+++ b/src/scs_core/sync/schedule.py
@@ -163,8 +163,8 @@ class ScheduleItem(JSONable):
Constructor
"""
self.__name = name
- self.__interval = round(... | Fixed a bug in ScheduleItem constructor. | py |
diff --git a/pyrogram/client/methods/messages/send_photo.py b/pyrogram/client/methods/messages/send_photo.py
index <HASH>..<HASH> 100644
--- a/pyrogram/client/methods/messages/send_photo.py
+++ b/pyrogram/client/methods/messages/send_photo.py
@@ -64,7 +64,7 @@ class SendPhoto(BaseClient):
A valid file ... | Fix wrong type hint in docs for send_photo | py |
diff --git a/gimmemotifs/maelstrom.py b/gimmemotifs/maelstrom.py
index <HASH>..<HASH> 100644
--- a/gimmemotifs/maelstrom.py
+++ b/gimmemotifs/maelstrom.py
@@ -233,11 +233,17 @@ def run_maelstrom(infile, genome, outdir, pwmfile=None, plot=True, cluster=True,
shutil.copyfile(infile, os.path.join(outdir, "input.table... | fix to work with maelstrom | py |
diff --git a/autopep8.py b/autopep8.py
index <HASH>..<HASH> 100755
--- a/autopep8.py
+++ b/autopep8.py
@@ -1458,14 +1458,15 @@ class ReflowedLines(object):
):
return
- prev_text = unicode(prev_item)[-1]
+ prev_text = unicode(prev_item)
if (
((prev_item.is_keyw... | Allow spaces around arithmetic operators. | py |
diff --git a/gns3server/compute/dynamips/__init__.py b/gns3server/compute/dynamips/__init__.py
index <HASH>..<HASH> 100644
--- a/gns3server/compute/dynamips/__init__.py
+++ b/gns3server/compute/dynamips/__init__.py
@@ -493,7 +493,7 @@ class Dynamips(BaseManager):
await vm.set_sparsemem(False)
us... | Fix cannot delete Dynamips router the content of the "usage" field. Fixes <URL> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -11,6 +11,7 @@ try:
from distutils.extension import Extension
from distutils.command.build_ext import build_ext
from os.path import isfile, abspath, dirname
+ from platform import system
class FailBuil... | cglpk build on clang bug The latest version of clang on MacOSX errors out by default with unused arguments, and building a python extension will use the unsupported gcc only argument -mno-fused-madd. To prevent the error, the compiler also needs to be passed the argument -Qunused-arguments. This fixes issue #<I> | py |
diff --git a/uwg/solarcalcs.py b/uwg/solarcalcs.py
index <HASH>..<HASH> 100644
--- a/uwg/solarcalcs.py
+++ b/uwg/solarcalcs.py
@@ -203,7 +203,7 @@ class SolarCalcs(object):
if(0.5*math.pi-self.zenith > 0.):
self.tanzen = math.tan(0.5*math.pi-1e-6);
- if(0.5*math.pi-zenith <= 0... | fix(solarcalcs): replace zenith with self.zenith Noticed this bug while running on local machine. Not sure why it wasn't picked up by tests or previous runs but here we have it! | py |
diff --git a/python/thunder/rdds/images.py b/python/thunder/rdds/images.py
index <HASH>..<HASH> 100644
--- a/python/thunder/rdds/images.py
+++ b/python/thunder/rdds/images.py
@@ -174,6 +174,11 @@ class Images(Data):
-------
no return value
"""
+ if not overwrite:
+ from thun... | add overwrite check to Images.saveAsBinarySeries this now calls raiseErrorIfPathExists if overwrite is false, consistent with the other saveAs implementations. Looks like this method was just overlooked when the other checks were put in place. | py |
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py
index <HASH>..<HASH> 100644
--- a/salt/utils/parsers.py
+++ b/salt/utils/parsers.py
@@ -2782,6 +2782,12 @@ class SaltRunOptionParser(six.with_metaclass(OptionParserMeta,
action='store_true',
help=('Start the runner operation and immedi... | Add --skip-grains option to salt-run This will allow the user to skip grains generation and save the 2+ seconds it takes to generate grains for each call to `salt-run`. Grains are not commonly used in runners. | py |
diff --git a/examples/server/models.py b/examples/server/models.py
index <HASH>..<HASH> 100644
--- a/examples/server/models.py
+++ b/examples/server/models.py
@@ -5,7 +5,7 @@ from django.db import models
class DummyModel(models.Model):
name = models.CharField(max_length=255)
- model2 = models.ForeignKey('Dum... | on_delete action is now required for ForgienKeys | py |
diff --git a/blockstack_cli_0.14.1/blockstack_client/method_parser.py b/blockstack_cli_0.14.1/blockstack_client/method_parser.py
index <HASH>..<HASH> 100644
--- a/blockstack_cli_0.14.1/blockstack_client/method_parser.py
+++ b/blockstack_cli_0.14.1/blockstack_client/method_parser.py
@@ -105,8 +105,9 @@ def parse_methods... | "rpc" is the pragma we're interested in now, not "norpc" | py |
diff --git a/Lib/fontbakery/profiles/googlefonts_conditions.py b/Lib/fontbakery/profiles/googlefonts_conditions.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/profiles/googlefonts_conditions.py
+++ b/Lib/fontbakery/profiles/googlefonts_conditions.py
@@ -425,6 +425,8 @@ def whitelist_camelcased_familyname(font):
... | MonteCarlo and WindSong added to camelcased list | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -25,13 +25,15 @@ import sys
import os
def do_pre_build_py_stuff():
- os.system('make libre2.a')
+ if os.name == 'nt':
+ os.system('make libre2.a')
def do_post_build_py_stuff():
pass
def do_pre_insta... | Issue #2: gmp and re2 paths | py |
diff --git a/master/contrib/bitbucket_buildbot.py b/master/contrib/bitbucket_buildbot.py
index <HASH>..<HASH> 100755
--- a/master/contrib/bitbucket_buildbot.py
+++ b/master/contrib/bitbucket_buildbot.py
@@ -91,7 +91,7 @@ class BitBucketBuildBot(resource.Resource):
'files': files,
'link... | don't send a 'repository' property, as the build will add that itself | py |
diff --git a/client/deis.py b/client/deis.py
index <HASH>..<HASH> 100755
--- a/client/deis.py
+++ b/client/deis.py
@@ -583,9 +583,7 @@ class DeisClient(object):
email = raw_input('email: ')
url = urlparse.urljoin(controller, '/api/auth/register')
payload = {'username': username, 'password... | Fixed #<I> -- adding content-type header broke registration. | py |
diff --git a/fish_searcher/views/search.py b/fish_searcher/views/search.py
index <HASH>..<HASH> 100644
--- a/fish_searcher/views/search.py
+++ b/fish_searcher/views/search.py
@@ -175,7 +175,8 @@ def packing_page_items(data, start, end):
'description': x['description'],
'url': x['url']
... | [UPDATE] Return a first keywords if it contains multiple keywords made up of commas | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -52,7 +52,7 @@ minimal_requirements = [
extra_requirements = [
- "websockets==8.*",
+ "websockets>=8.*",
"httptools==0.1.* ;" + env_marker_cpython,
"uvloop>=0.14.0,!=0.15.0,!=0.15.1; " + env_marker_cpython... | Change websockets version to v9 (#<I>) * Change websockets version to v9 * Update setup.py | py |
diff --git a/ipywidgets/widgets/widget.py b/ipywidgets/widgets/widget.py
index <HASH>..<HASH> 100644
--- a/ipywidgets/widgets/widget.py
+++ b/ipywidgets/widgets/widget.py
@@ -302,8 +302,9 @@ class Widget(LoggingConfigurable):
# any part of the state that has buffers needs to be treated seperately
# si... | if a top level key enters twice, don't try to remove it twice | py |
diff --git a/discord/state.py b/discord/state.py
index <HASH>..<HASH> 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -1259,7 +1259,7 @@ class ConnectionState:
user_id = utils._get_as_snowflake(data, 'user_id')
if isinstance(channel, DMChannel):
member = channel.recipi... | Fix on_typing not dispatching for threads | py |
diff --git a/salt/utils/parsers.py b/salt/utils/parsers.py
index <HASH>..<HASH> 100644
--- a/salt/utils/parsers.py
+++ b/salt/utils/parsers.py
@@ -3038,6 +3038,14 @@ class SaltSSHOptionParser(six.with_metaclass(OptionParserMeta,
action='store_true',
help='Run command via sudo.'
)
+ ... | Add option to skip roster, in case auto-add is not needed | py |
diff --git a/cumulusci/core/tasks.py b/cumulusci/core/tasks.py
index <HASH>..<HASH> 100644
--- a/cumulusci/core/tasks.py
+++ b/cumulusci/core/tasks.py
@@ -151,7 +151,7 @@ class BaseTask(object):
tags = {"task class": self.__class__.__name__}
if self.org_config:
tags["org usern... | Make flake8 happy with cci.py | py |
diff --git a/salt/cloud/clouds/ec2.py b/salt/cloud/clouds/ec2.py
index <HASH>..<HASH> 100644
--- a/salt/cloud/clouds/ec2.py
+++ b/salt/cloud/clouds/ec2.py
@@ -1673,6 +1673,8 @@ def query_instance(vm_=None, call=None):
)
)
attempts -= 1
+ # Just a little delay betwee... | Fix #<I>: add delay in EC2 API call retry. | py |
diff --git a/openxc/controllers/usb.py b/openxc/controllers/usb.py
index <HASH>..<HASH> 100644
--- a/openxc/controllers/usb.py
+++ b/openxc/controllers/usb.py
@@ -19,12 +19,15 @@ class UsbControllerMixin(Controller):
TODO bah, this is kind of weird. refactor the relationship between
sources/controllers.
... | Don't require mixin constructor to be called. | py |
diff --git a/kademlia/network.py b/kademlia/network.py
index <HASH>..<HASH> 100644
--- a/kademlia/network.py
+++ b/kademlia/network.py
@@ -48,7 +48,8 @@ class Server(object):
reactor.listenUDP(port, server.protocol)
- Provide interface="::" to accept ipv6 address
+ Args:
+ int... | Comment change Added comments for interface as changed in listen() to reflect in kademlia.readthedocs,org page. | py |
diff --git a/pysparkling/sql/expressions/expressions.py b/pysparkling/sql/expressions/expressions.py
index <HASH>..<HASH> 100644
--- a/pysparkling/sql/expressions/expressions.py
+++ b/pysparkling/sql/expressions/expressions.py
@@ -3,8 +3,21 @@ from pysparkling.sql.types import StructField, DataType, \
INTERNAL_TYP... | Register expressions based on their pretty name | py |
diff --git a/menuinst/win32.py b/menuinst/win32.py
index <HASH>..<HASH> 100644
--- a/menuinst/win32.py
+++ b/menuinst/win32.py
@@ -5,13 +5,15 @@
from __future__ import absolute_import
import os
-from os.path import expanduser, isdir, join
+import sys
+from os.path import expanduser, isdir, join, exists
from .uti... | Add initial support for recognition of non-admin installations. Conflicts: menuinst/win<I>.py | py |
diff --git a/pykwalify/__init__.py b/pykwalify/__init__.py
index <HASH>..<HASH> 100644
--- a/pykwalify/__init__.py
+++ b/pykwalify/__init__.py
@@ -6,6 +6,13 @@
import logging
import logging.config
import os
+import sys
+
+if sys.version_info[0] < 3:
+ # We must force python2 systems to use utf8 encoding instead o... | Force UTF8 encoding when running on any python2.x version of python | py |
diff --git a/salt/renderers/jinja.py b/salt/renderers/jinja.py
index <HASH>..<HASH> 100644
--- a/salt/renderers/jinja.py
+++ b/salt/renderers/jinja.py
@@ -292,7 +292,7 @@ def _split_module_dicts():
if not isinstance(__salt__, dict):
return __salt__
mod_dict = dict(__salt__)
- for module_func_name,... | Iterate over a copy. | py |
diff --git a/fsps/fsps.py b/fsps/fsps.py
index <HASH>..<HASH> 100644
--- a/fsps/fsps.py
+++ b/fsps/fsps.py
@@ -490,22 +490,29 @@ class StellarPopulation(object):
@property
def log_age(self):
+ """log10(age/yr)."""
return self._stat(0)
@property
- def log_mass(self):
+ def stella... | Clarify units of SP properties Changed names of properties in `StellarPopulation` to clarify their units. Also added basic docstrings. Masses are linear in solar masses, star formation rate is linear solar masses per year, while luminosity and age are logarithmic. | py |
diff --git a/jenkins/bootstrap.py b/jenkins/bootstrap.py
index <HASH>..<HASH> 100755
--- a/jenkins/bootstrap.py
+++ b/jenkins/bootstrap.py
@@ -299,6 +299,11 @@ class GSUtil(object):
cmd = [self.gsutil, 'stat', path]
return self.call(cmd, output=True, log_failures=False)
+ def ls(self, path):
+ ... | Use ls to test subdir instead of stat | py |
diff --git a/housecanary/excel/__init__.py b/housecanary/excel/__init__.py
index <HASH>..<HASH> 100644
--- a/housecanary/excel/__init__.py
+++ b/housecanary/excel/__init__.py
@@ -227,8 +227,8 @@ def _save_individual_file(workbook, files_path, addr):
if not os.path.exists(files_path):
os.makedirs(files_pat... | Fix excel output file names The slugify call was causing the file extension to be lost | py |
diff --git a/linguist/mixins.py b/linguist/mixins.py
index <HASH>..<HASH> 100644
--- a/linguist/mixins.py
+++ b/linguist/mixins.py
@@ -8,7 +8,6 @@ from collections import defaultdict
from django.core.exceptions import ImproperlyConfigured
from django.db import models
from django.db.models.fields import NOT_PROVIDED
... | Reverse condition on Meta in ModelMeta | py |
diff --git a/intranet/apps/search/views.py b/intranet/apps/search/views.py
index <HASH>..<HASH> 100644
--- a/intranet/apps/search/views.py
+++ b/intranet/apps/search/views.py
@@ -214,8 +214,8 @@ def query(q, admin=False):
# loop through the DNs saved and get actual user objects
users = []
- for user in r... | Fix Search: this is why we test in dev | py |
diff --git a/smr/config.py b/smr/config.py
index <HASH>..<HASH> 100644
--- a/smr/config.py
+++ b/smr/config.py
@@ -31,7 +31,6 @@ class DefaultConfig(object):
self.aws_ec2_remote_config_path = "/tmp/smr_config.py"
self.aws_ec2_initialization_commands = [
"sudo apt-get update",
- ... | don't run apt-get upgrade, it hangs for a lot of amis | py |
diff --git a/test/full_test.py b/test/full_test.py
index <HASH>..<HASH> 100755
--- a/test/full_test.py
+++ b/test/full_test.py
@@ -260,7 +260,7 @@ def run_all_tests(mode, checker, protocol, cores, slices):
"protocol" : protocol,
"cores" : cores,
"s... | Adjust timeout for shrink test, hopefully it passes tomorrow. | py |
diff --git a/tinyrpc/protocols/__init__.py b/tinyrpc/protocols/__init__.py
index <HASH>..<HASH> 100644
--- a/tinyrpc/protocols/__init__.py
+++ b/tinyrpc/protocols/__init__.py
@@ -74,6 +74,13 @@ class RPCBatchRequest(list):
an error in parsing the request.
"""
+ def create_batch_response(self):
+ "... | Moved create_batch_response to the correct function. | py |
diff --git a/colab/utils/conf.py b/colab/utils/conf.py
index <HASH>..<HASH> 100644
--- a/colab/utils/conf.py
+++ b/colab/utils/conf.py
@@ -10,7 +10,7 @@ from django.core.exceptions import ImproperlyConfigured
logger = logging.getLogger('colab.init')
if os.environ.get('COLAB_DEBUG'):
logger.addHandler(logging.Str... | Added warning when trying to import plugin from wrong path | py |
diff --git a/atrcopy/diskimages.py b/atrcopy/diskimages.py
index <HASH>..<HASH> 100644
--- a/atrcopy/diskimages.py
+++ b/atrcopy/diskimages.py
@@ -362,7 +362,7 @@ class BootDiskImage(DiskImageBase):
max_ram = 0xc000
max_size = max_ram - bload
max_sectors = max_size / self.header.sector_size
-... | Fix for non-standard boot headers using a single sector instead of usual minimum of 3 sectors | py |
diff --git a/examples/scan.py b/examples/scan.py
index <HASH>..<HASH> 100644
--- a/examples/scan.py
+++ b/examples/scan.py
@@ -23,4 +23,6 @@ def main():
if __name__ == '__main__':
- main()
+ import os
+ if os.environ.get('USE_REDIS_2_6') != 'true':
+ main() | scan example updated to be skipped for redis <I> on travis | py |
diff --git a/ailment/statement.py b/ailment/statement.py
index <HASH>..<HASH> 100644
--- a/ailment/statement.py
+++ b/ailment/statement.py
@@ -351,7 +351,11 @@ class Call(Expression, Statement):
return "call"
def replace(self, old_expr, new_expr):
- r0, replaced_target = self.target.replace(old_e... | Call: Do not replace target if it's a string. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -57,6 +57,7 @@ setup(name='httpretty',
author='Gabriel Falcao',
author_email='gabriel@nacaolivre.org',
url='http://github.com/gabrielfalcao/httpretty',
+ zip_safe=False,
packages=get_packages(),
tes... | known issus - setup.py doesn't work correctly under python <I> without this | py |
diff --git a/nudibranch/views.py b/nudibranch/views.py
index <HASH>..<HASH> 100644
--- a/nudibranch/views.py
+++ b/nudibranch/views.py
@@ -704,11 +704,10 @@ def project_new(request, class_):
request_method='PUT', permission='authenticated')
@validate(project=EditableDBThing('project_id', Project, source=... | Output the correct number of items requeued. | py |
diff --git a/test_flatten.py b/test_flatten.py
index <HASH>..<HASH> 100644
--- a/test_flatten.py
+++ b/test_flatten.py
@@ -127,7 +127,6 @@ class UnitTests(unittest.TestCase):
def test_unflatten_with_list_custom_separator(self):
"""Complex dictionary with lists"""
- self.maxDiff = None
di... | Removed maxDiff from the test case | py |
diff --git a/src/peltak/commands/docs.py b/src/peltak/commands/docs.py
index <HASH>..<HASH> 100644
--- a/src/peltak/commands/docs.py
+++ b/src/peltak/commands/docs.py
@@ -52,11 +52,11 @@ def docs(recreate=False, no_index=False):
log.info("^91Deleting ^94{}".format(DOC_OUT_PATH))
shutil.rmtree(DOC_OUT_... | Correctly handle no REFDOC_PATHS in docs command | py |
diff --git a/luma/led_matrix/device.py b/luma/led_matrix/device.py
index <HASH>..<HASH> 100644
--- a/luma/led_matrix/device.py
+++ b/luma/led_matrix/device.py
@@ -216,7 +216,7 @@ class neopixel(device):
self.clear()
self.show()
- def __ws281x__(self, numPixels):
+ def __ws2812__(self, numPixel... | Fix neopixel initialization problem | py |
diff --git a/moto/ecr/models.py b/moto/ecr/models.py
index <HASH>..<HASH> 100644
--- a/moto/ecr/models.py
+++ b/moto/ecr/models.py
@@ -951,4 +951,4 @@ class ECRBackend(BaseBackend):
}
-ecr_backends = BackendDict(ECRBackend, "ec2")
+ecr_backends = BackendDict(ECRBackend, "ecr") | Use correct service name for "ecr" in `BackendDict` (#<I>) | py |
diff --git a/pyroSAR/tests/test_spatialite.py b/pyroSAR/tests/test_spatialite.py
index <HASH>..<HASH> 100644
--- a/pyroSAR/tests/test_spatialite.py
+++ b/pyroSAR/tests/test_spatialite.py
@@ -10,4 +10,7 @@ con = sqlite3.connect(':memory:')
con.enable_load_extension(True)
-con.load_extension('libspatialite')
+try:
+... | enabled option to load mod_spatialite instead of libspatialite | py |
diff --git a/post_office/management/commands/send_queued_mail.py b/post_office/management/commands/send_queued_mail.py
index <HASH>..<HASH> 100644
--- a/post_office/management/commands/send_queued_mail.py
+++ b/post_office/management/commands/send_queued_mail.py
@@ -1,10 +1,12 @@
import tempfile
+import sys
from optp... | Handle exceptions on the send_queued_mail command | py |
diff --git a/rstcheck.py b/rstcheck.py
index <HASH>..<HASH> 100755
--- a/rstcheck.py
+++ b/rstcheck.py
@@ -15,7 +15,7 @@ from docutils import core, nodes, utils, writers
from docutils.parsers import rst
-__version__ = '0.1'
+__version__ = '0.1.1'
def node_has_class(node, classes): | Increment minor version to <I> | py |
diff --git a/dvc/settings.py b/dvc/settings.py
index <HASH>..<HASH> 100644
--- a/dvc/settings.py
+++ b/dvc/settings.py
@@ -15,17 +15,17 @@ class SettingsError(DvcException):
class Settings(object):
def __init__(self, argv=None, git=None, config=None):
self._args = None
- args = None
+ args ... | replace eq\neq to is is not none | py |
diff --git a/templates/genomics/steps/vcf.py b/templates/genomics/steps/vcf.py
index <HASH>..<HASH> 100644
--- a/templates/genomics/steps/vcf.py
+++ b/templates/genomics/steps/vcf.py
@@ -1,12 +1,12 @@
import gzip
import os
+from warnings import warn
-from sofia_.step import Resource, Target
-from lhc.io.vcf_.tools.... | changed genomics template to use new vcf index | py |
diff --git a/molo/core/api/importers.py b/molo/core/api/importers.py
index <HASH>..<HASH> 100644
--- a/molo/core/api/importers.py
+++ b/molo/core/api/importers.py
@@ -358,15 +358,6 @@ class SiteImporter(object):
self.reaction_questions[page.id].append(
reaction_question["reaction_q... | Remove code so that adding recomended articles fails | py |
diff --git a/tests/test_known_good.py b/tests/test_known_good.py
index <HASH>..<HASH> 100644
--- a/tests/test_known_good.py
+++ b/tests/test_known_good.py
@@ -29,8 +29,10 @@ class TestKnownResults(unittest.TestCase):
else:
case_path = get_case(case_path)
- ss = compare_results(case_path, ... | Re-attempt CI. | py |
diff --git a/cherrypy/_cpcompat.py b/cherrypy/_cpcompat.py
index <HASH>..<HASH> 100644
--- a/cherrypy/_cpcompat.py
+++ b/cherrypy/_cpcompat.py
@@ -210,6 +210,18 @@ except ImportError:
from http.server import BaseHTTPRequestHandler
try:
+ # Python 2. We have to do it in this order so Python 2 builds
+ # do... | Fixed #<I> (cherrypy requires ssl to startup) | py |
diff --git a/hypercorn/websocket.py b/hypercorn/websocket.py
index <HASH>..<HASH> 100644
--- a/hypercorn/websocket.py
+++ b/hypercorn/websocket.py
@@ -206,7 +206,7 @@ class WebsocketServer(HTTPServer):
self.close()
self.state = WebsocketState.CLOSED
elif message['type'] ==... | Bugfix cope with non-conformant ASGI implementations The ASGI specification for websockets states the bytes key value should either be None or bytes, some implementations however omit it (<URL> | py |
diff --git a/slave/core.py b/slave/core.py
index <HASH>..<HASH> 100644
--- a/slave/core.py
+++ b/slave/core.py
@@ -183,9 +183,9 @@ class InstrumentBase(object):
standard configuration, it is more convenient to inject it as well. This is
done via the cfg parameter.
"""
- def __init__(self, connection, ... | Added support for constructor argument forwarding in cooperative multiple inheritance. | py |
diff --git a/openfisca_web_api/tests/map_to_swagger_tests.py b/openfisca_web_api/tests/map_to_swagger_tests.py
index <HASH>..<HASH> 100644
--- a/openfisca_web_api/tests/map_to_swagger_tests.py
+++ b/openfisca_web_api/tests/map_to_swagger_tests.py
@@ -180,4 +180,6 @@ class TestSwagger(unittest.TestCase):
self... | Ensure module is run from CLI | py |
diff --git a/test/test_remote.py b/test/test_remote.py
index <HASH>..<HASH> 100644
--- a/test/test_remote.py
+++ b/test/test_remote.py
@@ -100,9 +100,6 @@ run:
time.sleep(20)
out = subprocess.check_output('sos status {} -c docker.yml -q docker'.format(tasks), shell=True).decode()
self.assertE... | Try again to fix travis CI tests | py |
diff --git a/src/feat/models/model.py b/src/feat/models/model.py
index <HASH>..<HASH> 100644
--- a/src/feat/models/model.py
+++ b/src/feat/models/model.py
@@ -1626,7 +1626,9 @@ class MetaQuerySetCollection(MetaCollection):
target = parent_class._query_target
if target == 'source':
cls.ann... | Fix passing view/source getter for query set model. | py |
diff --git a/kernel_tuner/interface.py b/kernel_tuner/interface.py
index <HASH>..<HASH> 100644
--- a/kernel_tuner/interface.py
+++ b/kernel_tuner/interface.py
@@ -298,12 +298,11 @@ def tune_kernel(kernel_name, kernel_string, problem_size, arguments,
if cmem_args is not None:
dev.copy_constant_memo... | moved the correctness_check function to the same try/except block as benchmark | py |
diff --git a/benchexec/containerexecutor.py b/benchexec/containerexecutor.py
index <HASH>..<HASH> 100644
--- a/benchexec/containerexecutor.py
+++ b/benchexec/containerexecutor.py
@@ -693,7 +693,14 @@ class ContainerExecutor(baseexecutor.BaseExecutor):
try:
container.make_bind_mount(mount_p... | Improve mounts for container Our current way to make bind mounts fails on btrfs file systems, but recursive bind mounts work, so we fallback to recursive bind mounts if necessary. | py |
diff --git a/client/python/conductor/conductor.py b/client/python/conductor/conductor.py
index <HASH>..<HASH> 100644
--- a/client/python/conductor/conductor.py
+++ b/client/python/conductor/conductor.py
@@ -47,7 +47,7 @@ class BaseClient(object):
if headers is not None:
theHeader = self.mergeTwoDi... | encode body to utf8 | py |
diff --git a/estnltk/corpus.py b/estnltk/corpus.py
index <HASH>..<HASH> 100644
--- a/estnltk/corpus.py
+++ b/estnltk/corpus.py
@@ -49,6 +49,7 @@ class Element(dict):
self.assert_valid()
def force_cast(self):
+ '''Cast the necessary attributes to correct types.'''
self[TEXT] = as_unicode(... | Wrote Element class for Estnltk corpus with associated unit test | py |
diff --git a/aioxmpp/stream.py b/aioxmpp/stream.py
index <HASH>..<HASH> 100644
--- a/aioxmpp/stream.py
+++ b/aioxmpp/stream.py
@@ -1096,7 +1096,8 @@ class StanzaStream:
def _process_incoming_erroneous_stanza(self, stanza_obj, exc):
self._logger.debug(
"erroneous stanza received (may be incomp... | Log the traceback of erroneous stanzas (on debug level) | py |
diff --git a/graph/helpers/functions.py b/graph/helpers/functions.py
index <HASH>..<HASH> 100644
--- a/graph/helpers/functions.py
+++ b/graph/helpers/functions.py
@@ -97,6 +97,14 @@ def get_vertices_from_edge_list(graph, edge_list):
return list(node_set)
+def get_subgraph_from_edge_list(graph, edge_list):
+ ... | Helper Function Implementation Implemented a subgraph creation helper function. | py |
diff --git a/internetarchive/item.py b/internetarchive/item.py
index <HASH>..<HASH> 100644
--- a/internetarchive/item.py
+++ b/internetarchive/item.py
@@ -531,7 +531,8 @@ class File(object):
for key in _file:
setattr(self, key, _file[key])
base_url = '{protocol}//archive.org/download/{ide... | Encode filenames in download URLs. | py |
diff --git a/piazza_api/__init__.py b/piazza_api/__init__.py
index <HASH>..<HASH> 100644
--- a/piazza_api/__init__.py
+++ b/piazza_api/__init__.py
@@ -1,3 +1,3 @@
from piazza_api.piazza import Piazza
-__version__ = "0.4.2"
+__version__ = "0.4.1" | revert(user) "feat(user): Update version number for create_followup." This reverts commit <I>b<I>bc<I>a<I>dceab9dcc8c<I>dfad2a2. | py |
diff --git a/alot/db/utils.py b/alot/db/utils.py
index <HASH>..<HASH> 100644
--- a/alot/db/utils.py
+++ b/alot/db/utils.py
@@ -325,6 +325,10 @@ def extract_body(mail, types=None, field_key='copiousoutput'):
body_parts = []
for part in mail.walk():
+ # skip non-leaf nodes in the mail tree
+ if ... | ignore multipart subparts when extracting content these are internal nodes in the mail tree and do not contain displayable content. | py |
diff --git a/ipfsapi/encoding.py b/ipfsapi/encoding.py
index <HASH>..<HASH> 100644
--- a/ipfsapi/encoding.py
+++ b/ipfsapi/encoding.py
@@ -277,7 +277,8 @@ class Json(Encoding):
bytes
"""
try:
- result = json.dumps(obj, sort_keys=True)
+ result = json.dumps(obj, sort_... | serialize using most compact JSON representation | py |
diff --git a/teneto/utils/utils.py b/teneto/utils/utils.py
index <HASH>..<HASH> 100755
--- a/teneto/utils/utils.py
+++ b/teneto/utils/utils.py
@@ -1081,6 +1081,8 @@ def get_network_when(tnet, i=None, j=None, t=None, ij=None, logic='and', copy=Fa
else:
df = pd.DataFrame(
data={'i':... | dense get_net_when has ij as ints | py |
diff --git a/ceph_deploy/install.py b/ceph_deploy/install.py
index <HASH>..<HASH> 100644
--- a/ceph_deploy/install.py
+++ b/ceph_deploy/install.py
@@ -423,6 +423,41 @@ def make(parser):
)
version.add_argument(
+ '--mon',
+ dest='install_mon',
+ action='store_true',
+ help='instal... | add all the flags to signal specific/combined component installation | py |
diff --git a/benchexec/runexecutor.py b/benchexec/runexecutor.py
index <HASH>..<HASH> 100644
--- a/benchexec/runexecutor.py
+++ b/benchexec/runexecutor.py
@@ -209,6 +209,15 @@ class RunExecutor(object):
if user is not None:
self._kill_process = self._kill_process_with_sudo
+ # Check i... | In sudo mode, check whether we are allowed to execute commands before actually executing them to distinguish sudo failures from other problems. | py |
diff --git a/metal/mmtl/utils/preprocess.py b/metal/mmtl/utils/preprocess.py
index <HASH>..<HASH> 100644
--- a/metal/mmtl/utils/preprocess.py
+++ b/metal/mmtl/utils/preprocess.py
@@ -251,6 +251,7 @@ def load_tsv(
print("WARNING: skipping example with mismatched number of columns")
cont... | Add comment to uid generation | py |
diff --git a/pythainlp/tag/unigram.py b/pythainlp/tag/unigram.py
index <HASH>..<HASH> 100644
--- a/pythainlp/tag/unigram.py
+++ b/pythainlp/tag/unigram.py
@@ -6,7 +6,6 @@ import json
import os
from typing import List, Tuple
-import dill
from pythainlp.corpus import corpus_path
from .orchid_preprocessing import or... | Delete unused import from unigram.py | py |
diff --git a/treebeard/al_tree.py b/treebeard/al_tree.py
index <HASH>..<HASH> 100644
--- a/treebeard/al_tree.py
+++ b/treebeard/al_tree.py
@@ -133,7 +133,11 @@ class AL_Node(Node):
# django's serializer stores the attributes in 'fields'
fields = pyobj['fields']
del fields['parent'... | sib_order must be removed in AL_Node.dump_bulk only if it exists | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -34,7 +34,7 @@ install_requires = [
'IDUtils~=0.0,>=0.2.4',
'autosemver~=0.0,>=0.5.1',
'dojson~=1.0,>=1.3.1',
- 'inspire-schemas~=43.0,>=43.0.0',
+ 'inspire-schemas~=44.0,>=44.0.0',
'langdetect~=1.0,>... | setup: bump inspire-schemas to version ~<I> Sem-Ver: breaks compatibility | py |
diff --git a/funcparserlib/util.py b/funcparserlib/util.py
index <HASH>..<HASH> 100644
--- a/funcparserlib/util.py
+++ b/funcparserlib/util.py
@@ -23,8 +23,33 @@ from __future__ import unicode_literals
def pretty_tree(x, kids, show):
- """Return a pseudo-graphic tree representation of `x` similar to the `tree` ... | docs: More details about `pretty_tree()` | py |
diff --git a/etcd/test/test_etcd.py b/etcd/test/test_etcd.py
index <HASH>..<HASH> 100644
--- a/etcd/test/test_etcd.py
+++ b/etcd/test/test_etcd.py
@@ -50,7 +50,7 @@ class CheckEtcdTest(AgentCheckTest):
self.assertServiceCheckOK(self.check.SERVICE_CHECK_NAME, count=1,
tags=['u... | [etcd][test] fix issues after changes in dd-agent aggregator. | py |
diff --git a/fluent_contents/forms/widgets.py b/fluent_contents/forms/widgets.py
index <HASH>..<HASH> 100644
--- a/fluent_contents/forms/widgets.py
+++ b/fluent_contents/forms/widgets.py
@@ -47,7 +47,7 @@ class PlaceholderFieldWidget(Widget):
Render the placeholder field.
"""
other_instance_l... | Fix ValueError for '-DUMMY-' value when re-rendering the form. Likely occurs as of Django >= <I> | py |
diff --git a/danceschool/discounts/helpers.py b/danceschool/discounts/helpers.py
index <HASH>..<HASH> 100644
--- a/danceschool/discounts/helpers.py
+++ b/danceschool/discounts/helpers.py
@@ -11,6 +11,8 @@ def getApplicableDiscountCombos(cart_object_list,newCustomer=True,student=False,
filters = Q(active=True)
... | Fixed issue with customer-specific discounts being given to everyone. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -41,7 +41,7 @@ def find_version(fname):
raise RuntimeError('Cannot find version information')
return version
-__version__ = find_version("doitlive.py")
+__version__ = find_version("doitlive/__init__.py")
d... | fixed setup.py version finding mechanism | py |
diff --git a/wandb/tensorboard/watcher.py b/wandb/tensorboard/watcher.py
index <HASH>..<HASH> 100644
--- a/wandb/tensorboard/watcher.py
+++ b/wandb/tensorboard/watcher.py
@@ -5,6 +5,8 @@ import sys
for path in sys.path:
if "client/wandb" in path:
sys.path.remove(path)
+if sys.modules.get("tensorboard"):
... | fix tensorboard import issue | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,22 @@
#!/usr/bin/env python
+import sys
-from distutils.core import setup
+def howto_install_setuptools():
+ print """Error: You need setuptools Python package!
+
+It's very easy to install it, just type (as root... | attempt to use setuptools for package management whenever available | py |
diff --git a/yabt/caching.py b/yabt/caching.py
index <HASH>..<HASH> 100644
--- a/yabt/caching.py
+++ b/yabt/caching.py
@@ -171,6 +171,8 @@ def load_target_from_cache(target: Target, build_context) -> (bool, bool):
has_global_cache = False
if build_context.global_cache and \
build_cont... | logs that will help debugging cache problems | py |
diff --git a/keggrest.py b/keggrest.py
index <HASH>..<HASH> 100644
--- a/keggrest.py
+++ b/keggrest.py
@@ -87,21 +87,6 @@ def KEGGget(element, option='', **kwargs):
return result
-def KEGGfind(database, description, option='', **kwargs):
- # options = aaseq | ntseq | mol | kcf | image | kgml
- data = RES... | removed the keggfind function as not correct at all | py |
diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index <HASH>..<HASH> 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -666,7 +666,7 @@ def str_split(arr, pat=None, n=None, return_type='series'):
return res
-def str_slice(arr, start=None, stop=None, step=1):
+def str_slice(arr, s... | Make step None (same as 1) for consistency | py |
diff --git a/asyncpgsa/record.py b/asyncpgsa/record.py
index <HASH>..<HASH> 100644
--- a/asyncpgsa/record.py
+++ b/asyncpgsa/record.py
@@ -1,11 +1,8 @@
-
+from sqlalchemy import Column
class Record:
__slots__ = ('row',)
- def __str__(self):
- return str(self.row)
-
def __init__(self, row):
... | Improved record type. (#<I>) -asyncpgsa Record type supports now everything from the asyncpg Record type. | py |
diff --git a/representatives_votes/models.py b/representatives_votes/models.py
index <HASH>..<HASH> 100644
--- a/representatives_votes/models.py
+++ b/representatives_votes/models.py
@@ -15,6 +15,16 @@ class Dossier(TimeStampedModel):
def __unicode__(self):
return unicode(self.title)
+ def chambers(s... | Add helper on dossiers to get chambers | py |
diff --git a/harvesters/frontend/pyqt5.py b/harvesters/frontend/pyqt5.py
index <HASH>..<HASH> 100755
--- a/harvesters/frontend/pyqt5.py
+++ b/harvesters/frontend/pyqt5.py
@@ -488,7 +488,8 @@ class Harvester(QMainWindow):
def action_on_connect(self):
#
self.iaa = self.harvester_core.get_image_acqu... | Show data type can be configurable It’s not necessary to set ‘numpy’ because it’s the default but explicitly did that to show it’s configurable. | py |
diff --git a/apitools/base/py/stream_slice.py b/apitools/base/py/stream_slice.py
index <HASH>..<HASH> 100644
--- a/apitools/base/py/stream_slice.py
+++ b/apitools/base/py/stream_slice.py
@@ -22,7 +22,7 @@ class StreamSlice(object):
def __nonzero__(self):
# For 32-bit python2.x, len() cannot exceed a 32-bit numb... | Change <I>-bit large file fix to use bool instead of long. (Patch originally by thobrla@, see <URL>) | py |
diff --git a/conftest.py b/conftest.py
index <HASH>..<HASH> 100644
--- a/conftest.py
+++ b/conftest.py
@@ -299,6 +299,7 @@ def resolve_fixtures(f, request, protocol):
worker_pub_socks.add(pub_sock)
# Make a worker.
worker_info = '%s[%s](%s)' % (f.__name__, protocol, param)
+ ... | Cast testing worker info to be bytes | py |
diff --git a/salt/utils/vt.py b/salt/utils/vt.py
index <HASH>..<HASH> 100644
--- a/salt/utils/vt.py
+++ b/salt/utils/vt.py
@@ -30,7 +30,6 @@ import errno
import signal
import select
import logging
-import resource
import subprocess
if subprocess.mswindows:
@@ -45,6 +44,7 @@ else:
import fcntl
import st... | `resource` is not available on windows. Fixes #<I>. | py |
diff --git a/tests.py b/tests.py
index <HASH>..<HASH> 100644
--- a/tests.py
+++ b/tests.py
@@ -28,6 +28,12 @@ class TWPTests(unittest.TestCase):
# General Tests ------------------------------------------------------------
# --------------------------------------------------------------------------
+ def ... | added test for hash and comma in URL | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.