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

WORK=$PWD
# run full build & install twice, once for static, once for shared
# because it's the cmake way
for shared in OFF ON; do
    cd "$WORK"
    mkdir build_$shared
    cd build_$shared
    # enable_blaslib=OFF so OpenBLAS will be found instead of the built-in BLAS

    # build & install once for static
    cmake .. \
        -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
        -DCMAKE_INSTALL_LIBDIR="${PREFIX}/lib" \
        -DCMAKE_C_FLAGS="${CFLAGS} -std=c99 -fPIC" \
        -DCMAKE_C_COMPILER=mpicc \
        -DCMAKE_BUILD_TYPE=RELEASE \
        -DTPL_PARMETIS_INCLUDE_DIRS="${PREFIX}/include" \
        -DTPL_PARMETIS_LIBRARIES="${PREFIX}/lib/libparmetis${SHLIB_EXT};${PREFIX}/lib/libmetis${SHLIB_EXT}" \
        -Denable_blaslib=OFF \
        -Denable_tests=ON \
        -Denable_doc=OFF \
        -DBUILD_SHARED_LIBS=$shared

    make -j${CPU_COUNT}
    # ctest seems to have weird PATH assumptions
    export PATH=$PWD/EXAMPLE:$PWD/TEST:$PATH
    ctest
    make install
done
<commit_msg>Don't build static lib for now<commit_after>#!/usr/bin/env bash

WORK=$PWD
# run full build & install twice, once for static, once for shared
# because it's the cmake way
#for shared in OFF ON; do
for shared in ON; do
    cd "$WORK"
    mkdir build_$shared
    cd build_$shared
    # enable_blaslib=OFF so OpenBLAS will be found instead of the built-in BLAS

    # build & install once for static
    cmake .. \
        -DCMAKE_INSTALL_PREFIX="${PREFIX}" \
        -DCMAKE_INSTALL_LIBDIR="${PREFIX}/lib" \
        -DCMAKE_C_FLAGS="${CFLAGS} -std=c99 -fPIC" \
        -DCMAKE_C_COMPILER=mpicc \
        -DCMAKE_BUILD_TYPE=RELEASE \
        -DTPL_PARMETIS_INCLUDE_DIRS="${PREFIX}/include" \
        -DTPL_PARMETIS_LIBRARIES="${PREFIX}/lib/libparmetis${SHLIB_EXT};${PREFIX}/lib/libmetis${SHLIB_EXT}" \
        -Denable_blaslib=OFF \
        -Denable_tests=ON \
        -Denable_doc=OFF \
        -DBUILD_SHARED_LIBS=$shared

    make -j${CPU_COUNT}
    # ctest seems to have weird PATH assumptions
    export PATH=$PWD/EXAMPLE:$PWD/TEST:$PATH
    ctest
    make install
done

{'fraction_non_alphanumeric': 0.1154394299287411, 'fraction_numerical': 0.0019002375296912114, 'mean_word_length': 2.8360655737704916, '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': '5499476', 'n_tokens_mistral': 772, 'n_tokens_neox': 722, 'n_words': 162}