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

# Some color variables
RED='\033[0;91m'
NC='\033[0m'

if [ ! -d "build" ]; then
sh ./build.sh
fi

if [ ! -d "build" ]; then
echo "${RED}Cannot test λcommon: Cannot build the library.${NC}"
return 1;
fi

cd build/
cp liblambdacommon.so tests
cd tests
./apercommon_test<commit_msg>:clap: I'm really stupid...<commit_after>#!/usr/bin/env bash

# Some color variables
RED='\033[0;91m'
NC='\033[0m'

if [ ! -d "build" ]; then
sh ./build.sh
fi

if [ ! -d "build" ]; then
echo "${RED}Cannot test λcommon: Cannot build the library.${NC}"
return 1;
fi

cd build/
cp liblambdacommon.so tests
cd tests
./lambdacommon_test
{'fraction_non_alphanumeric': 0.17027863777089783, 'fraction_numerical': 0.034055727554179564, 'mean_word_length': 3.9389312977099236, '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': '1702866', 'n_tokens_mistral': 278, 'n_tokens_neox': 259, 'n_words': 78}