<commit_before># Get commonly needed env vars
RANK_FILTER_CXX_FLAGS="${CXXFLAGS}"
RANK_FILTER_LDFLAGS="${CXX_LDFLAGS}"


# CONFIGURE
SRC=$(pwd)
mkdir -pv build
cd build
BLD=$(pwd)

cmake ${SRC}\
        -DCMAKE_MACOSX_RPATH=false \
\
        -DCMAKE_PREFIX_PATH="${PREFIX}" \
\
        -DCMAKE_SHARED_LINKER_FLAGS="${RANK_FILTER_LDFLAGS}" \
\
        -DCMAKE_CXX_LINK_FLAGS="${RANK_FILTER_CXX_FLAGS}" \
        -DCMAKE_CXX_FLAGS="${RANK_FILTER_CXX_FLAGS}" \
\
        -DBOOST_ROOT="${PREFIX}" \
        -DVIGRA_ROOT="${PREFIX}" \
\
        -DPYTHON_EXECUTABLE="${PYTHON}" \
\

# BUILD (in parallel)<commit_msg>rank_filter.recipe/build.sh: Set a variable to hold the variable name of the library search path according to the OS.<commit_after># Get commonly needed env vars
RANK_FILTER_CXX_FLAGS="${CXXFLAGS}"
RANK_FILTER_LDFLAGS="${CXX_LDFLAGS}"

if [[ `uname` == 'Darwin' ]]; then
    LIBRARY_SEARCH_VAR=DYLD_FALLBACK_LIBRARY_PATH
else
    LIBRARY_SEARCH_VAR=LD_LIBRARY_PATH
fi

# CONFIGURE
SRC=$(pwd)
mkdir -pv build
cd build
BLD=$(pwd)

cmake ${SRC}\
        -DCMAKE_MACOSX_RPATH=false \
\
        -DCMAKE_PREFIX_PATH="${PREFIX}" \
\
        -DCMAKE_SHARED_LINKER_FLAGS="${RANK_FILTER_LDFLAGS}" \
\
        -DCMAKE_CXX_LINK_FLAGS="${RANK_FILTER_CXX_FLAGS}" \
        -DCMAKE_CXX_FLAGS="${RANK_FILTER_CXX_FLAGS}" \
\
        -DBOOST_ROOT="${PREFIX}" \
        -DVIGRA_ROOT="${PREFIX}" \
\
        -DPYTHON_EXECUTABLE="${PYTHON}" \
\

# BUILD (in parallel)
{'fraction_non_alphanumeric': 0.14697802197802198, 'fraction_numerical': 0.0, 'mean_word_length': 3.6549520766773163, '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': '5601068', 'n_tokens_mistral': 582, 'n_tokens_neox': 541, 'n_words': 82}