<commit_before>set -euxo pipefail

rm -rf build || true
mkdir -p build/
cd build

# eigen3 is expected in this subdir; otherwise a bundled one is extracted
mkdir -p ./third-party
ln -s ${PREFIX}/include/eigen3 ./third-party/eigen3

cmake ${SRC_DIR} \
    ${CMAKE_ARGS} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_LIBDIR=${PREFIX}/lib

make
make install<commit_msg>disable openmp on osx for now?<commit_after>set -euxo pipefail

rm -rf build || true
mkdir -p build/
cd build

# eigen3 is expected in this subdir; otherwise a bundled one is extracted
mkdir -p ./third-party
ln -s ${PREFIX}/include/eigen3 ./third-party/eigen3

OUR_CMAKE_FLAGS=""
if [[ $target_platform == "osx-*" ]]; then
    OUR_CMAKE_FLAGS+="-DUSE_OPENMP=OFF"
fi

cmake ${SRC_DIR} \
    ${CMAKE_ARGS} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_LIBDIR=${PREFIX}/lib \
    $OUR_CMAKE_FLAGS

make
make install
{'fraction_non_alphanumeric': 0.12053571428571429, 'fraction_numerical': 0.006696428571428571, 'mean_word_length': 3.721052631578947, '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': '208318', 'n_tokens_mistral': 342, 'n_tokens_neox': 321, 'n_words': 90}