<commit_before>dnl The contents of this file are subject to the MonetDB Public
dnl License Version 1.0 (the "License"); you may not use this file
dnl except in compliance with the License. You may obtain a copy of
dnl the License at
dnl http://monetdb.cwi.nl/Legal/MonetDBLicense-1.0.html
dnl 
dnl Software distributed under the License is distributed on an "AS
dnl IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
dnl implied. See the License for the specific language governing
dnl rights and limitations under the License.
dnl 
dnl The Original Code is the Monet Database System.
dnl 
dnl The Initial Developer of the Original Code is CWI.
dnl Portions created by CWI are Copyright (C) 1997-2004 CWI.
dnl All Rights Reserved.
dnl 
dnl Contributor(s):
dnl 		<NAME> <<EMAIL>>
dnl 		<NAME> <<EMAIL>>
dnl 		<NAME> <<EMAIL>>
dnl 		<NAME>  <<EMAIL>>

dnl VERSION_TO_NUMBER macro (copied from libxslt)
AC_DEFUN(MONET_VERSION_TO_NUMBER,
[`$1 | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`])

AC_DEFUN(AM_MONET,
[

dnl check for monet
have_monet=auto
MONET_CFLAGS=""
MONET_LIBS=""
MONET_MOD_PATH=""
MONET_PREFIX="."
if test "x$1" = "x"; then
  MONET_REQUIRED_VERSION="4.3.17"
else
  MONET_REQUIRED_VERSION="$1"
fi
AC_ARG_WITH(monet,
[  --with-monet=DIR     monet is installed in DIR], have_monet="$withval")
if test "x$have_monet" != xno; then
  MPATH="$withval/bin:$PATH"<commit_msg>when calculating version numbers, explicitely cut off suffixes starting with "_" or "-"; not all version of awk seem to do this by themselves<commit_after>dnl The contents of this file are subject to the MonetDB Public
dnl License Version 1.0 (the "License"); you may not use this file
dnl except in compliance with the License. You may obtain a copy of
dnl the License at
dnl http://monetdb.cwi.nl/Legal/MonetDBLicense-1.0.html
dnl 
dnl Software distributed under the License is distributed on an "AS
dnl IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
dnl implied. See the License for the specific language governing
dnl rights and limitations under the License.
dnl 
dnl The Original Code is the Monet Database System.
dnl 
dnl The Initial Developer of the Original Code is CWI.
dnl Portions created by CWI are Copyright (C) 1997-2004 CWI.
dnl All Rights Reserved.
dnl 
dnl Contributor(s):
dnl 		<NAME> <<EMAIL>>
dnl 		<NAME> <<EMAIL>>
dnl 		<NAME> <<EMAIL>>
dnl 		<NAME>  <<EMAIL>>

dnl VERSION_TO_NUMBER macro (copied from libxslt)
AC_DEFUN(MONET_VERSION_TO_NUMBER,
[`$1 | sed 's|[_\-][a-zA-Z0-9]*$||' | awk 'BEGIN { FS = "."; } { printf "%d", ([$]1 * 1000 + [$]2) * 1000 + [$]3;}'`])

AC_DEFUN(AM_MONET,
[

dnl check for monet
have_monet=auto
MONET_CFLAGS=""
MONET_LIBS=""
MONET_MOD_PATH=""
MONET_PREFIX="."
if test "x$1" = "x"; then
  MONET_REQUIRED_VERSION="4.3.17"
else
  MONET_REQUIRED_VERSION="$1"
fi
AC_ARG_WITH(monet,
[  --with-monet=DIR     monet is installed in DIR], have_monet="$withval")
if test "x$have_monet" != xno; then
  MPATH="$withval/bin:$PATH"
{'fraction_non_alphanumeric': 0.11588411588411589, 'fraction_numerical': 0.020646020646020648, 'mean_word_length': 4.6360225140712945, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '879846', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1081, 'n_words': 390}