<commit_before>PHP_ARG_ENABLE(gibson, whether to enable Gibson Client support,[ --enable-gibson   Enable Gibson Client support])
if test "$PHP_GIBSON" = "yes"; then
  AC_DEFINE(HAVE_GIBSON, 1, [Whether you have Gibson Client])
  PHP_SUBST(GIBSON_SHARED_LIBADD)
  PHP_ADD_LIBRARY(gibsonclient, 1, GIBSON_SHARED_LIBADD)
  PHP_NEW_EXTENSION(gibson, gibson.c, $ext_shared)
fi<commit_msg>use --with-gibson since it requires a library<commit_after>PHP_ARG_WITH(gibson, for Gibson Client support,
[  --with-gibson             Include Gibson Client support])

if test "$PHP_GIBSON" != "no"; then
  SEARCH_PATH="/usr /usr/local /local"
  SEARCH_FOR="/include/gibson.h"

  if test "$PHP_GIBSON" = "yes"; then
    AC_MSG_CHECKING([for Gibson Client headers in default path])
    for i in $SEARCH_PATH ; do
      if test -r $i/$SEARCH_FOR; then
        GIBSON_DIR=$i
        AC_MSG_RESULT(found in $i)
      fi
    done
  else
    AC_MSG_CHECKING([for Gibson Client headers in $PHP_GIBSON])
    if test -r $PHP_GIBSON/$SEARCH_FOR; then
      GIBSON_DIR=$PHP_GIBSON
      AC_MSG_RESULT([found])
    fi
  fi

  if test -z "$GIBSON_DIR"; then
    AC_MSG_RESULT([not found])
    AC_MSG_ERROR([Cannot find Impala headers])
  fi

  PHP_ADD_INCLUDE($GIBSON_DIR/include)

  LIBNAME=gibsonclient
  LIBSYMBOL=gb_stats

  if test "x$PHP_LIBDIR" = "x"; then
    PHP_LIBDIR=lib
  fi

  PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL,
  [
    PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $GIBSON_DIR/$PHP_LIBDIR, GIBSON_SHARED_LIBADD)
  ],[
    AC_MSG_ERROR([wrong Gibson Client version or lib not found])
  ],[
    -L$GIBSON_DIR/$PHP_LIBDIR
  ])

  AC_DEFINE(HAVE_GIBSON, 1, [Whether you have Gibson Client support])
  PHP_SUBST(GIBSON_SHARED_LIBADD)
  PHP_NEW_EXTENSION(gibson, gibson.c, $ext_shared)
fi
{'fraction_non_alphanumeric': 0.10391822827938671, 'fraction_numerical': 0.0017035775127768314, 'mean_word_length': 4.122093023255814, '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': '4567331', 'n_tokens_mistral': 706, 'n_tokens_neox': 670, 'n_words': 148}