<commit_before>#!/bin/bash

cabal clean
cabal configure --enable-tests --disable-optimization --disable-library-coverage
rm -r tests.tix  .hpc/

while true; do
  inotifywait -r -e modify src/ testsuite/ FrozenBeagle.cabal  

  cabal test 2>&1  \
        | ack --flush --passthru --color --color-match=red    "^.*FAIL.*" \
        | ack --flush --passthru --color --color-match=red    "^.*Fail.*" \
        | ack --flush --passthru --color --color-match=red    "^.*fail.*" \
        | ack --flush --passthru --color --color-match=yellow "^.*Warning.*" \
        | ack --flush --passthru --color --color-match=green  "^.*PASS*"

  if [ ${PIPESTATUS[0]} -eq 0 ]
  then
    echo
    echo -e "\tBuild OK" | ack --flush --passthru --color --color-match=green "."
  else
    echo
    echo -e "\tBuild FAILED" | ack --flush --passthru --color --color-match=red "."
    beep
  fi

  echo
  echo
done<commit_msg>beep is not at all the unixes<commit_after>#!/bin/bash

cabal clean
cabal configure --enable-tests --disable-optimization --disable-library-coverage
rm -r tests.tix  .hpc/

while true; do
  inotifywait -r -e modify src/ testsuite/ FrozenBeagle.cabal  

  cabal test 2>&1  \
        | ack --flush --passthru --color --color-match=red    "^.*FAIL.*" \
        | ack --flush --passthru --color --color-match=red    "^.*Fail.*" \
        | ack --flush --passthru --color --color-match=red    "^.*fail.*" \
        | ack --flush --passthru --color --color-match=yellow "^.*Warning.*" \
        | ack --flush --passthru --color --color-match=green  "^.*PASS*"

  if [ ${PIPESTATUS[0]} -eq 0 ]
  then
    echo
    echo -e "\tBuild OK" | ack --flush --passthru --color --color-match=green "."
  else
    echo
    echo -e "\tBuild FAILED" | ack --flush --passthru --color --color-match=red "."
    #beep
  fi

  echo
  echo
done
{'fraction_non_alphanumeric': 0.18396485447556288, 'fraction_numerical': 0.004393190554640308, 'mean_word_length': 1.9917898193760262, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2518803', 'n_tokens_mistral': 695, 'n_tokens_neox': 674, 'n_words': 177}