<commit_before>from easyprocess import Proc
from paver.easy import *

import paver.doctools
import paver.virtual
import paver.misctasks
from paved import *
from paved.dist import *
from paved.util import *
from paved.docs import *
from paved.pycheck import *
from paved.pkg import *
from sphinxcontrib import paverutils

options(
    sphinx=Bunch(
        docroot='docs',
        builddir="_build",
    ),
    pdf=Bunch(
        builddir='_build',
        builder='latex',
    ),
)


options.paved.clean.rmdirs += ['.tox',
                               'dist',
                               'build',
                               ]
options.paved.clean.patterns += ['*.pickle',
                                 '*.doctree',
                                 '*.gz',
                                 'nosetests.xml',
                                 'sloccount.sc',
                                 '*.pdf', '*.tex',
                                 '*_sch_*.png',
                                 '*_brd_*.png',
                                 '*.b#*', '*.s#*',  # eagle
                                 #'*.pro',
                                 '*.hex',
                                 '*.zip',
                                 'distribute_setup.py',
                                 '*.bak',

                                 # kicad
                                 '$savepcb.brd',
                                 '*.erc',
                                 '*.000',

                                 ]

options.paved.dist.manifest.include.remove('distribute_setup.py')
options.paved.dist.manifest.include.remove('paver-minilib.zip')


@task
@needs(
    #           'clean',
    'cog',
    'html',
    'pdf',
)
def alltest():
    'all tasks to check'
    pass


@task
@needs('sphinxcontrib.paverutils.html')
def html():
    pass


@task
@needs('sphinxcontrib.paverutils.pdf')
def pdf():
    fpdf = list(path('docs/_build/latex').walkfiles('*.pdf'))[0]
    d = path('docs/_build/html')
    d.makedirs()
    fpdf.copy(d)<commit_msg>simplified pavement tasks<commit_after>from easyprocess import Proc
from paver.easy import *

import paver.doctools
import paver.virtual
import paver.misctasks
from paved import *
from paved.dist import *
from paved.util import *
from paved.docs import *
from paved.pycheck import *
from paved.pkg import *

options(
    sphinx=Bunch(
        docroot='docs',
        builddir="_build",
    ),
#    pdf=Bunch(
#        builddir='_build',
#        builder='latex',
#    ),
)


options.paved.clean.rmdirs += ['.tox',
                               'dist',
                               'build',
                               ]
options.paved.clean.patterns += ['*.pickle',
                                 '*.doctree',
                                 '*.gz',
                                 'nosetests.xml',
                                 'sloccount.sc',
                                 '*.pdf', '*.tex',
                                 '*_sch_*.png',
                                 '*_brd_*.png',
                                 '*.b#*', '*.s#*',  # eagle
                                 #'*.pro',
                                 '*.hex',
                                 '*.zip',
                                 'distribute_setup.py',
                                 '*.bak',

                                 # kicad
                                 '$savepcb.brd',
                                 '*.erc',
                                 '*.000',

                                 ]

options.paved.dist.manifest.include.remove('distribute_setup.py')
options.paved.dist.manifest.include.remove('paver-minilib.zip')


@task
@needs(
    #           'clean',
    'cog',
    'html',
    'pdf',
)
def alltest():
    'all tasks to check'
    pass
{'fraction_non_alphanumeric': 0.127373417721519, 'fraction_numerical': 0.0018459915611814346, 'mean_word_length': 0.9900314795383001, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '593339', 'n_tokens_mistral': 1068, 'n_tokens_neox': 1012, 'n_words': 178}