<commit_before>#!/bin/sh
set -euo pipefail

if [[ `uname` == Darwin ]]; then
  export LDFLAGS="-Wl,-rpath,$PREFIX/lib $LDFLAGS"
fi

# Using autoconf
./autogen.sh
./configure --prefix="$PREFIX"
make check
make install

# Using cmake
# mkdir build
# cd build
# cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=$PREFIX ..
# make check
# make install
<commit_msg>Try to build on osx with cmake<commit_after>#!/bin/sh
set -euo pipefail

if [[ `uname` == Darwin ]]; then
  export LDFLAGS="-Wl,-rpath,$PREFIX/lib $LDFLAGS"
fi

# Using autoconf
# ./autogen.sh
# ./configure --prefix="$PREFIX"
# make check
# make install

# Using cmake
mkdir build
cd build
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INCLUDE_PATH="$PREFIX/include" -D CMAKE_LIBRARY_PATH="$PREFIX/lib" -D CMAKE_C_FLAGS_RELEASE="-MT" -D CMAKE_CXX_FLAGS_RELEASE="-MT" -D CMAKE_C_FLAGS_DEBUG="-MTd" CMAKE_INSTALL_PREFIX="$PREFIX" ..
# cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=$PREFIX ..
make check
make install

{'fraction_non_alphanumeric': 0.14026236125126135, 'fraction_numerical': 0.0, 'mean_word_length': 4.734104046242774, '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': '730946', 'n_tokens_mistral': 383, 'n_tokens_neox': 357, 'n_words': 92}