<commit_before># Tox (https://tox.readthedocs.io) is a tool for running tests in multiple
# virtualenvs. "pip install tox" and run "tox" from this directory.

# Adapted from Tornado's tox.ini.

[tox]
envlist =
    # Minimal Tornado 4 compatibility check.
    tornado4-{py27,py36},

    # Tornado 5 supports Python 2.7.9+ and 3.4+. Tornado 6 will require 3.5+.
    tornado5-{py27,pypy,pypy3,py34,py35,py36},

    # Test Tornado on master in a few configurations.
    tornado_git-{py27,py34,py35,py36},

    # Ensure the sphinx build has no errors or warnings.
    py3-sphinx-docs,

    # Run the doctests, include examples and tutorial, via Sphinx.
    py3-sphinx-doctest,

    # asyncio without Tornado.
    asyncio-{py34,py35,py36},

    # Test PyMongo HEAD, not the latest release.
    py3-pymongo-master,

    # Apply PyMongo's test suite to Motor via Synchro.
    synchro

[testenv]
passenv =
    DB_IP
    DB_PORT
    DB_USER
    DB_PASSWORD
    CERT_DIR
    ASYNC_TEST_TIMEOUT

basepython =
    py27,synchro: {env:PYTHON_BINARY:python2.7}
    py34: {env:PYTHON_BINARY:python3.4}
    py35: {env:PYTHON_BINARY:python3.5}
    py36: {env:PYTHON_BINARY:python3.6}
    pypy: {env:PYTHON_BINARY:pypy}
    pypy3: {env:PYTHON_BINARY:pypy3}

    # Default Python 3 when we don't care about minor version.
    py3: {env:PYTHON_BINARY:python3.6}

deps =
    # Until PyMongo 3.7 is released, test ONLY PyMongo master.
    # Once it's out, test both the released and master versions.
    git+https://github.com/mongodb/mongo-python-driver.git
    tornado4: tornado>=4,<5
    tornado5: tornado>=5,<6
    tornado_git: git+https://github.com/tornadoweb/tornado.git

    {py27,pypy}: futures

    # set_tcp_corktp requires Python 3.5+.<commit_msg>Obsolete comment in tox.ini<commit_after># Tox (https://tox.readthedocs.io) is a tool for running tests in multiple
# virtualenvs. "pip install tox" and run "tox" from this directory.

# Adapted from Tornado's tox.ini.

[tox]
envlist =
    # Minimal Tornado 4 compatibility check.
    tornado4-{py27,py36},

    # Tornado 5 supports Python 2.7.9+ and 3.4+. Tornado 6 will require 3.5+.
    tornado5-{py27,pypy,pypy3,py34,py35,py36},

    # Test Tornado on master in a few configurations.
    tornado_git-{py27,py34,py35,py36},

    # Ensure the sphinx build has no errors or warnings.
    py3-sphinx-docs,

    # Run the doctests, include examples and tutorial, via Sphinx.
    py3-sphinx-doctest,

    # asyncio without Tornado.
    asyncio-{py34,py35,py36},

    # Test PyMongo HEAD, not the latest release.
    py3-pymongo-master,

    # Apply PyMongo's test suite to Motor via Synchro.
    synchro

[testenv]
passenv =
    DB_IP
    DB_PORT
    DB_USER
    DB_PASSWORD
    CERT_DIR
    ASYNC_TEST_TIMEOUT

basepython =
    py27,synchro: {env:PYTHON_BINARY:python2.7}
    py34: {env:PYTHON_BINARY:python3.4}
    py35: {env:PYTHON_BINARY:python3.5}
    py36: {env:PYTHON_BINARY:python3.6}
    pypy: {env:PYTHON_BINARY:pypy}
    pypy3: {env:PYTHON_BINARY:pypy3}

    # Default Python 3 when we don't care about minor version.
    py3: {env:PYTHON_BINARY:python3.6}

deps =
    # Until PyMongo 3.7 is released, test ONLY PyMongo master.
    # Once it's out, test both the released and master versions.
    git+https://github.com/mongodb/mongo-python-driver.git
    tornado4: tornado>=4,<5
    tornado5: tornado>=5,<6
    tornado_git: git+https://github.com/tornadoweb/tornado.git

    {py27,pypy}: futures

{'fraction_non_alphanumeric': 0.1054925893635571, 'fraction_numerical': 0.043591979075850044, 'mean_word_length': 3.3132832080200503, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '1603606', 'n_tokens_mistral': 1445, 'n_tokens_neox': 1331, 'n_words': 322}