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

set -e

if [ -z "${OUT}" ] || [ -z "${SRC}" ] || [ -z "${WORK}" ]; then
    echo "OUT, SRC or WORK not set - script expects to be called inside oss-fuzz build env"
    exit 1
fi

autoreconf -vfi
./configure --disable-shared --enable-static
make clean
make -j$(nproc)
$CXX $CXXFLAGS -o $OUT/fuzzer -I./src/ $LIB_FUZZING_ENGINE ./src/tools/fuzzer.cxx ./src/hunspell/.libs/libhunspell-1.7.a

#dic/aff combos to test
cp -f ./tests/korean.* $OUT/
cp -f ./tests/utf8_nonbmp.* $OUT/
cp -f ./tests/checkcompoundpattern*.* $OUT/<commit_msg>add some more cases to the default fuzz (#802)<commit_after>#!/usr/bin/env bash

set -e

if [ -z "${OUT}" ] || [ -z "${SRC}" ] || [ -z "${WORK}" ]; then
    echo "OUT, SRC or WORK not set - script expects to be called inside oss-fuzz build env"
    exit 1
fi

autoreconf -vfi
./configure --disable-shared --enable-static
make clean
make -j$(nproc)
$CXX $CXXFLAGS -o $OUT/fuzzer -I./src/ $LIB_FUZZING_ENGINE ./src/tools/fuzzer.cxx ./src/hunspell/.libs/libhunspell-1.7.a

#dic/aff combos to test
cp -f ./tests/arabic.* $OUT/
cp -f ./tests/checkcompoundpattern*.* $OUT/
cp -f ./tests/korean.* $OUT/
cp -f ./tests/utf8*.* $OUT/
{'fraction_non_alphanumeric': 0.1899159663865546, 'fraction_numerical': 0.009243697478991597, 'mean_word_length': 2.9306930693069306, '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': '6566383', 'n_tokens_mistral': 498, 'n_tokens_neox': 472, 'n_words': 139}