<commit_before>PHP_ARG_ENABLE(cld, enable Chromium Compact Language Detector,
[  --enable-cld Enable Chromium Compact Language Detector])

if test -z "$PHP_LIBCLD_DIR"; then
  PHP_ARG_WITH(libcld-dir, libcld install dir,
  [  --with-libcld-dir=DIR    Chromium Compact Language Detector: libcld install prefix], no, no)
fi

if test "$PHP_CLD" != "no"; then
    if ! test -f $PHP_LIBCLD_DIR/libcld.a; then
        AC_MSG_ERROR([libcld not found. Specify installation directory with --with-libcld-dir=])
    fi

    PHP_REQUIRE_CXX()
    PHP_SUBST(CLD_SHARED_LIBADD)
    PHP_ADD_INCLUDE($PHP_LIBCLD_DIR)
    PHP_ADD_LIBRARY_WITH_PATH(cld, $PHP_LIBCLD_DIR, CLD_SHARED_LIBADD)
    PHP_NEW_EXTENSION(cld, cld.cc, $ext_shared)
    CXXFLAGS="-strict -Wall -Wno-write-strings"
fi
<commit_msg>Fixing build on Linux<commit_after>PHP_ARG_ENABLE(cld, enable Chromium Compact Language Detector,
[  --enable-cld Enable Chromium Compact Language Detector])

if test -z "$PHP_LIBCLD_DIR"; then
  PHP_ARG_WITH(libcld-dir, libcld install dir,
  [  --with-libcld-dir=DIR    Chromium Compact Language Detector: libcld install prefix], no, no)
fi

if test "$PHP_CLD" != "no"; then
    if ! test -f $PHP_LIBCLD_DIR/libcld.a; then
        AC_MSG_ERROR([libcld not found. Specify installation directory with --with-libcld-dir=])
    fi

    PHP_REQUIRE_CXX()
    PHP_SUBST(CLD_SHARED_LIBADD)
    PHP_ADD_INCLUDE($PHP_LIBCLD_DIR)
    PHP_ADD_LIBRARY(stdc++, 1, CLD_SHARED_LIBADD)
    PHP_ADD_LIBRARY_WITH_PATH(cld, $PHP_LIBCLD_DIR, CLD_SHARED_LIBADD)
    PHP_NEW_EXTENSION(cld, cld.cc, $ext_shared)
    CXXFLAGS="-Wall -Wno-write-strings"
fi

{'fraction_non_alphanumeric': 0.10457920792079207, 'fraction_numerical': 0.0006188118811881188, 'mean_word_length': 4.48135593220339, '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': '6828460', 'n_tokens_mistral': 654, 'n_tokens_neox': 622, 'n_words': 133}