diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/mongonaut/forms.py b/mongonaut/forms.py
index <HASH>..<HASH> 100644
--- a/mongonaut/forms.py
+++ b/mongonaut/forms.py
@@ -3,33 +3,9 @@ from django import forms
from mongoengine.fields import EmbeddedDocumentField, ListField
from mongonaut.widgets import get_widget
-
-
class DocumentListForm(forms.Form... | Nixing icky FormFactory that wouldn't work anyway. So there | py |
diff --git a/test/test_chapeldomain.py b/test/test_chapeldomain.py
index <HASH>..<HASH> 100644
--- a/test/test_chapeldomain.py
+++ b/test/test_chapeldomain.py
@@ -309,6 +309,23 @@ class ChapelClassMemberTests(ChapelObjectTestCase):
mod = self.new_obj(objtype)
self.assertEqual(expected, mod.nee... | test: add ClassMember type name tests | py |
diff --git a/autoslugfield/__init__.py b/autoslugfield/__init__.py
index <HASH>..<HASH> 100644
--- a/autoslugfield/__init__.py
+++ b/autoslugfield/__init__.py
@@ -1 +1,6 @@
-
+# -*- coding: utf-8 -*-
+
+__author__ = 'Andy Mikhailenko'
+__license__ = 'GNU Lesser General Public License (GPL), Version 3'
+__url__ = ... | Add setuptools support (part 2 of 2) | py |
diff --git a/src/urh/dev/native/Device.py b/src/urh/dev/native/Device.py
index <HASH>..<HASH> 100644
--- a/src/urh/dev/native/Device.py
+++ b/src/urh/dev/native/Device.py
@@ -69,7 +69,11 @@ class Device(QObject):
def init_recv_buffer(self):
if self.receive_buffer is None:
- nsamples = int(0.6... | fix buffer size for native spectrum analyzer | py |
diff --git a/cluster_vcf_records/variant_tracking.py b/cluster_vcf_records/variant_tracking.py
index <HASH>..<HASH> 100644
--- a/cluster_vcf_records/variant_tracking.py
+++ b/cluster_vcf_records/variant_tracking.py
@@ -513,7 +513,7 @@ class VariantTracker:
best_merged_index = None
merged_record, merge... | Fix check between record distances before merging | py |
diff --git a/mbed_cloud_sdk/devices/mds/rest.py b/mbed_cloud_sdk/devices/mds/rest.py
index <HASH>..<HASH> 100644
--- a/mbed_cloud_sdk/devices/mds/rest.py
+++ b/mbed_cloud_sdk/devices/mds/rest.py
@@ -104,6 +104,7 @@ class RESTClientObject(object):
# https pool manager
self.pool_manager = urllib3.Pool... | Add maxsize arg, which is now in swagger-codegen master | py |
diff --git a/libargos/config/basecti.py b/libargos/config/basecti.py
index <HASH>..<HASH> 100644
--- a/libargos/config/basecti.py
+++ b/libargos/config/basecti.py
@@ -47,13 +47,12 @@ class BaseCti(BaseTreeItem):
"""
super(BaseCti, self).__init__(nodeName=nodeName)
- self._value = None # keep ... | Consistent intitialization. | py |
diff --git a/kubespawner/reflector.py b/kubespawner/reflector.py
index <HASH>..<HASH> 100644
--- a/kubespawner/reflector.py
+++ b/kubespawner/reflector.py
@@ -158,12 +158,7 @@ class ResourceReflector(LoggingConfigurable):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
- # ... | Move global kubernetes client config logic to spawner.py Previously reflector.py was the first to call self.api = shared_client that is not the case any longer, spawner.py calls it just before kicking off reflector.py code. In my opinion, putting the global config logic in spawner.py is more intuitive and clear than ... | py |
diff --git a/metaknowledge/graphHelpers.py b/metaknowledge/graphHelpers.py
index <HASH>..<HASH> 100644
--- a/metaknowledge/graphHelpers.py
+++ b/metaknowledge/graphHelpers.py
@@ -803,11 +803,11 @@ def graphStats(G, stats = ('nodes', 'edges', 'isolates', 'loops', 'density', 'tr
if 'loops' in stats:
if make... | Changed .selfloop_edges to align with networkx <I> | py |
diff --git a/src/cone/ugm/browser/settings.py b/src/cone/ugm/browser/settings.py
index <HASH>..<HASH> 100644
--- a/src/cone/ugm/browser/settings.py
+++ b/src/cone/ugm/browser/settings.py
@@ -5,7 +5,6 @@ from node.ext.ldap import (
BASE,
ONELEVEL,
SUBTREE,
- queryNode,
LDAPNode,
)
from yafowil.b... | use LDAPNode directly since queryNode seems a bit strange and superfluos here | py |
diff --git a/src/gnupg.py b/src/gnupg.py
index <HASH>..<HASH> 100644
--- a/src/gnupg.py
+++ b/src/gnupg.py
@@ -1065,19 +1065,6 @@ class GPGWrapper(GPG):
raise LookupError(
"GnuPG public key for subkey %s not found!" % subkey)
- def encrypt(self, data, recipient, default_key=None, always_trust... | Deduplicate code in GPGWrapper. | py |
diff --git a/src/transformers/training_args.py b/src/transformers/training_args.py
index <HASH>..<HASH> 100644
--- a/src/transformers/training_args.py
+++ b/src/transformers/training_args.py
@@ -803,12 +803,12 @@ class TrainingArguments:
)
},
)
- fsdp_transformer_layer_cls_to_wrap: str = f... | Fix TrainingArguments help section (#<I>) | py |
diff --git a/spyder/preferences/runconfig.py b/spyder/preferences/runconfig.py
index <HASH>..<HASH> 100644
--- a/spyder/preferences/runconfig.py
+++ b/spyder/preferences/runconfig.py
@@ -336,6 +336,8 @@ class BaseRunConfigDialog(QDialog):
def __init__(self, parent=None):
QDialog.__init__(self, parent)... | BaseRunConfigDialog: Remove the ? button in the window bar. This is useless because we don't use that feature. | py |
diff --git a/python/test/test_async.py b/python/test/test_async.py
index <HASH>..<HASH> 100644
--- a/python/test/test_async.py
+++ b/python/test/test_async.py
@@ -373,8 +373,8 @@ proxies = [
# prefer local testing keys to global keys
keys_folder = os.path.dirname(root)
-keys_global = os.path.join (keys_folder, 'key... | PEP8 edits & cleanup | py |
diff --git a/pipenv/utils.py b/pipenv/utils.py
index <HASH>..<HASH> 100644
--- a/pipenv/utils.py
+++ b/pipenv/utils.py
@@ -1350,8 +1350,12 @@ def is_virtual_environment(path):
if not path.is_dir():
return False
for bindir_name in ('bin', 'Scripts'):
- for python_like in path.joinpath(bindir_na... | Ignore OSError in is_virtual_environment check This works around a faulty virtual environment on my machine that makes os.access throw "OSError: too many level of symlinks". If a virtual environment is faulty, we can just ignore it. | py |
diff --git a/cherrypy/lib/profiler.py b/cherrypy/lib/profiler.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/profiler.py
+++ b/cherrypy/lib/profiler.py
@@ -32,6 +32,15 @@ module from the command line, it will call serve() for you.
"""
+# Make profiler output more readable by adding __init__ modules' parents.
+d... | Made profiler output more readable by prepending __init__.py modules' parent folders. | py |
diff --git a/mockupdb/__init__.py b/mockupdb/__init__.py
index <HASH>..<HASH> 100755
--- a/mockupdb/__init__.py
+++ b/mockupdb/__init__.py
@@ -1046,7 +1046,7 @@ class MockupDB(object):
>>> future = go(client.db.command, 'foo')
>>> s.got('foo')
True
- >>> s.got(Command('foo'))
+ ... | Test that ".$cmd" is trimmed from command namespace. | py |
diff --git a/src/kba/pipeline/run.py b/src/kba/pipeline/run.py
index <HASH>..<HASH> 100644
--- a/src/kba/pipeline/run.py
+++ b/src/kba/pipeline/run.py
@@ -8,7 +8,7 @@ Copyright 2012 Diffeo, Inc.
'''
import os
import sys
-from . import Pipeline
+from _pipeline import Pipeline
def make_absolute_paths( config ):
... | converting "from . import" to "from _pipeline import" | py |
diff --git a/nrrd.py b/nrrd.py
index <HASH>..<HASH> 100644
--- a/nrrd.py
+++ b/nrrd.py
@@ -28,20 +28,6 @@ def _convert_to_reproducible_floatingpoint( x ):
value = str(x)
return value
-def _nrrd_read_header_lines(nrrdfile):
- """Read header lines from a .nrrd/.nhdr file."""
- line = nrrdfile.readli... | ENH: Removed unused function from file | py |
diff --git a/crosspm/adapters/artifactory.py b/crosspm/adapters/artifactory.py
index <HASH>..<HASH> 100644
--- a/crosspm/adapters/artifactory.py
+++ b/crosspm/adapters/artifactory.py
@@ -144,7 +144,7 @@ class Adapter(BaseAdapter):
_package.find_dependencies(_deps_file)
elif... | bugfix2: package without dependencies file + dependencies file name config not set caused an error. | py |
diff --git a/parsl/dataflow/usage_tracking/usage.py b/parsl/dataflow/usage_tracking/usage.py
index <HASH>..<HASH> 100644
--- a/parsl/dataflow/usage_tracking/usage.py
+++ b/parsl/dataflow/usage_tracking/usage.py
@@ -6,8 +6,10 @@ import getpass
import json
import logging
import socket
+import sys
from parsl.dataflo... | Adding version info from parsl and python to usage tracking. Fixes issue #<I> | py |
diff --git a/plenum/test/zstack_tests/test_zstack_reconnection.py b/plenum/test/zstack_tests/test_zstack_reconnection.py
index <HASH>..<HASH> 100644
--- a/plenum/test/zstack_tests/test_zstack_reconnection.py
+++ b/plenum/test/zstack_tests/test_zstack_reconnection.py
@@ -45,9 +45,9 @@ def testZStackNodeReconnection(tcon... | changing timeouts so the diconnect check happens twice | py |
diff --git a/awacs/helpers/trust.py b/awacs/helpers/trust.py
index <HASH>..<HASH> 100644
--- a/awacs/helpers/trust.py
+++ b/awacs/helpers/trust.py
@@ -23,3 +23,20 @@ def get_default_assumerole_policy(region=''):
]
)
return policy
+
+
+def get_ecs_assumerole_policy(region=''):
+ """ Helper function... | Add new ECS assume role trust policy This is used by the ecsServiceRole to allow ECS to assume role to setup things like ELBs for services. | py |
diff --git a/python_modules/dagit/dagit/webserver.py b/python_modules/dagit/dagit/webserver.py
index <HASH>..<HASH> 100644
--- a/python_modules/dagit/dagit/webserver.py
+++ b/python_modules/dagit/dagit/webserver.py
@@ -77,7 +77,6 @@ class DagitWebserver(GraphQLServer, Generic[T_IWorkspaceProcessContext]):
def make... | [dagit] Remove clear-site-data header (#<I>) ### Summary & Motivation We don't really need this, there's useful stuff in our site data. ### How I Tested These Changes Run dagit, verify that the header is not included in the response. | py |
diff --git a/picoweb/__init__.py b/picoweb/__init__.py
index <HASH>..<HASH> 100644
--- a/picoweb/__init__.py
+++ b/picoweb/__init__.py
@@ -57,7 +57,7 @@ class HTTPRequest:
class WebApp:
def __init__(self, routes):
- self.routes = routes
+ self.url_map = routes
def _handle(self, reader, writ... | WebApp: Renaming app's attribute to .url_map, for compat with Flask. It's unclear how much real compatibility this will give, but at least naming will be consistent. | py |
diff --git a/pages/models.py b/pages/models.py
index <HASH>..<HASH> 100644
--- a/pages/models.py
+++ b/pages/models.py
@@ -456,6 +456,8 @@ class Page(MPTTModel):
"""Return content of each placeholder in each language."""
out = []
for p in get_placeholders(self.get_template()):
+ ... | fix: don't doubly-export title or slug if they appear as placeholders | py |
diff --git a/certsuite/harness.py b/certsuite/harness.py
index <HASH>..<HASH> 100644
--- a/certsuite/harness.py
+++ b/certsuite/harness.py
@@ -172,7 +172,7 @@ class Device(object):
return self
def __exit__(self, *args, **kwargs):
- # Original settings are restarted by Device.restore
+ # Or... | fixup! Bug <I>: Disable screen lock, display sleep, and switch on screen in super harness | py |
diff --git a/python/buildgeocodingdata.py b/python/buildgeocodingdata.py
index <HASH>..<HASH> 100755
--- a/python/buildgeocodingdata.py
+++ b/python/buildgeocodingdata.py
@@ -119,7 +119,7 @@ def output_geodata_code(geodata, outfilename):
for prefix in sorted(geodata.keys()):
if len(prefix) > longe... | Remove unnecessary spaces (reduces generated file size by 5%) | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -33,7 +33,7 @@ setup(
python_requires='>=3.5, <4',
extras_require={
'tester': [
- "eth-tester[py-evm]==0.1.0-beta.26",
+ "eth-tester[py-evm]==0.1.0-beta.29",
"py-geth>=2.0.... | upgrade eth-tester to beta <I> | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ setup(
url='https://github.com/amueller/word_cloud',
description='A little word cloud generator',
license='MIT',
- ext_modules=[Extension("wordcloud/query_integral_image",
+ ext_modules=[Exten... | hopefully fixing cython built | py |
diff --git a/Lib/fontbakery/configuration.py b/Lib/fontbakery/configuration.py
index <HASH>..<HASH> 100644
--- a/Lib/fontbakery/configuration.py
+++ b/Lib/fontbakery/configuration.py
@@ -5,7 +5,10 @@ import yaml
class Configuration(dict):
def __init__(self, **kwargs):
super().__init__(kwargs)
- fo... | Default "full_lists" to None on the Configuration class (fixes #<I>) | py |
diff --git a/mailer/models.py b/mailer/models.py
index <HASH>..<HASH> 100644
--- a/mailer/models.py
+++ b/mailer/models.py
@@ -1,3 +1,4 @@
+import base64
import logging
import pickle
@@ -84,13 +85,22 @@ class Message(models.Model):
return False
def _get_email(self):
- if self.message_... | Fixed bug with unicode data in email causing SQL failures | py |
diff --git a/faker/providers/person/uk_UA/__init__.py b/faker/providers/person/uk_UA/__init__.py
index <HASH>..<HASH> 100644
--- a/faker/providers/person/uk_UA/__init__.py
+++ b/faker/providers/person/uk_UA/__init__.py
@@ -1,15 +1,24 @@
# coding=utf-8
from __future__ import unicode_literals
+
+from collections import... | Differentiate Ukrainian female and male names | py |
diff --git a/examples/basic_usage.py b/examples/basic_usage.py
index <HASH>..<HASH> 100644
--- a/examples/basic_usage.py
+++ b/examples/basic_usage.py
@@ -22,6 +22,4 @@ algo = SVD()
# Evaluate performances of our algorithm on the dataset.
perf = evaluate(algo, data, measures=['RMSE', 'MAE'])
-print(algo.qi)
-
prin... | Removed useless line in basic_usage.py | py |
diff --git a/gct.py b/gct.py
index <HASH>..<HASH> 100644
--- a/gct.py
+++ b/gct.py
@@ -47,8 +47,17 @@ class GCT(object):
raise ImportError('pandas is required to work with a GCT file in a DataFrame.' +
' Try: pip install pandas')
+ # Check to see if gct_io if a GPFil... | Add handling of GPFile objects in gct.py | py |
diff --git a/ckanutils/api.py b/ckanutils/api.py
index <HASH>..<HASH> 100644
--- a/ckanutils/api.py
+++ b/ckanutils/api.py
@@ -318,7 +318,12 @@ class CKAN(object):
print('Downloading resource %s...' % resource_id)
if p.isdir(filepath):
- filepath = p.join(filepath, p.basename(url))
+ ... | Properly assign file names for google doc exports | py |
diff --git a/tests/utils/notebook_test/__init__.py b/tests/utils/notebook_test/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/utils/notebook_test/__init__.py
+++ b/tests/utils/notebook_test/__init__.py
@@ -111,7 +111,7 @@ def run_notebook(notebook, notebook_dir, kernel=None, no_cache=False, temp_dir='
... | Fix Nightly Tests for Binaries (#<I>) * copy missing requirements file * not treating numpy warnings as errors * updating six package version * Revert "updating six package version" This reverts commit <I>c5d<I>aace<I>f7bb6f<I>. | py |
diff --git a/doc/test_messages_documentation.py b/doc/test_messages_documentation.py
index <HASH>..<HASH> 100644
--- a/doc/test_messages_documentation.py
+++ b/doc/test_messages_documentation.py
@@ -156,6 +156,8 @@ class LintModuleTest:
assert expected_messages == actual_messages
def assert_message_good... | [test documentation] Bypass the case where everything went fine We're doing that a lot, it adds up | py |
diff --git a/nanomath/nanomath.py b/nanomath/nanomath.py
index <HASH>..<HASH> 100644
--- a/nanomath/nanomath.py
+++ b/nanomath/nanomath.py
@@ -27,6 +27,11 @@ from math import log
class Stats(object):
def __init__(self, df):
+ if len(df) < 5:
+ sys.stderr.write("\n\nWARNING: less than 5 reads i... | print a warning with datasets that are too small intended for cases like <URL> | py |
diff --git a/tests/is_element_present.py b/tests/is_element_present.py
index <HASH>..<HASH> 100644
--- a/tests/is_element_present.py
+++ b/tests/is_element_present.py
@@ -1,6 +1,7 @@
+from nose.tools import assert_true, assert_false, assert_equals
+
import warnings
-from nose.tools import assert_true, assert_false, ... | fixed pep8 issues in test/is_element_present.py | py |
diff --git a/master/buildbot/worker/docker.py b/master/buildbot/worker/docker.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/worker/docker.py
+++ b/master/buildbot/worker/docker.py
@@ -292,7 +292,7 @@ class DockerLatentWorker(CompatibleLatentWorkerMixin,
host_conf = self.hostconfig.copy()
host_c... | allow user to set init in host_conf for docker | py |
diff --git a/superset/db_engine_specs.py b/superset/db_engine_specs.py
index <HASH>..<HASH> 100644
--- a/superset/db_engine_specs.py
+++ b/superset/db_engine_specs.py
@@ -139,6 +139,9 @@ class MySQLEngineSpec(BaseEngineSpec):
"+ INTERVAL QUARTER({col}) QUARTER - INTERVAL 1 QUARTER"),
Grain("year... | Week beginning Monday time grain for MySQL (#<I>) | py |
diff --git a/smartcard/pcsc/PCSCCardConnection.py b/smartcard/pcsc/PCSCCardConnection.py
index <HASH>..<HASH> 100644
--- a/smartcard/pcsc/PCSCCardConnection.py
+++ b/smartcard/pcsc/PCSCCardConnection.py
@@ -126,10 +126,17 @@ class PCSCCardConnection(CardConnection):
'Unable to connect with protocol... | PCSCCardConnection: special case for T0 | T1 When mode=SCARD_SHARE_DIRECT then no protocol is negociated with the card and dwActiveProtocol is set to SCARD_PROTOCOL_T0 | SCARD_PROTOCOL_T1. And "CardConnection.TO or T1_protocol" is not a valid value. | py |
diff --git a/twitcher/owsproxy.py b/twitcher/owsproxy.py
index <HASH>..<HASH> 100644
--- a/twitcher/owsproxy.py
+++ b/twitcher/owsproxy.py
@@ -31,6 +31,8 @@ allowed_content_types = (
"image/png;mode=32bit",
"image/gif", # GIF
"image/jpeg", # JPEG
+ ... | fixed content value ... added json content-type | py |
diff --git a/hex/utils/asc2hasc.py b/hex/utils/asc2hasc.py
index <HASH>..<HASH> 100644
--- a/hex/utils/asc2hasc.py
+++ b/hex/utils/asc2hasc.py
@@ -65,11 +65,11 @@ print("Calcs:" +
hexGrid = HASC()
hexGrid.init(hexCols, hexRows, esriGrid.xll, esriGrid.yll, hexSide, esriGrid.nodata)
-for j in range(hexGrid.ncols):
- ... | Fixed indexing in main loop in ASC2HASC. | py |
diff --git a/kurt/fixed_objects.py b/kurt/fixed_objects.py
index <HASH>..<HASH> 100644
--- a/kurt/fixed_objects.py
+++ b/kurt/fixed_objects.py
@@ -325,6 +325,9 @@ class Point(FixedObject):
def value(self):
return (self.x, self.y)
+ def __iter__(self):
+ return iter(self.value)
+
d... | Make Point iterable so (x, y) = point works | py |
diff --git a/flask_io/permissions.py b/flask_io/permissions.py
index <HASH>..<HASH> 100644
--- a/flask_io/permissions.py
+++ b/flask_io/permissions.py
@@ -16,10 +16,3 @@ class Permission(metaclass=ABCMeta):
Return `True` if permission is granted, `False` otherwise.
"""
pass
-
- @abstractme... | Remove method has_object_permission | py |
diff --git a/salt/master.py b/salt/master.py
index <HASH>..<HASH> 100644
--- a/salt/master.py
+++ b/salt/master.py
@@ -1185,7 +1185,7 @@ class AESFuncs(object):
if any(key not in load for key in ('return', 'jid', 'id')):
return None
# if we have a load, save it
- if 'load' in load:... | pass thru fun and fun_args if they exist | py |
diff --git a/netmiko/__init__.py b/netmiko/__init__.py
index <HASH>..<HASH> 100644
--- a/netmiko/__init__.py
+++ b/netmiko/__init__.py
@@ -31,7 +31,7 @@ from netmiko.scp_functions import file_transfer, progress_bar
# Alternate naming
Netmiko = ConnectHandler
-__version__ = "4.0.1a1"
+__version__ = "4.1.0"
__all__ ... | Roll version to <I> (#<I>) | py |
diff --git a/artifactory.py b/artifactory.py
index <HASH>..<HASH> 100755
--- a/artifactory.py
+++ b/artifactory.py
@@ -838,5 +838,6 @@ class ArtifactoryPath(pathlib.Path, PureArtifactoryPath):
yield top, dirs, nondirs
for name in dirs:
new_path = top.joinpath(top, name)
- yield... | Use Python 2.x syntax (instead of yield from) for compatibility. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -50,7 +50,7 @@ try:
"sphinx-me >= 0.1.2",
"unidecode",
"django-email-extras >= 0.2",
- "django >= 1.8, < 1.11",
+ "django >= 1.8",
"future <= 0.15.0",
... | Removed upper Django requirement from setup.py | py |
diff --git a/skew/resources/aws/s3.py b/skew/resources/aws/s3.py
index <HASH>..<HASH> 100644
--- a/skew/resources/aws/s3.py
+++ b/skew/resources/aws/s3.py
@@ -13,10 +13,32 @@
import jmespath
from skew.resources.aws import AWSResource
+import skew.awsclient
class Bucket(AWSResource):
+ @classmethod
+ de... | When enumerating S3 buckets for a given region, only include the bucket if it's location constraint is set to that region. This, unfortunately, requires an API call for each bucket but I can't think of a better way to fix this. Fixes #<I>. | py |
diff --git a/simpleai/search/local.py b/simpleai/search/local.py
index <HASH>..<HASH> 100644
--- a/simpleai/search/local.py
+++ b/simpleai/search/local.py
@@ -47,12 +47,15 @@ def _first_expander(fringe, iteration, viewer):
'''
Expander that expands only the first node on the fringe.
'''
- if viewer: v... | Fixed problem with first_expander and the fringe references | py |
diff --git a/formats/folia.py b/formats/folia.py
index <HASH>..<HASH> 100644
--- a/formats/folia.py
+++ b/formats/folia.py
@@ -6374,9 +6374,12 @@ def relaxng(filename=None):
name='metadata',
#ns=NSFOLIA,
),
- E.oneOrMore(
+ E.zeroO... | RelaxNG schema fix, root element speech was missing | py |
diff --git a/bedup/tracking.py b/bedup/tracking.py
index <HASH>..<HASH> 100644
--- a/bedup/tracking.py
+++ b/bedup/tracking.py
@@ -364,7 +364,7 @@ def dedup_tracked(sess, volset, tt):
tt.format('{elapsed} Extent map {comm2:counter}/{comm2:total}')
tt.set_total(comm2=le)
for comm2 in query:
- ... | Use precomputed commonality counts whenever possible. | py |
diff --git a/pystatsd/statsd.py b/pystatsd/statsd.py
index <HASH>..<HASH> 100644
--- a/pystatsd/statsd.py
+++ b/pystatsd/statsd.py
@@ -22,6 +22,7 @@ class Client(object):
self.host = host
self.port = port
self.log = logging.getLogger("pystatsd.client")
+ self.udp_sock = socket.socket(s... | create udp socket at initialization time, instead of creating a new socket on every send. | py |
diff --git a/jeni.py b/jeni.py
index <HASH>..<HASH> 100644
--- a/jeni.py
+++ b/jeni.py
@@ -4,7 +4,7 @@
"""``jeni`` injects annotated dependencies"""
-__version__ = '0.3.7'
+__version__ = '0.3.8-dev'
import abc
import collections | HEAD is <I>. | py |
diff --git a/trimesh/scene/scene.py b/trimesh/scene/scene.py
index <HASH>..<HASH> 100644
--- a/trimesh/scene/scene.py
+++ b/trimesh/scene/scene.py
@@ -478,7 +478,7 @@ class Scene:
Parameters
-----------
- resultion: (2,) int, resolution to render image
+ resolution: (2,) int, resolutio... | Fixed doc typo in trimesh/scene/scene.py | py |
diff --git a/_pytest/terminal.py b/_pytest/terminal.py
index <HASH>..<HASH> 100644
--- a/_pytest/terminal.py
+++ b/_pytest/terminal.py
@@ -22,7 +22,7 @@ def pytest_addoption(parser):
group._addoption('-r',
action="store", dest="reportchars", default=None, metavar="chars",
help="show extra test ... | (w)warnings -> (w)pytest-warnings in "-r chars" help | py |
diff --git a/tests/func/test_api.py b/tests/func/test_api.py
index <HASH>..<HASH> 100644
--- a/tests/func/test_api.py
+++ b/tests/func/test_api.py
@@ -1,5 +1,3 @@
-from __future__ import unicode_literals
-
import os
import shutil
import copy | py2: fix problem with ruamel.yaml and unicode | py |
diff --git a/ibis/backends/tests/base.py b/ibis/backends/tests/base.py
index <HASH>..<HASH> 100644
--- a/ibis/backends/tests/base.py
+++ b/ibis/backends/tests/base.py
@@ -186,9 +186,11 @@ def get_common_spark_testing_client(data_directory, connect):
import pyspark.sql.types as pt
from pyspark.sql import Spark... | CI: Fixing Spark tests by settings the ip address to bind (#<I>) | py |
diff --git a/ajax/endpoints.py b/ajax/endpoints.py
index <HASH>..<HASH> 100644
--- a/ajax/endpoints.py
+++ b/ajax/endpoints.py
@@ -11,12 +11,6 @@ from ajax.exceptions import AJAXError, AlreadyRegistered, NotRegistered, \
class BaseEndpoint(object):
- def __init__(self, application, model, method, pk):
- ... | Rejiggered class hierarchy. | py |
diff --git a/ait/core/val.py b/ait/core/val.py
index <HASH>..<HASH> 100644
--- a/ait/core/val.py
+++ b/ait/core/val.py
@@ -388,7 +388,7 @@ class Validator(object):
# Loop through the errors (if any) and set valid = False if any are found
# Display the error message
- f... | Issue #<I> - Fix validation error message sorting issue Remove sorting of validation error message to resolve TypeError. Note, we could implementation our own exception here and address this issue but I haven't noticed a problem with not sorting the messages. Resolve #<I> | py |
diff --git a/uncompyle6/semantics/transform.py b/uncompyle6/semantics/transform.py
index <HASH>..<HASH> 100644
--- a/uncompyle6/semantics/transform.py
+++ b/uncompyle6/semantics/transform.py
@@ -115,11 +115,14 @@ class TreeTransform(GenericASTTraversal, object):
call = expr[0]
... | Guard again improper assert transform... we see this happen in getheader() from <I>/lib/python<I>/http/client.pyc | py |
diff --git a/tests/test_web_functional.py b/tests/test_web_functional.py
index <HASH>..<HASH> 100644
--- a/tests/test_web_functional.py
+++ b/tests/test_web_functional.py
@@ -186,8 +186,15 @@ class TestWebFunctional(unittest.TestCase):
def handler(request):
data = yield from request.post()
... | updated test case as per asvetlov feedback | py |
diff --git a/lib/retester/retester.py b/lib/retester/retester.py
index <HASH>..<HASH> 100644
--- a/lib/retester/retester.py
+++ b/lib/retester/retester.py
@@ -79,7 +79,7 @@ class Result(object):
assert result in ["pass", "fail"]
- self.running_time = start_time - time.clock()
+ self.r... | Made retester running_time a positive value instead of negative... | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -48,7 +48,7 @@ setup(
'Programming Language :: Python :: 3.4'
],
test_suite='nolds.test_measures',
- install_requires=['numpy'],
+ install_requires=['numpy >=1.5', 'future >=0.8'],
extras_require=... | uses concrete version numbers for requires (hopefully they are correct) | py |
diff --git a/spyderlib/plugins/ipythonconsole.py b/spyderlib/plugins/ipythonconsole.py
index <HASH>..<HASH> 100644
--- a/spyderlib/plugins/ipythonconsole.py
+++ b/spyderlib/plugins/ipythonconsole.py
@@ -832,6 +832,7 @@ class IPythonConsole(SpyderPluginWidget):
kernel_manager = self.ipython_app.create_kernel_ma... | IPython Console: Focus client again after kernel restart | py |
diff --git a/workbench/workers/rekall_adapter/rekall_adapter.py b/workbench/workers/rekall_adapter/rekall_adapter.py
index <HASH>..<HASH> 100644
--- a/workbench/workers/rekall_adapter/rekall_adapter.py
+++ b/workbench/workers/rekall_adapter/rekall_adapter.py
@@ -204,8 +204,6 @@ class WorkbenchRenderer(BaseRenderer):
... | okay starting to unmark the rekall workers; going to dig into WTF is happening with test crashes on Travis | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -78,6 +78,7 @@ additions for Django projects. See the project page for more information:
license = 'New BSD License',
platforms = ['any'],
packages = packages,
+ cmdclass = cmdclasses,
data_files = data_... | Added cmdclass to the setup parameters to fix the data_files installation error. | py |
diff --git a/cycy/repl.py b/cycy/repl.py
index <HASH>..<HASH> 100644
--- a/cycy/repl.py
+++ b/cycy/repl.py
@@ -47,12 +47,25 @@ class REPL(object):
elif not repl_input.strip():
continue
- if repl_input.startswith("dump "):
- repl_input = repl_input[5:]
- ... | Add ##compile, which doesn't work and probably has the wrong name, but... | py |
diff --git a/salt/returners/rawfile_json.py b/salt/returners/rawfile_json.py
index <HASH>..<HASH> 100644
--- a/salt/returners/rawfile_json.py
+++ b/salt/returners/rawfile_json.py
@@ -55,7 +55,7 @@ def returner(ret):
'''
Write the return data to a file on the minion.
'''
- opts = _get_options({}) # Pa... | Fix applying of attributes for returner rawfile_json Arguments are not getting applied to the rawfile_json returner. For example if you specify an alternate filename for the output the default "/var/log/salt/events" is always used. Passing the `ret` to `_get_options(ret) resolve this. | py |
diff --git a/django_rq/tests/tests.py b/django_rq/tests/tests.py
index <HASH>..<HASH> 100644
--- a/django_rq/tests/tests.py
+++ b/django_rq/tests/tests.py
@@ -15,7 +15,7 @@ from django_rq.workers import get_worker
try:
from rq_scheduler import Scheduler
- from .queues import get_scheduler
+ from ..queues ... | Fixed an import error that causes scheduler tests to not run. | py |
diff --git a/hwt/simulator/simTestCase.py b/hwt/simulator/simTestCase.py
index <HASH>..<HASH> 100644
--- a/hwt/simulator/simTestCase.py
+++ b/hwt/simulator/simTestCase.py
@@ -15,9 +15,13 @@ from hwt.simulator.shortcuts import simPrepare
from hwt.simulator.simSignal import SimSignal
from hwt.simulator.utils import age... | assertValSequenceEqual for ArrayValues as well | py |
diff --git a/src/jukeboxmaya/mayaplugins/jbscene.py b/src/jukeboxmaya/mayaplugins/jbscene.py
index <HASH>..<HASH> 100644
--- a/src/jukeboxmaya/mayaplugins/jbscene.py
+++ b/src/jukeboxmaya/mayaplugins/jbscene.py
@@ -57,7 +57,7 @@ def get_current_scene_node():
:rtype: str | None
:raises: None
"""
- c = ... | Fix get current scene node No uses unique dagpaths | py |
diff --git a/utils.py b/utils.py
index <HASH>..<HASH> 100644
--- a/utils.py
+++ b/utils.py
@@ -32,7 +32,7 @@ import logging
import shlex
import six
from flask import has_app_context, current_app
-from functools import partial
+from functools import partial, wraps
from werkzeug.utils import import_string, find_modul... | global: toposort utility addition * NEW Adds decorator `toposort_depends` for specifying dependencies and `toposort_send` for sending signal to receivers in topological order. | py |
diff --git a/pyang/translators/yang.py b/pyang/translators/yang.py
index <HASH>..<HASH> 100644
--- a/pyang/translators/yang.py
+++ b/pyang/translators/yang.py
@@ -106,6 +106,10 @@ _kwd_class = {
'feature': 'defs',
'extension': 'defs',
'_comment': 'comment',
+ 'augment': 'augment',
+ 'rpc': 'rpc',
+... | fix whitespace between data defs and augment/rpc/notif etc | py |
diff --git a/hatemile/util/beautifulsoup/beautifulsouphtmldomparser.py b/hatemile/util/beautifulsoup/beautifulsouphtmldomparser.py
index <HASH>..<HASH> 100644
--- a/hatemile/util/beautifulsoup/beautifulsouphtmldomparser.py
+++ b/hatemile/util/beautifulsoup/beautifulsouphtmldomparser.py
@@ -101,16 +101,16 @@ class Beaut... | :bug: Fix error finding the child of results | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,6 +16,7 @@ setup(
description="Python REPL build on top of prompt_toolkit",
long_description=long_description,
packages=find_packages("."),
+ package_data={"ptpython": ["py.typed"]},
install_requires... | Added py.typed to package_data in setup.py | py |
diff --git a/source/rafcon/gui/config.py b/source/rafcon/gui/config.py
index <HASH>..<HASH> 100644
--- a/source/rafcon/gui/config.py
+++ b/source/rafcon/gui/config.py
@@ -64,6 +64,9 @@ class GuiConfig(ObservableConfig):
config_file = CONFIG_FILE
super(GuiConfig, self).load(config_file, path)
... | fix(gui_config): Configure GTK and colors after loading a new config Fixes the issue that the theme cannot be set | py |
diff --git a/test.py b/test.py
index <HASH>..<HASH> 100755
--- a/test.py
+++ b/test.py
@@ -545,6 +545,9 @@ class SquareSetTestCase(unittest.TestCase):
self.assertFalse(a1 == b1)
self.assertFalse(a2 == b2)
+ self.assertEqual(chess.SquareSet(chess.BB_ALL), chess.BB_ALL)
+ self.assertEqua... | Test: Allow comparing square sets to ints | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,7 @@ from setuptools import setup
setup(
name='monolithe',
- packages=['monolithe', 'monolithe.lib', 'monolithe.specsvalidator'],
+ packages=['monolithe', 'monolithe.lib', 'monolithe.generators', 'monolit... | Add new package names in setup.py | py |
diff --git a/docker/rest/settings.py b/docker/rest/settings.py
index <HASH>..<HASH> 100644
--- a/docker/rest/settings.py
+++ b/docker/rest/settings.py
@@ -27,7 +27,7 @@ KAFKA_CONSUMER_AUTO_COMMIT_ENABLE = True
KAFKA_CONSUMER_FETCH_MESSAGE_MAX_BYTES = 10 * 1024 * 1024 # 10MB
KAFKA_CONSUMER_SLEEP_TIME = 1
-KAFKA_INC... | Fix REST-Kafka topic variable name in docker settings.py (#<I>) | py |
diff --git a/tests/test_manhole.py b/tests/test_manhole.py
index <HASH>..<HASH> 100644
--- a/tests/test_manhole.py
+++ b/tests/test_manhole.py
@@ -1,5 +1,6 @@
import unittest
import os
+import select
import sys
import subprocess
import traceback
@@ -213,11 +214,13 @@ class ManholeTestCase(unittest.TestCase):
... | Add a test for graceful disconnect. | py |
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py b/ryu/ofproto/ofproto_v1_3_parser.py
index <HASH>..<HASH> 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -1405,9 +1405,9 @@ class OFPPortStatus(MsgBase):
def parser(cls, datapath, version, msg_type, msg_len, xid, buf):
... | of<I>: fix OFPPortStatus parser A correction same as OF<I>. | py |
diff --git a/ipyrad/assemble/clustmap_across.py b/ipyrad/assemble/clustmap_across.py
index <HASH>..<HASH> 100644
--- a/ipyrad/assemble/clustmap_across.py
+++ b/ipyrad/assemble/clustmap_across.py
@@ -310,6 +310,7 @@ class Step6:
# check for errors
print("")
+ rasync.wait()
if not rasy... | wait for vsearch cluster to finish | py |
diff --git a/crispy_forms/layout.py b/crispy_forms/layout.py
index <HASH>..<HASH> 100644
--- a/crispy_forms/layout.py
+++ b/crispy_forms/layout.py
@@ -171,7 +171,7 @@ class BaseInput(object):
def __init__(self, name, value, **kwargs):
self.name = name
self.value = value
- self.id = kwargs.... | Pop "css_id" to stop it being added as a "css-id" attribute | py |
diff --git a/abl/vpath/base/simpleuri.py b/abl/vpath/base/simpleuri.py
index <HASH>..<HASH> 100644
--- a/abl/vpath/base/simpleuri.py
+++ b/abl/vpath/base/simpleuri.py
@@ -91,7 +91,7 @@ class UriParse(object):
def _init_other_uri(self):
"init code for non http uri"
uri, querysep, rest = self.uri.p... | only parse query string if "=" is expected | py |
diff --git a/msvccompiler.py b/msvccompiler.py
index <HASH>..<HASH> 100644
--- a/msvccompiler.py
+++ b/msvccompiler.py
@@ -20,10 +20,7 @@ from distutils.ccompiler import \
_can_read_reg = 0
try:
- try:
- import _winreg
- except ImportError:
- import winreg # for pre-2000/06/29 ... | Simplify the registry-module-finding code: _winreg or win<I>api/win<I>con. This'll work fine with <I> or <I>, but is less than ideal for <I>a1/a2. But the code to accomodate <I>a1/a2 was released with Distutils <I>, so it can go away now. | py |
diff --git a/datajoint/expression.py b/datajoint/expression.py
index <HASH>..<HASH> 100644
--- a/datajoint/expression.py
+++ b/datajoint/expression.py
@@ -313,7 +313,7 @@ class QueryExpression:
Each attribute name can only be used once.
"""
# new attributes in parentheses are included again w... | Removed $ character from regex. | py |
diff --git a/tests/integration/spm/test_repo.py b/tests/integration/spm/test_repo.py
index <HASH>..<HASH> 100644
--- a/tests/integration/spm/test_repo.py
+++ b/tests/integration/spm/test_repo.py
@@ -1,8 +1,6 @@
-# -*- coding: utf-8 -*-
"""
Tests for the spm repo
"""
-from __future__ import absolute_import, print_fun... | Drop Py2 and six on tests/integration/spm/test_repo.py | py |
diff --git a/cbamf/comp/ilms.py b/cbamf/comp/ilms.py
index <HASH>..<HASH> 100644
--- a/cbamf/comp/ilms.py
+++ b/cbamf/comp/ilms.py
@@ -27,8 +27,12 @@ class Polynomial3D(object):
return product(*(xrange(o) for o in self.order))
def _setup_rvecs(self):
+ # normalize all sizes to a strict upper boun... | fixing the max size of the illumiation for comparison across images | py |
diff --git a/bika/lims/validators.py b/bika/lims/validators.py
index <HASH>..<HASH> 100644
--- a/bika/lims/validators.py
+++ b/bika/lims/validators.py
@@ -32,6 +32,7 @@ class UniqueFieldValidator:
for item in aq_parent(instance).objectValues():
if hasattr(item, 'UID') and item.UID() != instance.... | Do not assume all children of a content type are from the same type | py |
diff --git a/slack_cleaner/cli.py b/slack_cleaner/cli.py
index <HASH>..<HASH> 100644
--- a/slack_cleaner/cli.py
+++ b/slack_cleaner/cli.py
@@ -168,6 +168,9 @@ def remove_files(time_range, user_id=None, types=None):
latest = time_range.end_ts
page = 1
+ if user_id == -1:
+ user_id = None
+
has... | Add check for the wildcard user argument for files | py |
diff --git a/setuptools/command/install_scripts.py b/setuptools/command/install_scripts.py
index <HASH>..<HASH> 100755
--- a/setuptools/command/install_scripts.py
+++ b/setuptools/command/install_scripts.py
@@ -31,13 +31,13 @@ class install_scripts(orig.install_scripts):
)
bs_cmd = self.get_finalized_... | Defer resolution of the CommandSpec and do it exactly once. | py |
diff --git a/gnsq/reader.py b/gnsq/reader.py
index <HASH>..<HASH> 100644
--- a/gnsq/reader.py
+++ b/gnsq/reader.py
@@ -85,7 +85,7 @@ class Reader(object):
multiple readers are running
:param lookupd_poll_jitter: the maximum fractional amount of jitter to add
- to the lookupd pool loop. This helps... | fix typo "pool" in `Reader` doc pool -> poll | py |
diff --git a/iapws/iapws08.py b/iapws/iapws08.py
index <HASH>..<HASH> 100644
--- a/iapws/iapws08.py
+++ b/iapws/iapws08.py
@@ -662,7 +662,7 @@ def _Tension_SeaWater(T, S):
if S < 0 or S > 0.131:
raise NotImplementedError("Incoming out of bound")
else:
- raise NotImplementedError("I... | Correct flake8 E<I> complaint. ./iapws/iapws<I>.py:<I>:<I>: E<I> over-indented | py |
diff --git a/bananas/admin.py b/bananas/admin.py
index <HASH>..<HASH> 100644
--- a/bananas/admin.py
+++ b/bananas/admin.py
@@ -260,7 +260,7 @@ class AdminView(View):
view = self.__class__.as_view(
action=view.__name__,
admin=self.admin,
- **initkwargs,
+ **initkw... | Remove trailing comma after kwargs (SyntaxError for py<I>) | py |
diff --git a/salt/states/file.py b/salt/states/file.py
index <HASH>..<HASH> 100644
--- a/salt/states/file.py
+++ b/salt/states/file.py
@@ -1529,7 +1529,7 @@ def recurse(name,
removed = _clean_dir(name, list(keep))
if removed:
ret['changes']['removed'] = removed
- ret['comment']... | Fixing operand mismatch between dict and string in file.recurse for return comment when a File is cleaned from a directory on recurse | py |
diff --git a/master/buildbot/test/unit/test_reporter_gitlab.py b/master/buildbot/test/unit/test_reporter_gitlab.py
index <HASH>..<HASH> 100644
--- a/master/buildbot/test/unit/test_reporter_gitlab.py
+++ b/master/buildbot/test/unit/test_reporter_gitlab.py
@@ -132,8 +132,8 @@ class TestGitLabStatusPush(unittest.TestCase,... | fix escape sequence for py3 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.