<commit_before>#!/bin/sh

export PYTHONPATH=lib:../lib:$PYTHONPATH
pylint -E -e F -f parseable lib/*.py scripts/*.py

if [ -e localconfig.json ] ; then rm localconfig.json; fi
coverage run -a --branch --omit='/Library/*,/usr/*,/opt/*' `which nosetests`
if [ -e localconfig.json ] ; then rm localconfig.json; fi

coverage html --omit="/Library/*,/usr/*,/opt/*" -d coverage.new
if [ -e coverage ] ; then
	mv coverage coverage.old
	mv coverage.new coverage
	rm -rf coverage.old
else
	mv coverage.new coverage
fi<commit_msg>mroe coverage<commit_after>#!/bin/sh

export PYTHONPATH=lib:../lib:$PYTHONPATH
pylint -E -e F -f parseable lib/*.py scripts/*.py

if [ -e localconfig.json ] ; then rm localconfig.json; fi
coverage run -a --branch --omit='/Library/*,/usr/*,/opt/*' `which nosetests`
for filename in lib/*.py ; do
  coverage run -a --branch --omit='/Library/*,/usr/*,/opt/*' $filename
done
for filename in scripts/*.py ; do
  coverage run -a --branch --omit='/Library/*,/usr/*,/opt/*' $filename --list-actions
done
if [ -e localconfig.json ] ; then rm localconfig.json; fi

coverage html --omit="/Library/*,/usr/*,/opt/*" -d coverage.new
if [ -e coverage ] ; then
	mv coverage coverage.old
	mv coverage.new coverage
	rm -rf coverage.old
else
	mv coverage.new coverage
fi
{'fraction_non_alphanumeric': 0.17387883556254918, 'fraction_numerical': 0.0, 'mean_word_length': 3.356164383561644, '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': '5332880', 'n_tokens_mistral': 461, 'n_tokens_neox': 454, 'n_words': 135}