<commit_before>[tox]
envlist = flake8-py3, py26, py27, py33, py34, py35, pypy

[testenv]
deps= -r{toxinidir}/dev-requirements.txt
commands=
    pip install .[socks,secure]
    nosetests []
setenv =
    PYTHONWARNINGS=always::DeprecationWarning

[testenv:py26]
# Require unittest2 for Python 2.6 for skip decorators.
commands=
    pip install unittest2

[testenv:gae]
basepython = python2.7
deps=
    {[testenv]deps}
    -r{toxinidir}/test/appengine/requirements.txt
commands=
    nosetests \
        -c {toxinidir}/test/appengine/nose.cfg \
        test/appengine \
        []
    # For now, this test is ran separately because the sandbox activation in
    # the app engine tests will blow up everything.
    nosetests \
        -c {toxinidir}/test/appengine/nose.cfg \
        test/contrib/test_gae_manager.py \
        []
setenv =
    PYTHONPATH={env:GAE_PYTHONPATH:}
    {[testenv]setenv}

[testenv:flake8-py3]
basepython = python3.4
deps=
    flake8
commands=
    flake8 --version
    flake8 setup.py docs dummyserver urllib3

[testenv:docs]
basepython = python2.7
deps=
    -r{toxinidir}/docs/requirements.txt
commands=
    rm -r {toxinidir}/docs/_build
    make -C {toxinidir}/docs html
whitelist_externals=
    make
    rm
<commit_msg>Fix tox.ini for Python 2.6<commit_after>[tox]
envlist = flake8-py3, py26, py27, py33, py34, py35, pypy

[testenv]
deps= -r{toxinidir}/dev-requirements.txt
commands=
    pip install .[socks,secure]
    nosetests []
setenv =
    PYTHONWARNINGS=always::DeprecationWarning

[testenv:py26]
# Additional dependency on unittest2 for Python 2.6
deps=
    {[testenv]deps}
    unittest2

[testenv:gae]
basepython = python2.7
deps=
    {[testenv]deps}
    -r{toxinidir}/test/appengine/requirements.txt
commands=
    nosetests \
        -c {toxinidir}/test/appengine/nose.cfg \
        test/appengine \
        []
    # For now, this test is ran separately because the sandbox activation in
    # the app engine tests will blow up everything.
    nosetests \
        -c {toxinidir}/test/appengine/nose.cfg \
        test/contrib/test_gae_manager.py \
        []
setenv =
    PYTHONPATH={env:GAE_PYTHONPATH:}
    {[testenv]setenv}

[testenv:flake8-py3]
basepython = python3.4
deps=
    flake8
commands=
    flake8 --version
    flake8 setup.py docs dummyserver urllib3

[testenv:docs]
basepython = python2.7
deps=
    -r{toxinidir}/docs/requirements.txt
commands=
    rm -r {toxinidir}/docs/_build
    make -C {toxinidir}/docs html
whitelist_externals=
    make
    rm

{'fraction_non_alphanumeric': 0.1092436974789916, 'fraction_numerical': 0.024809923969587835, 'mean_word_length': 3.111842105263158, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5635383', 'n_tokens_mistral': 988, 'n_tokens_neox': 935, 'n_words': 200}