<commit_before>#--        MEILER         --#
#-- simple testing script --#
#--        v0.2.2         --#
#--                       --#
#--     programmed by     --#
#--   <NAME>   --#
#--                       --#
rm tests.log
rm README.md
echo running tests
echo "# MEILER TESTS" >> README.md
echo "This is an autogenerated overview of the testfiles." >> README.md
find . -type f -name "*.mei"|while read file;
do
  fname=$(basename "$file")
  saxonb-xslt -s:$file -xsl:../mei2ly.xsl -o:${file%.mei}.ly && lilypond -dno-print-pages -dpreview --formats=png --loglevel=BASIC_PROGRESS ${file%.mei}.ly >> tests.log 2>&1
  #-- next line for SVG output
  #-- saxonb-xslt -s:$file -xsl:../mei2ly.xsl LilyPondVersion="2.18.2" -o:${file%.mei}.ly && lilypond -dbackend=svg -dno-print-pages -dpreview --loglevel=BASIC_PROGRESS ${file%.mei}.ly >> tests.log 2>&1
  #-- rm ${file%.mei}.ly

  #-- add output to README.md
  echo "### [$fname]($fname)" >> README.md
  echo "![$fname](${fname%.mei}.preview.png)" >> README.md
done
echo done
echo see tests.log for details<commit_msg>improved testing script<commit_after>#--        MEILER         --#
#-- simple testing script --#
#--        v0.2.5         --#
#--                       --#
#--     programmed by     --#
#--   <NAME>   --#
#--                       --#
rm tests.log
rm README.md
echo running tests
echo "# MEILER TESTS" >> README.md
echo "This is an autogenerated overview of the testfiles." >> README.md
find . -type f -name "*.mei"|while read file;
do
  fname=$(basename "$file")
  saxonb-xslt -s:$file -o:${file%.mei}.ly -xsl:../mei2ly.xsl LilyPondVersion="2.18.2" && lilypond -dno-print-pages -dpreview --formats=png --loglevel=BASIC_PROGRESS ${file%.mei}.ly >> tests.log 2>&1
  #-- next line for SVG output
  #-- saxonb-xslt -s:$file -o:${file%.mei}.ly -xsl:../mei2ly.xsl useSvgBackend=true && lilypond -dno-print-pages -dno-point-and-click -dbackend=svg -dpreview --loglevel=BASIC_PROGRESS ${file%.mei}.ly >> tests.log 2>&1
  #-- rm ${file%.mei}.ly

  #-- add output to README.md
  echo "### [$fname]($fname)" >> README.md
  echo "![$fname](${fname%.mei}.preview.png)" >> README.md
done
echo done
echo see tests.log for details
{'fraction_non_alphanumeric': 0.20119156736938587, 'fraction_numerical': 0.011915673693858845, 'mean_word_length': 2.37403400309119, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 33, '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': '7086512', 'n_tokens_mistral': 864, 'n_tokens_neox': 823, 'n_words': 183}