<commit_before>#!/usr/bin/env bash

CABAL_FLAGS="-j8"

cmd="$1"

shift

cabal-build() {
  cabal v2-build \
    --enable-tests \
    --write-ghc-environment-files=ghc8.4.4+ \
    $CABAL_FLAGS "$@"
}

cabal-test() {
  cabal v2-test \
    --enable-tests \
    --test-show-details=direct \
    $CABAL_FLAGS "$@"
}

cabal-exec() {
  cabal v2-exec "$(echo *.cabal | cut -d . -f 1)" "$@"
}

cabal-bench() {
  cabal v2-bench -j8 \
    $CABAL_FLAGS "$@"
}

cabal-repl() {
  cabal v2-repl \
    $CABAL_FLAGS "$@"
}

cabal-clean() {
  cabal v2-clean
}

case "$cmd" in
  build)
    cabal-build
    ;;
<commit_msg>Add install command to project.sh<commit_after>#!/usr/bin/env bash

CABAL_FLAGS="-j8"

cmd="$1"

shift

cabal-install() {
  cabal v2-install \
    -j8 \
    --installdir="$HOME/.local/bin" \
    --overwrite-policy=always \
    --disable-documentation \
    $CABAL_FLAGS "$@"
}

cabal-build() {
  cabal v2-build \
    --enable-tests \
    --write-ghc-environment-files=ghc8.4.4+ \
    $CABAL_FLAGS "$@"
}

cabal-test() {
  cabal v2-test \
    --enable-tests \
    --test-show-details=direct \
    $CABAL_FLAGS "$@"
}

cabal-exec() {
  cabal v2-exec "$(echo *.cabal | cut -d . -f 1)" "$@"
}

cabal-bench() {
  cabal v2-bench -j8 \
    $CABAL_FLAGS "$@"
}

cabal-repl() {
  cabal v2-repl \
    $CABAL_FLAGS "$@"
}

cabal-clean() {
  cabal v2-clean
}

case "$cmd" in
  install)
    cabal-install
    ;;

  build)
    cabal-build
    ;;

{'fraction_non_alphanumeric': 0.19818562456385205, 'fraction_numerical': 0.019539427773900907, 'mean_word_length': 2.237020316027088, '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': '4770398', 'n_tokens_mistral': 680, 'n_tokens_neox': 669, 'n_words': 100}