<commit_before>[tox]
envlist = py25, py26, py27, jython, docs, metrics

[testenv]
deps =
    nose
    coverage
    yanc
    pygments
commands =
    mkdir -p reports
    nosetests {posargs:--with-coverage --with-xunit --xunit-file=reports/nosetests-{envname}.xml}

[testenv:docs]
changedir = doc
deps = sphinx
commands =
    sphinx-build -W -b linkcheck -d .build/doctrees doc .build/linkcheck
    sphinx-build -b html -d .build/doctrees . .build/html

[testenv:metrics]
deps =
    coverage
    pylint
    pep8
    clonedigger
commands =
    mkdir -p reports
    coverage xml -oreports/coverage.xml
    sh -c 'pylint --rcfile=.pylintrc -f parseable xtraceback > reports/pylint || true'
    sh -c "pep8 --repeat xtraceback > reports/pep8 || true"
    clonedigger --cpd-output -o reports/clonedigger.xml xtraceback<commit_msg>add clonedigger report<commit_after>[tox]
envlist = py25, py26, py27, jython, docs, metrics

[testenv]
deps =
    nose
    coverage
    yanc
    pygments
commands =
    mkdir -p reports
    nosetests {posargs:--with-coverage --with-xunit --xunit-file=reports/nosetests-{envname}.xml}

[testenv:docs]
changedir = doc
deps = sphinx
commands =
    sphinx-build -W -b linkcheck -d .build/doctrees doc .build/linkcheck
    sphinx-build -b html -d .build/doctrees . .build/html

[testenv:metrics]
deps =
    coverage
    pylint
    pep8
    clonedigger
commands =
    mkdir -p reports
    coverage xml -oreports/coverage.xml
    sh -c 'pylint --rcfile=.pylintrc -f parseable xtraceback > reports/pylint || true'
    sh -c "pep8 --repeat xtraceback > reports/pep8 || true"
    clonedigger --cpd-output -o reports/clonedigger.xml xtraceback
    clonedigger -o reports/clonedigger/index.html xtraceback
{'fraction_non_alphanumeric': 0.10955710955710955, 'fraction_numerical': 0.01048951048951049, 'mean_word_length': 2.9837587006960558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '2900735', 'n_tokens_mistral': 646, 'n_tokens_neox': 633, 'n_words': 157}