<commit_before>#!/bin/sh

set -e

. ./travis-CI/dirs.list

set -x

script_build() {
    if [ -f configure.ac ]; then autoreconf -i; fi
    cabal configure $CABAL_CONSTRAINTS --enable-tests --enable-benchmarks -v2  # -v2 provides useful information for debugging
    cabal build $CABAL_JOBS  # this builds all libraries and executables (including tests/benchmarks)
    cabal test $CABAL_JOBS
    cabal check
    cabal sdist   # tests that a source-distribution can be generated

    # Check that the resulting source distribution can be built & installed.
    # If there are no other `.tar.gz` files in `dist`, this can be even simpler:
    # `cabal install --force-reinstalls dist/*-*.tar.gz`
    SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && \
        (cd dist && cabal install --force-reinstalls "$SRC_TGZ")
}

if [ x"$dirs" = x ]; then
    script_build<commit_msg>apply CABAL_JOBS.<commit_after>#!/bin/sh

set -e

. ./travis-CI/dirs.list

set -x

script_build() {
    if [ -f configure.ac ]; then autoreconf -i; fi
    cabal configure $CABAL_CONSTRAINTS --enable-tests --enable-benchmarks -v2  # -v2 provides useful information for debugging
    cabal build $CABAL_JOBS  # this builds all libraries and executables (including tests/benchmarks)
    cabal test $CABAL_JOBS
    cabal check
    cabal sdist   # tests that a source-distribution can be generated

    # Check that the resulting source distribution can be built & installed.
    # If there are no other `.tar.gz` files in `dist`, this can be even simpler:
    # `cabal install --force-reinstalls dist/*-*.tar.gz`
    SRC_TGZ=$(cabal info . | awk '{print $2;exit}').tar.gz && \
        (cd dist && cabal install $CABAL_JOBS --force-reinstalls "$SRC_TGZ")
}

if [ x"$dirs" = x ]; then
    script_build
{'fraction_non_alphanumeric': 0.1161217587373168, 'fraction_numerical': 0.0033821871476888386, 'mean_word_length': 3.0711009174311927, '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': '799985', 'n_tokens_mistral': 616, 'n_tokens_neox': 602, 'n_words': 191}