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

cd build
cmake ..
make
make test<commit_msg>fold build output in travis-ci<commit_after>#!/usr/bin/env bash

function fold_start {
    if [ "$TRAVIS" == "true" ]; then
        echo -en "travis_fold:start:$1\r"
        echo "\$ $1"
    fi
}

function fold_end {
    if [ "$TRAVIS" == "true" ]; then
        echo -en "travis_fold:end:$1\r"
    fi
}

cd build

fold_start "cmake"
cmake ..
fold_end "cmake"

fold_start "make"
make
build_result=$?
fold_end "make"

# Print colored build result.
RED="\e[31m"
GREEN="\e[32m"
YELLOW="\e[33m"
RESET="\e[0m"
echo -ne "${YELLOW}=>${RESET} BUILD - "
if [ "$build_result" == "0" ]; then
    echo -e "${GREEN}SUCCEEDED${RESET}"
else
    echo -e "${RED}FAILED${RESET}"
fi

make test
{'fraction_non_alphanumeric': 0.18242343541944075, 'fraction_numerical': 0.014647137150466045, 'mean_word_length': 3.32183908045977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5127851', 'n_tokens_mistral': 320, 'n_tokens_neox': 308, 'n_words': 74}