<commit_before>dnl
dnl File:        aclocal.m4
dnl Revision:    1.10
dnl Last Mod:    13:53:23, 10/01/96
dnl Created:     94/06/19
dnl Author:      <NAME><<EMAIL>>
dnl		 <NAME> <<EMAIL>>
dnl 		 <NAME> <<EMAIL>>
dnl
dnl Search a set of full-path file names, and select the first one
dnl that we can locate. Works a little bit like AC_PATH_PROG, but
dnl search paths can be defined with $3.
dnl
AC_DEFUN(AC_PATH_PROG_SEARCH,
[# Extract the first word of "$2", so it can be a program name with args.
set dummy $2; ac_word=[$]2
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
  /*)
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $3; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_$1="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
dnl If no 4th arg is given, leave the cache variable unset,
dnl so AC_PATH_PROG_SEARCH will keep looking.
  ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  ])dnl
  ;;
esac])dnl
$1="$ac_cv_path_$1"
if test -n "[$]$1"; then
  AC_MSG_RESULT([$]$1)
else
  AC_MSG_RESULT(no)
fi
AC_SUBST($1)dnl
])
dnl --------------------------------------------------------------
dnl AC_FIND_TCL
dnl
dnl Find TCL libraries and include file. If they are in /usr/lib
dnl and /usr/include, we don't set anything.
dnl
AC_DEFUN(AC_FIND_TCL, [
AC_MSG_CHECKING([for tcl])
AC_ARG_WITH(tcl-include,
	[  --with-tcl-include=<path>   Set path to TCL include files],
	tcl_includes=$withval)
changequote(XYZZY,YZZYX)
if test ! -n "$tcl_includes"; then
  if type tclsh ; then
    definc1=`echo 'puts [file dirname [file dirname [info nameofexecutable]]]/include' | tclsh`
    definc2=`echo 'puts [file dirname [file dirname [info library]]]/include' | tclsh`
  fi
fi
changequote([,])
if test ! -n "$tcl_includes"; then
    for dir in $definc1 $definc2 ../tcl* ./tcl* ../tcl*/include ./tcl*/include ../include \
	    /usr/include /usr/include/tcl /usr/local/include \
	    /usr/gnu/include /opt/include /opt/local/include /opt/gnu/include \
	    /local/include /opt/local/gnu/include /usr/local/gnu/include;
    do
       AC_MSG_RESULT(... looking at $dir)
       if test -r "$dir/tcl.h"; then
	  tcl_includes=$dir
	  break
       fi
    done
fi
if test -z "$tcl_includes"; then
   AC_MSG_ERROR(can't find TCL include files; ...exit configure)
fi

AC_ARG_WITH(tcl-version,
	[  --with-tcl-version=<value>  Force TCL version number],
	tcl_version=$withval)
if test ! -n "$tcl_version"; then
    for dir in `echo "$tcl_includes" | sed s/include/bin/` \
	    ../tcl* ./tcl* ../tcl*/bin ./tcl*/bin ../bin \
	    /usr/bin /usr/local/bin /usr/gnu/bin /usr/local/gnu/bin /local/bin \
	    /opt/bin /opt/local/bin /opt/gnu/bin /opt/local/gnu/bin;
    do
       if test -r "$dir/tclsh"; then
	  tcl_binary=$dir/tclsh
	  break
       fi
    done
changequote(XYZZY,YZZYX)
AC_MSG_RESULT(determining version of $tcl_binary)
    tcl_version=`echo 'puts [info tclversion]' | $tcl_binary`
    tcl_library=`echo 'puts [info library]' | $tcl_binary`
changequote([,])
fi
if test ! -n "$tcl_version"; then
  for lib in /usr/lib/libtcl?*.a ;
  do
    if test -r $lib ; then
      tcl_version=`echo $lib | sed s,/usr/lib/libtcl,, | sed s,.a,,`
      break
    fi
  done
fi
if test ! -n "$tcl_version"; then
 AC_MSG_ERROR(can't figure TCL version; ...exit configure)
fi
AC_ARG_WITH(tcl-libraries,
	[  --with-tcl-libraries=<path> Set path to TCL object libraries],
	tcl_libraries=$withval)
changequote(XYZZY,YZZYX)
if test ! -n "$tcl_libraries"; then
  if type tclsh ; then
    deflib1=`echo 'puts [info library]' | tclsh`
  fi
fi
changequote([,])
if test ! -n "$tcl_libraries"; then
    for dir in `echo "$tcl_includes" | sed s/include/lib/` $deflib1 \
	    ../tcl* ./tcl* ../tcl*/lib ./tcl*/lib ../lib \
	    /usr/lib /usr/local/lib /usr/gnu/lib /usr/local/gnu/lib /local/lib \
	    /opt/lib /opt/local/lib /opt/gnu/lib /opt/local/gnu/lib;
    do
       if test -r "$dir"/libtcl* ; then
	  tcl_libraries=$dir
	  break
       fi
    done<commit_msg>fixed problem with finding tcl lib using glob<commit_after>dnl
dnl File:        aclocal.m4
dnl Revision:    1.10
dnl Last Mod:    13:53:23, 10/01/96
dnl Created:     94/06/19
dnl Author:      <NAME><<EMAIL>>
dnl		 <NAME> <<EMAIL>>
dnl 		 <NAME> <<EMAIL>>
dnl
dnl Search a set of full-path file names, and select the first one
dnl that we can locate. Works a little bit like AC_PATH_PROG, but
dnl search paths can be defined with $3.
dnl
AC_DEFUN(AC_PATH_PROG_SEARCH,
[# Extract the first word of "$2", so it can be a program name with args.
set dummy $2; ac_word=[$]2
AC_MSG_CHECKING([for $ac_word])
AC_CACHE_VAL(ac_cv_path_$1,
[case "[$]$1" in
  /*)
  ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
  ;;
  *)
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
  for ac_dir in $3; do
    test -z "$ac_dir" && ac_dir=.
    if test -f $ac_dir/$ac_word; then
      ac_cv_path_$1="$ac_dir/$ac_word"
      break
    fi
  done
  IFS="$ac_save_ifs"
dnl If no 4th arg is given, leave the cache variable unset,
dnl so AC_PATH_PROG_SEARCH will keep looking.
  ifelse([$4], , , [  test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
  ])dnl
  ;;
esac])dnl
$1="$ac_cv_path_$1"
if test -n "[$]$1"; then
  AC_MSG_RESULT([$]$1)
else
  AC_MSG_RESULT(no)
fi
AC_SUBST($1)dnl
])
dnl --------------------------------------------------------------
dnl AC_FIND_TCL
dnl
dnl Find TCL libraries and include file. If they are in /usr/lib
dnl and /usr/include, we don't set anything.
dnl
AC_DEFUN(AC_FIND_TCL, [
AC_MSG_CHECKING([for tcl])
AC_ARG_WITH(tcl-include,
	[  --with-tcl-include=<path>   Set path to TCL include files],
	tcl_includes=$withval)
changequote(XYZZY,YZZYX)
if test ! -n "$tcl_includes"; then
  if type tclsh ; then
    definc1=`echo 'puts [file dirname [file dirname [info nameofexecutable]]]/include' | tclsh`
    definc2=`echo 'puts [file dirname [file dirname [info library]]]/include' | tclsh`
  fi
fi
changequote([,])
if test ! -n "$tcl_includes"; then
    for dir in $definc1 $definc2 ../tcl* ./tcl* ../tcl*/include ./tcl*/include ../include \
	    /usr/include /usr/include/tcl /usr/local/include \
	    /usr/gnu/include /opt/include /opt/local/include /opt/gnu/include \
	    /local/include /opt/local/gnu/include /usr/local/gnu/include;
    do
       AC_MSG_RESULT(... looking at $dir)
       if test -r "$dir/tcl.h"; then
	  tcl_includes=$dir
	  break
       fi
    done
fi
if test -z "$tcl_includes"; then
   AC_MSG_ERROR(can't find TCL include files; ...exit configure)
fi

AC_ARG_WITH(tcl-version,
	[  --with-tcl-version=<value>  Force TCL version number],
	tcl_version=$withval)
if test ! -n "$tcl_version"; then
    for dir in `echo "$tcl_includes" | sed s/include/bin/` \
	    ../tcl* ./tcl* ../tcl*/bin ./tcl*/bin ../bin \
	    /usr/bin /usr/local/bin /usr/gnu/bin /usr/local/gnu/bin /local/bin \
	    /opt/bin /opt/local/bin /opt/gnu/bin /opt/local/gnu/bin;
    do
       if test -r "$dir/tclsh"; then
	  tcl_binary=$dir/tclsh
	  break
       fi
    done
changequote(XYZZY,YZZYX)
AC_MSG_RESULT(determining version of $tcl_binary)
    tcl_version=`echo 'puts [info tclversion]' | $tcl_binary`
    tcl_library=`echo 'puts [info library]' | $tcl_binary`
changequote([,])
fi
if test ! -n "$tcl_version"; then
  for lib in /usr/lib/libtcl?*.a ;
  do
    if test -r $lib ; then
      tcl_version=`echo $lib | sed s,/usr/lib/libtcl,, | sed s,.a,,`
      break
    fi
  done
fi
if test ! -n "$tcl_version"; then
 AC_MSG_ERROR(can't figure TCL version; ...exit configure)
fi
AC_ARG_WITH(tcl-libraries,
	[  --with-tcl-libraries=<path> Set path to TCL object libraries],
	tcl_libraries=$withval)
changequote(XYZZY,YZZYX)
if test ! -n "$tcl_libraries"; then
  if type tclsh ; then
    deflib1=`echo 'puts [info library]' | tclsh`
  fi
fi
changequote([,])
if test ! -n "$tcl_libraries"; then
    for dir in `echo "$tcl_includes" | sed s/include/lib/` $deflib1 \
	    ../tcl* ./tcl* ../tcl*/lib ./tcl*/lib ../lib \
	    /usr/lib /usr/local/lib /usr/gnu/lib /usr/local/gnu/lib /local/lib \
	    /opt/lib /opt/local/lib /opt/gnu/lib /opt/local/gnu/lib;
    do
      for pat in "$dir"/libtcl* ;
      do
        if test -r "$pat" ; then
	  tcl_libraries=$dir
	  break 2
        fi
      done
    done
{'fraction_non_alphanumeric': 0.16558830577522166, 'fraction_numerical': 0.011622334052240594, 'mean_word_length': 2.8751160631383472, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '6902197', 'n_tokens_mistral': 3428, 'n_tokens_neox': 3324, 'n_words': 881}