<commit_before>if exists("b:ftplugin_doctest_version")  
	finish
endif
let b:ftplugin_doctest_version= "v003"

setlocal autoread

set foldmethod=indent
set foldlevel=0
set shiftwidth=4

function DocTest()
    write
    let command = '! TERM=linux && python -m doctest -f -o REPORT_ONLY_FIRST_FAILURE ' . expand('%') . ' | grep -v -e DocTestRunner'
    exec command
endfunction

command! -nargs=0 TT :call DocTest()

nnoremap tt :call DocTest()<cr><commit_msg>Modular doctest will not accept options<commit_after>if exists("b:ftplugin_doctest_version")  
	finish
endif
let b:ftplugin_doctest_version= "v003"

setlocal autoread

set foldmethod=indent
set foldlevel=0
set shiftwidth=4

function DocTest()
    write
    let command = '! TERM=linux && python -m doctest ' . expand('%') . ' | grep -v -e DocTestRunner'
    exec command
endfunction

command! -nargs=0 TT :call DocTest()

nnoremap tt :call DocTest()<cr>
{'fraction_non_alphanumeric': 0.1074561403508772, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 4.7421383647798745, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7358188', 'n_tokens_mistral': 335, 'n_tokens_neox': 319, 'n_words': 89}