diff stringlengths 139 3.65k | message stringlengths 8 627 | diff_languages stringclasses 1
value |
|---|---|---|
diff --git a/maid/resources/asg.py b/maid/resources/asg.py
index <HASH>..<HASH> 100644
--- a/maid/resources/asg.py
+++ b/maid/resources/asg.py
@@ -329,8 +329,13 @@ class Suspend(BaseAction):
asg_client.suspend_processes(
AutoScalingGroupName=asg['AutoScalingGroupName'])
ec2_client = sessi... | if asg instances are spinning, just continue on to next | py |
diff --git a/bcbio/variation/recalibrate.py b/bcbio/variation/recalibrate.py
index <HASH>..<HASH> 100644
--- a/bcbio/variation/recalibrate.py
+++ b/bcbio/variation/recalibrate.py
@@ -25,6 +25,9 @@ def prep_recal(data):
ref_file = data["sam_ref"]
config = data["config"]
dbsnp_file = tz.get_in(... | Skip GATK BaseRecalibration if no file of known variants is found. | py |
diff --git a/tests/integration/shell/matcher.py b/tests/integration/shell/matcher.py
index <HASH>..<HASH> 100644
--- a/tests/integration/shell/matcher.py
+++ b/tests/integration/shell/matcher.py
@@ -150,6 +150,15 @@ class MatchTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn):
data = self.run_... | Include a test case for the previous "Don't assume!" commit. | py |
diff --git a/galpy/orbit_src/OrbitTop.py b/galpy/orbit_src/OrbitTop.py
index <HASH>..<HASH> 100644
--- a/galpy/orbit_src/OrbitTop.py
+++ b/galpy/orbit_src/OrbitTop.py
@@ -1909,8 +1909,10 @@ class _fakeInterp(object):
def __init__(self,x):
self.x= x
def __call__(self,t):
- if t == 0.:
+ ... | Better handling of input to fakeInterp, see #<I> | py |
diff --git a/djoauth2/authorization.py b/djoauth2/authorization.py
index <HASH>..<HASH> 100644
--- a/djoauth2/authorization.py
+++ b/djoauth2/authorization.py
@@ -4,7 +4,10 @@ from urlparse import urlparse
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect
-from d... | In the case of Django < <I>, fix broken import. | py |
diff --git a/src/metpy/calc/tools.py b/src/metpy/calc/tools.py
index <HASH>..<HASH> 100644
--- a/src/metpy/calc/tools.py
+++ b/src/metpy/calc/tools.py
@@ -5,6 +5,7 @@
import functools
from inspect import signature
from operator import itemgetter
+import warnings
import numpy as np
from numpy.core.numeric import ... | Fixup removed warnings import from mismatched merges | py |
diff --git a/lexrank/settings.py b/lexrank/settings.py
index <HASH>..<HASH> 100644
--- a/lexrank/settings.py
+++ b/lexrank/settings.py
@@ -9,9 +9,3 @@ def get_folder(name):
ASSETS_ROOT = get_folder('lexrank.assets')
-
-try:
- DATA_ROOT = get_folder('data')
-
-except ImportError:
- pass | Remove DATA_ROOT from settings. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -10,7 +10,12 @@ CLASSIFIERS = [
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
- "Programming Language :: Python :: 3",
+ "Programming Language :: Py... | setup.py: expand supported python versions | py |
diff --git a/rash/__init__.py b/rash/__init__.py
index <HASH>..<HASH> 100644
--- a/rash/__init__.py
+++ b/rash/__init__.py
@@ -291,6 +291,6 @@ See COPYING for details.
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-__version__ = '0.1.1'
+__version__ = '0.1.2.dev1'
__author__ = 'Takafumi ... | Bump to <I>.dev1 | py |
diff --git a/consul/datadog_checks/consul/consul.py b/consul/datadog_checks/consul/consul.py
index <HASH>..<HASH> 100644
--- a/consul/datadog_checks/consul/consul.py
+++ b/consul/datadog_checks/consul/consul.py
@@ -17,6 +17,8 @@ from datadog_checks.config import is_affirmative
# 3p
import requests
+EPOCH = datetime... | Update consul timestamp to support Windows (#<I>) * generate timestamp using supported functions | py |
diff --git a/aiorpcx/session.py b/aiorpcx/session.py
index <HASH>..<HASH> 100644
--- a/aiorpcx/session.py
+++ b/aiorpcx/session.py
@@ -262,9 +262,11 @@ class SessionBase(asyncio.Protocol):
self._address = None
self.transport = None
self.closed_event.set()
- self._task.c... | Cancel the task with loop.call_soon | py |
diff --git a/gym-unity/gym_unity/envs/unity_env.py b/gym-unity/gym_unity/envs/unity_env.py
index <HASH>..<HASH> 100755
--- a/gym-unity/gym_unity/envs/unity_env.py
+++ b/gym-unity/gym_unity/envs/unity_env.py
@@ -218,16 +218,14 @@ class UnityEnv(gym.Env):
def _single_step(self, info):
if self.use_visual:
... | Make Gym interface work with grayscale and RGB visual observations (#<I>) | py |
diff --git a/api/src/opentrons/protocol_api/contexts.py b/api/src/opentrons/protocol_api/contexts.py
index <HASH>..<HASH> 100644
--- a/api/src/opentrons/protocol_api/contexts.py
+++ b/api/src/opentrons/protocol_api/contexts.py
@@ -1181,14 +1181,6 @@ class InstrumentContext(CommandPublisher):
bot = loc.bottom()... | fix(api): remove unnecessary tip return (#<I>) In return tip, labware return tip was being called explicitly even though it was called implicitly under drop_tip | py |
diff --git a/openquake/calculators/views.py b/openquake/calculators/views.py
index <HASH>..<HASH> 100644
--- a/openquake/calculators/views.py
+++ b/openquake/calculators/views.py
@@ -1032,7 +1032,7 @@ def view_delta_loss(token, dstore):
df = dstore.read_df('agg_loss_table', 'event_id',
dic... | Fixed view_delta_loss | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -12,7 +12,8 @@ setup(
author_email='erikrose@grinchcentral.com',
license='MIT',
packages=find_packages(exclude=['ez_setup']),
- tests_require=['Nose'],
+ tests_require=['nose'],
+ test_suite='nose.colle... | fix nose case, and add the test suite entry point, to make the tests_require useful | py |
diff --git a/retext.py b/retext.py
index <HASH>..<HASH> 100755
--- a/retext.py
+++ b/retext.py
@@ -886,7 +886,8 @@ class ReTextWindow(QMainWindow):
mimetype = extension['MimeType'] if 'MimeType' in extension else None
except KeyError:
print('Failed to parse extension: Name is required')
- self.extension... | Forgot to wrap extension adding call into else | py |
diff --git a/bundles.py b/bundles.py
index <HASH>..<HASH> 100644
--- a/bundles.py
+++ b/bundles.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
-# Copyright (C) 2014 CERN.
+# Copyright (C) 2014, 2015 CERN.
#
# Invenio is free software; you can redistribute it and/or
# modify it under ... | global: unicode literals for bundles * Forces unicode literals on all bundles. (addresses #<I>) * PEP8/<I> code style improvements. | py |
diff --git a/i3pystatus/dota2wins.py b/i3pystatus/dota2wins.py
index <HASH>..<HASH> 100644
--- a/i3pystatus/dota2wins.py
+++ b/i3pystatus/dota2wins.py
@@ -102,10 +102,8 @@ class Dota2wins(IntervalModule):
"wins": wins,
"losses": losses,
"win_percent": win_percent,
- "wi... | dota2wins: fix win% reporting Somehow I accidentially had 2 win_percent values being set in the cdict, one of which was a string that breaks when you try to round off the remainder. | py |
diff --git a/faker/providers/address/de_DE/__init__.py b/faker/providers/address/de_DE/__init__.py
index <HASH>..<HASH> 100644
--- a/faker/providers/address/de_DE/__init__.py
+++ b/faker/providers/address/de_DE/__init__.py
@@ -71,7 +71,7 @@ class Provider(AddressProvider):
'Kötzting', 'Leipziger Land', 'Lemgo'... | Remove parenthesis from city name (#<I>) There was a random parenthesis in one of the German city names that didn't belong. | py |
diff --git a/pandora/client.py b/pandora/client.py
index <HASH>..<HASH> 100644
--- a/pandora/client.py
+++ b/pandora/client.py
@@ -260,12 +260,11 @@ class APIClient(BaseAPIClient):
def get_ad_item(self, station_id, ad_token):
from .models.pandora import AdItem
-
- ad_metadata = self.get_ad_metada... | Move validation check to be performed before expensive network call. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -16,10 +16,10 @@ execfile(os.path.join('magento', 'version.py'))
setup(
name = 'magento',
version=VERSION,
- url='https://github.com/openlabs/magento/',
+ url='https://github.com/fulfilio/magento/',
licen... | Maintained by Fulfil.io Inc | py |
diff --git a/pyfritzhome/fritzhome.py b/pyfritzhome/fritzhome.py
index <HASH>..<HASH> 100644
--- a/pyfritzhome/fritzhome.py
+++ b/pyfritzhome/fritzhome.py
@@ -95,15 +95,18 @@ class Fritzhome(object):
def login(self):
"""Login and get a valid session ID."""
- (sid, challenge) = self._login_request... | LoginError when connect to non fritzbox If connection is tried to an other device other then fitzbox the returen value cannot be parsed. Throw a LoginError exception. | py |
diff --git a/troposphere/kms.py b/troposphere/kms.py
index <HASH>..<HASH> 100644
--- a/troposphere/kms.py
+++ b/troposphere/kms.py
@@ -12,6 +12,15 @@ except ImportError:
policytypes = dict,
+class Alias(AWSObject):
+ resource_type = "AWS::KMS::Alias"
+
+ props = {
+ 'AliasName': (basestring, True)... | Add Alias object to KMS (fixes #<I>) | py |
diff --git a/flask_bower/__init__.py b/flask_bower/__init__.py
index <HASH>..<HASH> 100644
--- a/flask_bower/__init__.py
+++ b/flask_bower/__init__.py
@@ -16,7 +16,7 @@ def serve(component, filename):
root = current_app.config['BOWER_COMPONENTS_ROOT']
- return send_file('/'.join([root, component, filename])... | use conditional switch on send_file to ensure <I> responses are emitted | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -5,7 +5,7 @@ if __name__ == "__main__":
name='pytest-xprocess',
description='pytest plugin to manage external processes across test runs',
long_description=open("README.rst").read(),
- version... | Use setuptools_scm for version control | py |
diff --git a/littlechef/solo.py b/littlechef/solo.py
index <HASH>..<HASH> 100644
--- a/littlechef/solo.py
+++ b/littlechef/solo.py
@@ -281,7 +281,7 @@ def _add_rpm_repos():
epel_release = "epel-release-5-4.noarch"
if rhel_version == "6":
- epel_release = "epel-release-6-7.noarch"
+ epel_releas... | update url to epel repo file | py |
diff --git a/danceschool/financial/cms_toolbars.py b/danceschool/financial/cms_toolbars.py
index <HASH>..<HASH> 100644
--- a/danceschool/financial/cms_toolbars.py
+++ b/danceschool/financial/cms_toolbars.py
@@ -82,7 +82,7 @@ class FinancialToolbar(CMSToolbar):
self.request.user.has_perm('financial.change_e... | Fixed (I think) the position of the "Related Items" menu in the CMS toolbar Financial menu. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -1,5 +1,6 @@
import argparse
import os
+import pathlib
import platform
import re
import shlex
@@ -178,6 +179,9 @@ about_file = os.path.join(os.path.dirname(__file__), "av", "about.py")
with open(about_file, encoding="utf... | setup.py: Include *.pxd files as package_data | py |
diff --git a/python/perspective/perspective/tests/core/test_async.py b/python/perspective/perspective/tests/core/test_async.py
index <HASH>..<HASH> 100644
--- a/python/perspective/perspective/tests/core/test_async.py
+++ b/python/perspective/perspective/tests/core/test_async.py
@@ -59,7 +59,6 @@ class TestAsync(object)... | remove timing issue assert in async test | py |
diff --git a/xdist/slavemanage.py b/xdist/slavemanage.py
index <HASH>..<HASH> 100644
--- a/xdist/slavemanage.py
+++ b/xdist/slavemanage.py
@@ -144,10 +144,7 @@ class HostRSync(execnet.RSync):
"""
def __init__(self, sourcedir, *args, **kwargs):
self._synced = {}
- ignores= None
- if 'ign... | simplify HostRsync constructor | py |
diff --git a/ifaddr/_shared.py b/ifaddr/_shared.py
index <HASH>..<HASH> 100644
--- a/ifaddr/_shared.py
+++ b/ifaddr/_shared.py
@@ -112,9 +112,9 @@ class IP(object):
-if platform.system() == "Darwin":
+if platform.system() == "Darwin" or platform.system() == "OpenBSD":
- # Darwin uses marginally d... | Add OpenBSD support to ifaddr This allows the `sockaddr_to_ip` call to work on OpenBSD. Before this patch, the call returns "None" and after it returns the IP addresses associated with the interfaces. | py |
diff --git a/waliki/acl.py b/waliki/acl.py
index <HASH>..<HASH> 100644
--- a/waliki/acl.py
+++ b/waliki/acl.py
@@ -35,7 +35,7 @@ def check_perms(perms, user, slug, raise_exception=False):
return True
# First check if the user has the permission (even anon users)
- if user.has_perms(perms):
+ if us... | Make permissions given by user or group actually work. | py |
diff --git a/argiope/mesh.py b/argiope/mesh.py
index <HASH>..<HASH> 100644
--- a/argiope/mesh.py
+++ b/argiope/mesh.py
@@ -559,7 +559,22 @@ def write_xdmf(mesh, path, dataformat = "XML"):
fshape = field.data.shape[1]
if fshape == 1: ftype = "Scalar"
elif fshape == 3: ftype = "Vector"
- eli... | Full xdmf export working | py |
diff --git a/tests/unit/states/syslog_ng_test.py b/tests/unit/states/syslog_ng_test.py
index <HASH>..<HASH> 100644
--- a/tests/unit/states/syslog_ng_test.py
+++ b/tests/unit/states/syslog_ng_test.py
@@ -266,7 +266,7 @@ SHORT_FORM_EXPECTED = (
GIVEN_CONFIG = {
'id': "config.some_name",
'config': (
-""" |
+ ... | Import function in syslog_ng_test so tests will run | py |
diff --git a/salt/modules/lvs.py b/salt/modules/lvs.py
index <HASH>..<HASH> 100644
--- a/salt/modules/lvs.py
+++ b/salt/modules/lvs.py
@@ -396,9 +396,10 @@ def zero(protocol=None, service_address=None):
'''
if service_address:
- cmd = '{0} -Z {1}'.format(__detect_os(),
- ... | Pass through arguments in lvs.zero Fixes #<I>. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -9,7 +9,7 @@ if os.path.isfile("LICENSE"):
setup(
- zip_ok=False,
+ zip_safe=False,
name='django-debug-toolbar-template-timings',
version='0.6.2',
packages=['template_timings_panel', 'template_timings... | Change zip_ok to zip_safe as I'm stupid | py |
diff --git a/salt/modules/solaris_user.py b/salt/modules/solaris_user.py
index <HASH>..<HASH> 100644
--- a/salt/modules/solaris_user.py
+++ b/salt/modules/solaris_user.py
@@ -57,14 +57,15 @@ def add(name,
uid=None,
gid=None,
groups=None,
- home=True,
+ home=None,
shell=... | Mimic what was done in d<I>d<I> but for Solaris. | py |
diff --git a/src/python/pants/backend/shell/shell_command.py b/src/python/pants/backend/shell/shell_command.py
index <HASH>..<HASH> 100644
--- a/src/python/pants/backend/shell/shell_command.py
+++ b/src/python/pants/backend/shell/shell_command.py
@@ -140,7 +140,7 @@ async def prepare_shell_command_process(
... | Make experimental_shell_command deterministic (#<I>) `set` bad, `tuple` good. | py |
diff --git a/sendgrid/helpers/mail/validators.py b/sendgrid/helpers/mail/validators.py
index <HASH>..<HASH> 100644
--- a/sendgrid/helpers/mail/validators.py
+++ b/sendgrid/helpers/mail/validators.py
@@ -7,7 +7,7 @@ class ValidateAPIKey(object):
regexes = None
- def __init__(self, regex_strings=list(), use_d... | Removed datastructure from default variable Based on feedback in comments and what I read in [this Python-guide article](<URL>), I removed the datastructure from a default parameter | py |
diff --git a/ocrd_utils/ocrd_utils/constants.py b/ocrd_utils/ocrd_utils/constants.py
index <HASH>..<HASH> 100644
--- a/ocrd_utils/ocrd_utils/constants.py
+++ b/ocrd_utils/ocrd_utils/constants.py
@@ -34,6 +34,7 @@ EXT_TO_MIME = {
'.ppm': 'image/x-portable-pixmap',
'.pnm': 'image/x-portable-anymap',
'.pbm'... | utils.constants: text/plain to .txt and reverse mapping | py |
diff --git a/gluish/common.py b/gluish/common.py
index <HASH>..<HASH> 100644
--- a/gluish/common.py
+++ b/gluish/common.py
@@ -197,6 +197,4 @@ class FTPMirror(CommonTask):
output.write_tsv(path)
def output(self):
- """ Per paramters and hours write a single file
- """
retu... | cleanup illegible docstring | py |
diff --git a/workbench/server/bro/bro_log_reader.py b/workbench/server/bro/bro_log_reader.py
index <HASH>..<HASH> 100644
--- a/workbench/server/bro/bro_log_reader.py
+++ b/workbench/server/bro/bro_log_reader.py
@@ -124,7 +124,7 @@ class BroLogReader(object):
if (self.convert_datetimes):
try:
... | changing a <I> date to <I> as the 'beginning of time' | py |
diff --git a/src/dolo/misc/modfile.py b/src/dolo/misc/modfile.py
index <HASH>..<HASH> 100644
--- a/src/dolo/misc/modfile.py
+++ b/src/dolo/misc/modfile.py
@@ -266,6 +266,7 @@ def parse_dynare_text(txt,add_model=True,full_output=False,names_dict = {}):
resp['name'] = fname
model = Model(**resp)
+ retu... | Refactoring of modfile .py (models are dictionary) | py |
diff --git a/allennlp/modules/seq2seq_encoders/pytorch_seq2seq_wrapper.py b/allennlp/modules/seq2seq_encoders/pytorch_seq2seq_wrapper.py
index <HASH>..<HASH> 100644
--- a/allennlp/modules/seq2seq_encoders/pytorch_seq2seq_wrapper.py
+++ b/allennlp/modules/seq2seq_encoders/pytorch_seq2seq_wrapper.py
@@ -96,6 +96,7 @@ cla... | add variable wrapper around zeros tensor (#<I>) | py |
diff --git a/test/test_provider_cryptoid.py b/test/test_provider_cryptoid.py
index <HASH>..<HASH> 100644
--- a/test/test_provider_cryptoid.py
+++ b/test/test_provider_cryptoid.py
@@ -1,3 +1,5 @@
+from decimal import Decimal
+
from pypeerassets.provider.cryptoid import Cryptoid
@@ -38,13 +40,13 @@ def test_cryptoid... | Update/fix a couple of Cryptoid tests. | py |
diff --git a/salt/modules/mysql.py b/salt/modules/mysql.py
index <HASH>..<HASH> 100644
--- a/salt/modules/mysql.py
+++ b/salt/modules/mysql.py
@@ -1622,8 +1622,10 @@ def grant_exists(grant,
if not target_tokens: # Avoid the overhead of re-calc in loop
target_tokens = _grant_to_tokens(targ... | Fix mysql grant comparisons by stripping both of escape characters and quotes. Fixes #<I> | py |
diff --git a/kafka/conn.py b/kafka/conn.py
index <HASH>..<HASH> 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -292,11 +292,7 @@ class BrokerConnection(object):
# First attempt to perform dns lookup
# note that the underlying interface, socket.getaddrinfo,
# has no explicit timeout so we m... | Improve connection handling when bootstrap list is invalid (#<I>) * only perform single dns lookup for connect_blocking() * fix blocking timeout in check_version() | py |
diff --git a/isort/settings.py b/isort/settings.py
index <HASH>..<HASH> 100644
--- a/isort/settings.py
+++ b/isort/settings.py
@@ -43,7 +43,7 @@ WrapModes = namedtuple('WrapModes', WrapModes)(*range(len(WrapModes)))
# Note that none of these lists must be complete as they are simply fallbacks for when included auto-de... | Switch default to <I> characters to be consistent with pep8 | py |
diff --git a/spacy/en/download.py b/spacy/en/download.py
index <HASH>..<HASH> 100644
--- a/spacy/en/download.py
+++ b/spacy/en/download.py
@@ -7,7 +7,7 @@ import wget
import plac
# TODO: Read this from the same source as the setup
-VERSION = '0.7'
+VERSION = '0.8'
AWS_STORE = 'http://s3-us-west-1.amazonaws.com/m... | * Fix /tmp moving thing in download.py | py |
diff --git a/OpenSSL/crypto.py b/OpenSSL/crypto.py
index <HASH>..<HASH> 100644
--- a/OpenSSL/crypto.py
+++ b/OpenSSL/crypto.py
@@ -5,7 +5,8 @@ from operator import __eq__, __ne__, __lt__, __le__, __gt__, __ge__
from six import (
integer_types as _integer_types,
- text_type as _text_type)
+ text_type as _t... | Apparently that code is a no-go on Python 2. It seemed to work on Python 3 though. | py |
diff --git a/salt/version.py b/salt/version.py
index <HASH>..<HASH> 100644
--- a/salt/version.py
+++ b/salt/version.py
@@ -368,7 +368,14 @@ def __get_version(version, version_info):
os.path.dirname(inspect.getsourcefile(__get_version))
)
- if not os.path.exists(os.path.join(os.path.dirname(cw... | Correctly detect a git checkout. Refs #<I>. Fixes #<I>. The problem is that when we `exec()` the version code from `setup.py`, the `__file__` paths changed and we were "missing" the `.git` directory. | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -26,6 +26,7 @@ setup(
license="BSD",
packages=find_packages(),
zip_safe=True,
+ python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*",
classifiers=[
# Picked from
# http://pypi... | Add python_requires to help pip | py |
diff --git a/debugtools/templatetags/debug_tags.py b/debugtools/templatetags/debug_tags.py
index <HASH>..<HASH> 100644
--- a/debugtools/templatetags/debug_tags.py
+++ b/debugtools/templatetags/debug_tags.py
@@ -35,9 +35,9 @@ class PrintNode(Node):
else:
text += "<pre>%s = %s...\n%s... | Debugging: include scope block numbers | py |
diff --git a/test/stress_tests.py b/test/stress_tests.py
index <HASH>..<HASH> 100644
--- a/test/stress_tests.py
+++ b/test/stress_tests.py
@@ -93,6 +93,8 @@ class TaskTests(unittest.TestCase):
n = 10 ** 4 # TODO(pcm): replace by 10 ** 5 once this is faster
l = ray.get([f.remote() for _ in range(n)])
self... | Check if processes are alive in test. (#<I>) | py |
diff --git a/tests/test_utils.py b/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -13,7 +13,7 @@ except ImportError as e:
import os
import shutil
-from pulla.main import is_this_a_git_dir
+from pulla.utils import is_this_a_git_dir
class test_that_need_a_git... | Fix typo and import from utils instead of main | py |
diff --git a/hashedindex/textparser.py b/hashedindex/textparser.py
index <HASH>..<HASH> 100644
--- a/hashedindex/textparser.py
+++ b/hashedindex/textparser.py
@@ -29,8 +29,11 @@ _punctuation = copy(punctuation)
for char in _punctuation_exceptions:
_punctuation = _punctuation.replace(char, '')
-_re_punctuation =... | Isolate regex character class definitions from compilation line | py |
diff --git a/jenkins/check_projects.py b/jenkins/check_projects.py
index <HASH>..<HASH> 100644
--- a/jenkins/check_projects.py
+++ b/jenkins/check_projects.py
@@ -84,9 +84,8 @@ def CheckProjects(needed, fix=False):
for role, needs in sorted(needed.items()):
print >>sys.stderr, ' %s: %s' % (role, ','.join(Sane(... | fix is a bool, not a string | py |
diff --git a/pypeerassets/protocol.py b/pypeerassets/protocol.py
index <HASH>..<HASH> 100644
--- a/pypeerassets/protocol.py
+++ b/pypeerassets/protocol.py
@@ -102,7 +102,6 @@ class CardTransfer:
self.sender = sender
self.timestamp = timestamp
self.asset_specific_data = asset_specific_data
- ... | CardTransfer object should not care about deck P2TH. | py |
diff --git a/fermipy/gtutils.py b/fermipy/gtutils.py
index <HASH>..<HASH> 100644
--- a/fermipy/gtutils.py
+++ b/fermipy/gtutils.py
@@ -249,13 +249,16 @@ def gtlike_spectrum_to_vectors(spectrum):
""" Convert a pyLikelihood object to a python dictionary which can
be easily saved to a file."""
- o = {'p... | Allow for more that <I> parameters in spectral models | py |
diff --git a/pprofile.py b/pprofile.py
index <HASH>..<HASH> 100755
--- a/pprofile.py
+++ b/pprofile.py
@@ -750,6 +750,7 @@ class Profile(ProfileBase, ProfileRunnerBase):
else:
self._global_trace = self._real_global_trace
self._local_trace = self._real_local_trace
+ self.stack =... | pprofile: Simplify "stack" attribute handling. Even with a descriptor, the only effect is that current thread's stack will be initialised on _enable, which is not a problem. | py |
diff --git a/diff_cover/violationsreporters/violations_reporter.py b/diff_cover/violationsreporters/violations_reporter.py
index <HASH>..<HASH> 100644
--- a/diff_cover/violationsreporters/violations_reporter.py
+++ b/diff_cover/violationsreporters/violations_reporter.py
@@ -237,7 +237,7 @@ jshint_driver = RegexBasedDri... | Correct eslint command | py |
diff --git a/biofrills/alnutils.py b/biofrills/alnutils.py
index <HASH>..<HASH> 100644
--- a/biofrills/alnutils.py
+++ b/biofrills/alnutils.py
@@ -112,7 +112,8 @@ def sequence_weights(aln, scaling='none'):
# Sum the contributions from each position along each sequence -> total weight
for col in zip(*aln):
... | alnutils.sequence_weights: adjust "total" expectation for limited alphabet A large set of "independent" protein sequences will still only have a maximum of <I> different aa types in a column. So, cap the count of total possible different characters in a column at <I>. | py |
diff --git a/abilian/services/vocabularies/models.py b/abilian/services/vocabularies/models.py
index <HASH>..<HASH> 100644
--- a/abilian/services/vocabularies/models.py
+++ b/abilian/services/vocabularies/models.py
@@ -129,6 +129,16 @@ def _before_insert(mapper, connection, target):
target.position = connection.ex... | vocabularies: keep a reference of generated vocabularies classes | py |
diff --git a/celerytask/tasks.py b/celerytask/tasks.py
index <HASH>..<HASH> 100755
--- a/celerytask/tasks.py
+++ b/celerytask/tasks.py
@@ -529,7 +529,7 @@ def refresh_api(api_key_pair):
logger.debug("API key %s has a new character on the account: %s" % (api_key_pair.api_id, characters.result[cha... | Fix characters getting assigned vcode as api id | py |
diff --git a/tests/test_docs.py b/tests/test_docs.py
index <HASH>..<HASH> 100644
--- a/tests/test_docs.py
+++ b/tests/test_docs.py
@@ -57,7 +57,7 @@ def test_plugin_hooks_are_documented(plugin):
assert plugin in headings
-@pytest.fixture
+@pytest.fixture(scope="session")
def documented_views():
view_labe... | Only run documented_views() fixture once per session Speeds up tests, because previously it ran once per view class. | py |
diff --git a/saltcloud/clouds/saltify.py b/saltcloud/clouds/saltify.py
index <HASH>..<HASH> 100644
--- a/saltcloud/clouds/saltify.py
+++ b/saltcloud/clouds/saltify.py
@@ -140,7 +140,7 @@ def create(vm_):
saltcloud.utils.fire_event(
'event',
'executing deploy script',
- 'salt.cloud.create',... | Update namespaced tags to be more specific in saltify | py |
diff --git a/MAVProxy/mavproxy.py b/MAVProxy/mavproxy.py
index <HASH>..<HASH> 100755
--- a/MAVProxy/mavproxy.py
+++ b/MAVProxy/mavproxy.py
@@ -127,7 +127,8 @@ class MPState(object):
MPSetting('basealt', int, 0, 'Base Altitude', range=(0,30000), increment=1, tab='Altitude'),
MPSetting('wpal... | mavproxy: Added wpupdates setting | py |
diff --git a/rflint/parser/rfkeyword.py b/rflint/parser/rfkeyword.py
index <HASH>..<HASH> 100644
--- a/rflint/parser/rfkeyword.py
+++ b/rflint/parser/rfkeyword.py
@@ -1,14 +1,21 @@
# Does this need to be in its own file, or can I combine
# testcase and keyword into one file?
-from testcase import Testcase
+from com... | Keyword now inherits from RobotStatements rather than Testcase | py |
diff --git a/plenum/server/consensus/view_change_service.py b/plenum/server/consensus/view_change_service.py
index <HASH>..<HASH> 100644
--- a/plenum/server/consensus/view_change_service.py
+++ b/plenum/server/consensus/view_change_service.py
@@ -329,6 +329,11 @@ class NewViewBuilder:
continue
... | add TODO comment for deviation from the paper | py |
diff --git a/_nodes_compiler.py b/_nodes_compiler.py
index <HASH>..<HASH> 100644
--- a/_nodes_compiler.py
+++ b/_nodes_compiler.py
@@ -360,7 +360,9 @@ class TreeRebuilder(RebuildVisitor):
"""visit a Comprehension node by returning a fresh instance of it"""
newnode = new.Comprehension()
self._... | [compiler]: set assignment context for Comprehension nodes --HG-- branch : rebuild | py |
diff --git a/plugins/hanlp_common/hanlp_common/io.py b/plugins/hanlp_common/hanlp_common/io.py
index <HASH>..<HASH> 100644
--- a/plugins/hanlp_common/hanlp_common/io.py
+++ b/plugins/hanlp_common/hanlp_common/io.py
@@ -5,6 +5,7 @@ import json
import os
import pickle
import sys
+from typing import Union
def save... | Improve typing for `save_json` | py |
diff --git a/StreamDecompressor/decompressors/rar.py b/StreamDecompressor/decompressors/rar.py
index <HASH>..<HASH> 100644
--- a/StreamDecompressor/decompressors/rar.py
+++ b/StreamDecompressor/decompressors/rar.py
@@ -65,7 +65,7 @@ class Unrar(ArchivePack):
matches = re.search("(?:UN)?RAR (\d+\.\d+)", output)... | Fixed: rar: bad check of version | py |
diff --git a/test/test_collection.py b/test/test_collection.py
index <HASH>..<HASH> 100644
--- a/test/test_collection.py
+++ b/test/test_collection.py
@@ -1771,13 +1771,14 @@ class TestCollection(IntegrationTest):
self.assertRaises(DuplicateKeyError, self.db.test.insert, batch)
self.assertEqual(1, sel... | Update comments in test_insert_large_batch. | py |
diff --git a/lib/svtplay_dl/service/kanal5.py b/lib/svtplay_dl/service/kanal5.py
index <HASH>..<HASH> 100644
--- a/lib/svtplay_dl/service/kanal5.py
+++ b/lib/svtplay_dl/service/kanal5.py
@@ -7,9 +7,10 @@ import json
from svtplay_dl.utils.urllib import CookieJar, Cookie
from svtplay_dl.service import Service
-from s... | kanal5: yield the subs | py |
diff --git a/multiqc/modules/bcl2fastq/bcl2fastq.py b/multiqc/modules/bcl2fastq/bcl2fastq.py
index <HASH>..<HASH> 100644
--- a/multiqc/modules/bcl2fastq/bcl2fastq.py
+++ b/multiqc/modules/bcl2fastq/bcl2fastq.py
@@ -188,16 +188,14 @@ class MultiqcModule(BaseMultiqcModule):
"perfectIndex": 0,
... | merging bcl2fastq from master | py |
diff --git a/domcheck/strategies.py b/domcheck/strategies.py
index <HASH>..<HASH> 100644
--- a/domcheck/strategies.py
+++ b/domcheck/strategies.py
@@ -74,7 +74,7 @@ def check_meta_tag(domain, prefix, code):
res = urlopen(req, timeout=2)
if res.code == 200:
# Expect the </head>... | Fix: metatag regexp search in bytes failed | py |
diff --git a/hamster/stats.py b/hamster/stats.py
index <HASH>..<HASH> 100644
--- a/hamster/stats.py
+++ b/hamster/stats.py
@@ -917,15 +917,22 @@ than 15 minutes you seem to be a busy bee." % ("<b>%d</b>" % short_percent))
lambda fact: (fact["name"],
... | grouping activities by name for the activity chart | py |
diff --git a/salt/utils/__init__.py b/salt/utils/__init__.py
index <HASH>..<HASH> 100644
--- a/salt/utils/__init__.py
+++ b/salt/utils/__init__.py
@@ -793,7 +793,7 @@ def format_call(fun,
'{0}.{1}'.format(fun.__module__, fun.__name__)
)
)
- log.error(
+ l... | state kw mismatch: increase to critical loglevel | py |
diff --git a/checkers/utils.py b/checkers/utils.py
index <HASH>..<HASH> 100644
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -151,8 +151,10 @@ def is_defined_before(var_node):
if ass_node.name == varname:
return True
elif isinstance(_node, astroid.With):
- ... | Handle new astroid With nodes 'expr' and 'vars' have been replaced by an 'items' list. | py |
diff --git a/openquake/engine/db/fields.py b/openquake/engine/db/fields.py
index <HASH>..<HASH> 100644
--- a/openquake/engine/db/fields.py
+++ b/openquake/engine/db/fields.py
@@ -330,7 +330,10 @@ class NullFloatField(djm.FloatField):
"""
def get_prep_value(self, value):
- if isinstance(value, basestr... | db/fields: NullFloatField now handles all cases properly. | py |
diff --git a/python/setup.py b/python/setup.py
index <HASH>..<HASH> 100755
--- a/python/setup.py
+++ b/python/setup.py
@@ -108,7 +108,7 @@ if platform.system() == 'Darwin':
setup(
name='neuroglancer',
- version='1.1.4',
+ version='1.1.5',
description='Python data backend for neuroglancer, a WebGL-bas... | chore(python): bump package version to <I> | py |
diff --git a/squad/settings.py b/squad/settings.py
index <HASH>..<HASH> 100644
--- a/squad/settings.py
+++ b/squad/settings.py
@@ -262,6 +262,10 @@ REST_FRAMEWORK = {
'django_filters.rest_framework.DjangoFilterBackend',
),
'PAGE_SIZE': 50,
+ 'DEFAULT_AUTHENTICATION_CLASSES': (
+ 'rest_frame... | api: accept session and token authentication | py |
diff --git a/ot/da.py b/ot/da.py
index <HASH>..<HASH> 100644
--- a/ot/da.py
+++ b/ot/da.py
@@ -229,11 +229,13 @@ def joint_OT_mapping_kernel(xs,xt,mu=1,eta=0.001,kerneltype='gaussian',sigma=1,b
I=np.eye(ns+1)
I[-1]=0
K0 = K1.T.dot(K1)+eta*I
+ Kreg=I
sel=lambda x : x[:-1,:]
... | add mapping estimation with kernels (smaller bugs) | py |
diff --git a/src/astral/calc.py b/src/astral/calc.py
index <HASH>..<HASH> 100644
--- a/src/astral/calc.py
+++ b/src/astral/calc.py
@@ -30,7 +30,7 @@ def proper_angle(value: float) -> float:
def julianday(
- date: Union[datetime.datetime, datetime.date],
+ date: datetime.date,
timezone: Union[int, pytz.B... | Union not required as datetime subclasses date | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100644
--- a/setup.py
+++ b/setup.py
@@ -20,8 +20,11 @@ class build_ext(_build_ext):
print("numpy.get_include()", numpy.get_include())
self.include_dirs.append(numpy.get_include())
+setup_complete = False
def run_setup(with_binary=True, test_x... | Try again to fix appveyor | py |
diff --git a/anyconfig/backend/backends.py b/anyconfig/backend/backends.py
index <HASH>..<HASH> 100644
--- a/anyconfig/backend/backends.py
+++ b/anyconfig/backend/backends.py
@@ -62,7 +62,7 @@ def list_parsers_by_type(cps=_CPs):
"""
:return: List (generator) of (config_type, [config_parser])
"""
- ret... | use key kwarg for sorted as it was deprecated in python <I>: <URL> | py |
diff --git a/src/naarad/metrics/metric.py b/src/naarad/metrics/metric.py
index <HASH>..<HASH> 100644
--- a/src/naarad/metrics/metric.py
+++ b/src/naarad/metrics/metric.py
@@ -130,7 +130,10 @@ class Metric(object):
timestamp_format = naarad.utils.detect_timestamp_format(words[0])
if timestamp_format ... | Improved handling of log lines with invalid/unknown timestamps | py |
diff --git a/nashvegas/management/commands/upgradedb.py b/nashvegas/management/commands/upgradedb.py
index <HASH>..<HASH> 100644
--- a/nashvegas/management/commands/upgradedb.py
+++ b/nashvegas/management/commands/upgradedb.py
@@ -132,6 +132,7 @@ class Command(BaseCommand):
[l for l in lines if not... | print output from dbshell to console so that errors in scripts can be detected | py |
diff --git a/timezone_utils/fields.py b/timezone_utils/fields.py
index <HASH>..<HASH> 100644
--- a/timezone_utils/fields.py
+++ b/timezone_utils/fields.py
@@ -32,9 +32,9 @@ __all__ = ('TimeZoneField', 'LinkedTZDateTimeField')
# ==============================================================================
# MODEL FIE... | Final pylint corrections. | py |
diff --git a/services/managers/teamspeak3_manager.py b/services/managers/teamspeak3_manager.py
index <HASH>..<HASH> 100755
--- a/services/managers/teamspeak3_manager.py
+++ b/services/managers/teamspeak3_manager.py
@@ -227,7 +227,7 @@ class Teamspeak3Manager:
user_ts_groups[key] = int(user_ts_groups[ke... | Indentation I broke it. Now it's fixed. | py |
diff --git a/pysat/tests/test_utils.py b/pysat/tests/test_utils.py
index <HASH>..<HASH> 100644
--- a/pysat/tests/test_utils.py
+++ b/pysat/tests/test_utils.py
@@ -523,6 +523,7 @@ class TestBasicNetCDF4xarray():
self.testInst.data.attrs['new_attr'] = 1
self.testInst.data.to_netcdf(outfile)
+ w... | BUG: add warnings filter in tests | py |
diff --git a/salt/states/x509.py b/salt/states/x509.py
index <HASH>..<HASH> 100644
--- a/salt/states/x509.py
+++ b/salt/states/x509.py
@@ -24,7 +24,7 @@ For remote signing, peers must be permitted to remotely call the
peer:
.*:
- - sign_remote_certificate
+ - x509.sign_remote_certificate
... | Documentation: Update incorrect example code in x<I>.py If you use the provided "peer" example, it doesn't work. It seems that the whole function name "x<I>.sign_remote_certificate" is required. | py |
diff --git a/frasco_assets/__init__.py b/frasco_assets/__init__.py
index <HASH>..<HASH> 100644
--- a/frasco_assets/__init__.py
+++ b/frasco_assets/__init__.py
@@ -89,6 +89,14 @@ class AssetsFeature(Feature):
def expose_package(self, name, import_name):
self.app.register_blueprint(AssetsBlueprint(name, imp... | added utility method to easily add default assets | py |
diff --git a/rejester/_task_master.py b/rejester/_task_master.py
index <HASH>..<HASH> 100644
--- a/rejester/_task_master.py
+++ b/rejester/_task_master.py
@@ -54,9 +54,12 @@ class Worker(object):
``working_set``, and ``memory``.
'''
+ hostname, aliases, ipaddrs = socket.gethostbyaddr(socket.g... | Make Worker.environment() round-trip better | py |
diff --git a/src/means/simulation/__init__.py b/src/means/simulation/__init__.py
index <HASH>..<HASH> 100644
--- a/src/means/simulation/__init__.py
+++ b/src/means/simulation/__init__.py
@@ -1,3 +1,6 @@
+"""
+Routines for stochastic and deterministic simulation.
+"""
from means.simulation.descriptors import Sensitivit... | added docstring to the __init__ file | py |
diff --git a/setup.py b/setup.py
index <HASH>..<HASH> 100755
--- a/setup.py
+++ b/setup.py
@@ -135,7 +135,7 @@ setup_args = {
'package_data' : {'': ['*.sh', '*.json', 'VERSION', 'SDIST']},
- 'install_requires' : ['radical.utils==devel','radical.pilot', 'pika'],
+ 'install_requires' : ['radical.... | remove rp from setup.py | py |
diff --git a/hdf5storage/Marshallers.py b/hdf5storage/Marshallers.py
index <HASH>..<HASH> 100644
--- a/hdf5storage/Marshallers.py
+++ b/hdf5storage/Marshallers.py
@@ -529,6 +529,7 @@ class NumpyScalarArrayMarshaller(TypeMarshaller):
np.float16, np.float32, np.float64,
np.co... | Fixed small bug in NumpyScalarArrayMarshallers where a list that is modified by inheriting classes was used to check if something was a handled numpy type. | py |
diff --git a/doctr/__main__.py b/doctr/__main__.py
index <HASH>..<HASH> 100644
--- a/doctr/__main__.py
+++ b/doctr/__main__.py
@@ -391,7 +391,7 @@ def configure(args, parser):
while not get_build_repo:
try:
if default_repo:
- build_repo = input("What repo do you want to build t... | Fix the question mark location for one of the doctr configure questions | py |
diff --git a/subsystem.py b/subsystem.py
index <HASH>..<HASH> 100644
--- a/subsystem.py
+++ b/subsystem.py
@@ -58,15 +58,13 @@ def main():
options, arguments = parse()
- videos = []
+ # create list of video files that don't have accompanying 'srt' subtitles
+ targets = [p for p in arguments if os.path... | Better target verification and rename logic | py |
diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py
index <HASH>..<HASH> 100644
--- a/tests/integration/__init__.py
+++ b/tests/integration/__init__.py
@@ -524,7 +524,12 @@ class SaltDaemonScriptBase(SaltScriptBase, ShellTestCase):
except psutil.NoSuchProcess:
... | Final check for running procs (#<I>) * Final check for running procs This does a final check to kill any running procs that are lingering. * Lint | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.