<commit_before>#!/bin/bash

set -ex


BUILD_DIR=${TRAVIS_BUILD_DIR}

mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}"


#--- GTest
if [[ ! -d "${DEPENDENCY_DIR}/googletest" ]]
then
    git clone --depth=1 -b master https://github.com/google/googletest googletest
fi

cd googletest

if [[ "${CXX}" == clang* ]]
then
    BUILD_FLAGS="${BUILD_FLAGS} -DCMAKE_CXX_FLAGS=-stdlib=libc++ -I/usr/include/libcxxabi"
fi

mkdir -p build-${CC} && cd build-${CC}

cmake ${BUILD_FLAGS} ..
make -j4
sudo make install


cd ${BUILD_DIR}
<commit_msg>Searching for the missing header.<commit_after>#!/bin/bash

set -ex


BUILD_DIR=${TRAVIS_BUILD_DIR}

mkdir -p "${DEPENDENCY_DIR}" && cd "${DEPENDENCY_DIR}"


#--- GTest
if [[ ! -d "${DEPENDENCY_DIR}/googletest" ]]
then
    git clone --depth=1 -b master https://github.com/google/googletest googletest
fi

cd googletest

if [[ "${CXX}" == clang* ]]
then
    BUILD_FLAGS="${BUILD_FLAGS} -DCMAKE_CXX_FLAGS=-stdlib=libc++ -I/usr/include/libcxxabi"


    echo "*** Searching for cxxabi.h ***"
    find /usr/ -type f -name "cxxabi.h"
fi

mkdir -p build-${CC} && cd build-${CC}

cmake ${BUILD_FLAGS} ..
make -j4
sudo make install


cd ${BUILD_DIR}

{'fraction_non_alphanumeric': 0.18251273344651953, 'fraction_numerical': 0.003395585738539898, 'mean_word_length': 3.831967213114754, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2728247', 'n_tokens_mistral': 497, 'n_tokens_neox': 460, 'n_words': 106}