<commit_before>#serial 1
# Author: <NAME> <<EMAIL>>
#
# SYNOPSIS
#
#   AX_CHECK_FLEX([LEX-SPEC, [ACTION-IF-OK[, ACTION-IF-NOT-OK]]])
#
AC_DEFUN([AX_CHECK_FLEX],
[AC_PROG_LEX
AC_CACHE_CHECK([whether lexer generator is compatible], [ax_cv_check_flex_compat],
[
cat > conftest.lex <<AXEOF
ifelse([$1],,[
%%],[$1])
AXEOF
ac_try='"$LEX" --stdout conftest.lex >/dev/null 2>&AS_MESSAGE_LOG_FD'
eval ac_try_echo="\":$LINENO: $ac_try\""
echo "$ac_try_echo" >&AS_MESSAGE_LOG_FD
(eval "$ac_try") 2>&AS_MESSAGE_LOG_FD
if test $? == 0; then
    ax_cv_check_flex_compat=yes
else
    ax_cv_check_flex_compat=no
    echo "failed lexer spec was:" >&AS_MESSAGE_LOG_FD
    sed 's/^/| /' conftest.lex >&AS_MESSAGE_LOG_FD
fi
])
if test x"$ax_cv_check_flex_compat" = xyes; then
    $2
    :
else
    $3
    :
fi
])
<commit_msg>Bail out if (f)lex is missing<commit_after>#serial 1
# Author: <NAME> <<EMAIL>>
#
# SYNOPSIS
#
#   AX_CHECK_FLEX([LEX-SPEC, [ACTION-IF-OK[, ACTION-IF-NOT-OK]]])
#
AC_DEFUN([AX_CHECK_FLEX],
[AM_PROG_LEX
AC_CACHE_CHECK([whether lexer generator is compatible], [ax_cv_check_flex_compat],
[
cat > conftest.lex <<AXEOF
ifelse([$1],,[
%%],[$1])
AXEOF
ac_try='"$LEX" --stdout conftest.lex >/dev/null 2>&AS_MESSAGE_LOG_FD'
eval ac_try_echo="\":$LINENO: $ac_try\""
echo "$ac_try_echo" >&AS_MESSAGE_LOG_FD
(eval "$ac_try") 2>&AS_MESSAGE_LOG_FD
if test $? == 0; then
    ax_cv_check_flex_compat=yes
else
    ax_cv_check_flex_compat=no
    echo "failed lexer spec was:" >&AS_MESSAGE_LOG_FD
    sed 's/^/| /' conftest.lex >&AS_MESSAGE_LOG_FD
fi
])
if test x"$ax_cv_check_flex_compat" = xyes; then
    $2
    :
else
    $3
    :
fi
])

{'fraction_non_alphanumeric': 0.16974169741697417, 'fraction_numerical': 0.00984009840098401, 'mean_word_length': 5.025925925925926, 'pattern_counts': {'":': 2, '<': 13, '<?xml version=': 0, '>': 23, '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': '1156980', 'n_tokens_mistral': 746, 'n_tokens_neox': 711, 'n_words': 133}