<commit_before>#!/bin/bash

set -ex

mkdir build-stage
cd build-stage

cmake -DCMAKE_BUILD_TYPE="Release"                 \
      -DCMAKE_INSTALL_PREFIX=${PREFIX}             \
      -DBUILD_SHARED_LIBS=ON                       \
      -DENABLE_DOCS=OFF                            \
      -DENABLE_EXAMPLES=ON                         \
      -DENABLE_TESTS=OFF                           \
      ..

make -j${CPU_COUNT}

# beware, tests are expensive (data downloads & many of them, some fairly slow)
# to enable: set cmake above, uncomment python in meta.yaml, uncomment below
# make -j${CPU_COUNT} runtests

make install
<commit_msg>set libdir<commit_after>#!/bin/bash

set -ex

mkdir build-stage
cd build-stage

cmake -DCMAKE_BUILD_TYPE="Release"                 \
      -DCMAKE_INSTALL_PREFIX=${PREFIX}             \
      -DCMAKE_INSTALL_LIBDIR:PATH=${PREFIX}/lib    \
      -DBUILD_SHARED_LIBS=ON                       \
      -DENABLE_DOCS=OFF                            \
      -DENABLE_EXAMPLES=ON                         \
      -DENABLE_TESTS=OFF                           \
      ..

make -j${CPU_COUNT}

# beware, tests are expensive (data downloads & many of them, some fairly slow)
# to enable: set cmake above, uncomment python in meta.yaml, uncomment below
# make -j${CPU_COUNT} runtests

make install

{'fraction_non_alphanumeric': 0.08952959028831563, 'fraction_numerical': 0.0, 'mean_word_length': 1.5964566929133859, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5133050', 'n_tokens_mistral': 413, 'n_tokens_neox': 400, 'n_words': 90}