<commit_before>#!/bin/sh

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p $DIR/../out

ghc --make \
  -outputdir out \
  -o out/Spec \
  -threaded \
  -fforce-recomp \
  -O2 \
  -fllvm \
    $DIR/../Spec.hs

if [ $? -eq 0 ]; then
  $DIR/../out/Spec +RTS -N4
fi

# -fforce-recomp, -O2 and -fllvm are from:
# stackoverflow.com/questions/7017116/haskell-simple-way-to-cache-a-function-call<commit_msg>add Time Command<commit_after>#!/bin/sh

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p $DIR/../out

ghc --make \
  -outputdir out \
  -o out/Spec \
  -threaded \
  -fforce-recomp \
  -O2 \
  -fllvm \
    $DIR/../Spec.hs

if [ $? -eq 0 ]; then
  time $DIR/../out/Spec +RTS -N4
fi

# -fforce-recomp, -O2 and -fllvm are from:
# stackoverflow.com/questions/7017116/haskell-simple-way-to-cache-a-function-call
{'fraction_non_alphanumeric': 0.21241050119331742, 'fraction_numerical': 0.028639618138424822, 'mean_word_length': 2.356, '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': '2442778', 'n_tokens_mistral': 392, 'n_tokens_neox': 361, 'n_words': 72}