<commit_before># -*- coding: utf-8 -*-

from paver.easy import *

@task
def test(options):
    info("Running tests for Python 2")
    sh('python2 tests.py')
    info("Running tests for Python 3")
    sh('python3 tests.py')

@task
def coverage(options):
    info("Running coverage for Python 2")
    sh('coverage2 run --source ldapom ./tests.py')
    sh('coverage2 report')
    info("Running coverage for Python 3")
    sh('coverage3 run --source ldapom ./tests.py')
    sh('coverage3 report')<commit_msg>Make paver unittest run more verbose<commit_after># -*- coding: utf-8 -*-

from paver.easy import *

@task
def test(options):
    info("Running tests for Python 2")
    sh('python2 -m unittest -v tests')
    info("Running tests for Python 3")
    sh('python3 -m unittest -v tests')

@task
def coverage(options):
    info("Running coverage for Python 2")
    sh('coverage2 run --source ldapom ./tests.py')
    sh('coverage2 report')
    info("Running coverage for Python 3")
    sh('coverage3 run --source ldapom ./tests.py')
    sh('coverage3 report')
{'fraction_non_alphanumeric': 0.14218009478672985, 'fraction_numerical': 0.02085308056872038, 'mean_word_length': 3.4, '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': '6088066', 'n_tokens_mistral': 345, 'n_tokens_neox': 333, 'n_words': 110}