<commit_before>#!/bin/bash

if [ -z "$LIBRARY_NAME" ]; then
	LIBRARY_NAME=`basename target/librcimmixcons-*.so | sed -e 's/lib//' -e 's/\.so//'`
	CLANG_OPTS="-L target"
	export LD_LIBRARY_PATH="target"
fi

function run_test {
    local file=$1;
    clang "tests/$file.c" ${CLANG_OPTS} -l "$LIBRARY_NAME" -o "target/$file" || return 1;
    "./target/$file" || return 2;
    valgrind "./target/$file" || return 3;
    return 0;
}

function main {
	local code=0;<commit_msg>Compile integration tests with debug symbols<commit_after>#!/bin/bash

if [ -z "$LIBRARY_NAME" ]; then
	LIBRARY_NAME=`basename target/librcimmixcons-*.so | sed -e 's/lib//' -e 's/\.so//'`
	CLANG_OPTS="-L target"
	export LD_LIBRARY_PATH="target"
fi

function run_test {
    local file=$1;
    clang -g -O0 "tests/$file.c" ${CLANG_OPTS} -l "$LIBRARY_NAME" -o "target/$file" || return 1;
    "./target/$file" || return 2;
    valgrind "./target/$file" || return 3;
    return 0;
}

function main {
	local code=0;
{'fraction_non_alphanumeric': 0.18571428571428572, 'fraction_numerical': 0.013265306122448979, 'mean_word_length': 3.418918918918919, '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': '5876040', 'n_tokens_mistral': 408, 'n_tokens_neox': 385, 'n_words': 92}