<commit_before>#!/bin/sh

export DISPLAY=:0

TESTSDIR=/usr/lib/libduicontrolpanel-tests
OUTDIR=/tmp/libduicontrolpanel-tests

mkdir -p ${OUTDIR}

EXIT_CODE=0
for TEST in `ls ${TESTSDIR}/ut_*`; do
	$TEST -xml -o "${OUTDIR}/$(basename $TEST)".xml
	if [ $? -ne 0 ]; then
		EXIT_CODE=$((EXIT_CODE+1))
	fi
done
exit $EXIT_CODE
<commit_msg>skip data dirs in runtests.sh<commit_after>#!/bin/sh

TESTSDIR=/usr/lib/libduicontrolpanel-tests
OUTDIR=/tmp/libduicontrolpanel-tests

mkdir -p ${OUTDIR}

EXIT_CODE=0
for TEST in `ls -d ${TESTSDIR}/ut_*`; do
    if [ -d $TEST ]; then
        break;
    fi
    $TEST -xml -o "${OUTDIR}/$(basename $TEST)".xml
    if [ $? -ne 0 ]; then
        EXIT_CODE=$((EXIT_CODE+1))
    fi
done
exit $EXIT_CODE

{'fraction_non_alphanumeric': 0.16963064295485636, 'fraction_numerical': 0.009575923392612859, 'mean_word_length': 3.6037735849056602, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1318612', 'n_tokens_mistral': 314, 'n_tokens_neox': 305, 'n_words': 67}