<commit_before>#!/bin/bash -e

LINE_SEPARATOR="==========================================="

main() {
  arg_check $@
  build
  separate
  generate_report $1
}

arg_check() {
  if [ $# -eq 0 ]
  then
    echo "NO Arguments Provided!"
    echo "Usage: ./generate_report.sh payments/payment-file"
    exit 1
  fi
}

build() {
  /Users/saserpoosh/.cabal/bin/cabal build
}

generate_report() {
  ./dist/build/WatchIt/WatchIt $1
}

separate() {
  echo $LINE_SEPARATOR
  echo $LINE_SEPARATOR
}

main $@
<commit_msg>Update 'cabal' path in generate_report shell script<commit_after>#!/bin/bash -e

LINE_SEPARATOR="==========================================="

main() {
  arg_check $@
  build
  separate
  generate_report $1
}

arg_check() {
  if [ $# -eq 0 ]
  then
    echo "NO Arguments Provided!"
    echo "Usage: ./generate_report.sh payments/payment-file"
    exit 1
  fi
}

build() {
  /usr/bin/cabal build
}

generate_report() {
  ./dist/build/WatchIt/WatchIt $1
}

separate() {
  echo $LINE_SEPARATOR
  echo $LINE_SEPARATOR
}

main $@

{'fraction_non_alphanumeric': 0.20986460348162475, 'fraction_numerical': 0.007736943907156673, 'mean_word_length': 3.5, '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': '1731652', 'n_tokens_mistral': 400, 'n_tokens_neox': 385, 'n_words': 80}