<commit_before>#!/bin/sh

# libtool is only used to build the configuration libraries associated
#  with the --enable-sma-crawler configure option
if [ "$1a" = "--enable-sma-crawlera" ]; then
	LIBTOOLIZE_MSG="echo Running libtoolize..."
	LIBTOOLIZE="libtoolize --force --copy --automake"
	CONFOPTS=" --enable-sma-crawler"
	if [ -e src/util/Makefile.am.disabled ]; then
		mv src/util/Makefile.am.disabled src/util/Makefile.am
	fi
	mv configure.ac configure.ac.orig
	sed -e "s,#AC_PROG_LIBTOOL,AC_PROG_LIBTOOL," configure.ac.orig > configure.ac
elif [ "$1a" = "a" ]; then
	LIBTOOLIZE_MSG=""
	LIBTOOLIZE=""
	CONFOPTS=""
	if [ ! -e src/util/Makefile.am.disabled ]; then
		mv src/util/Makefile.am src/util/Makefile.am.disabled
		touch src/util/Makefile.am
	fi
	if [ -e configure.ac.orig ]; then
		mv configure.ac.orig configure.ac
	fi
else
	echo "usage: ./bootstrap.sh [--enable-sma-crawler]"
	exit 1;
fi

if [ -d /usr/local/share/aclocal ]; then
	EXTRA_INC="-I /usr/local/share/aclocal"
else
	EXTRA_INC=""
fi;

echo "Running aclocal..." && aclocal $EXTRA_INC \
    && $LIBTOOLIZE_MSG && $LIBTOOLIZE \
    && echo "Running automake..." && automake --add-missing --copy --foreign \
    && echo "Running autoconf..." && autoconf \
    && echo "" \
    && echo "You are now ready to run \"./configure\"$CONFOPTS."
<commit_msg>show progress fraction when bootstrapping autoconf<commit_after>#!/bin/sh

# libtool is only used to build the configuration libraries associated
#  with the --enable-sma-crawler configure option
if [ "$1a" = "--enable-sma-crawlera" ]; then
	LIBTOOLIZE_MSG="echo '(1.5/3) Running libtoolize...'"
	LIBTOOLIZE="libtoolize --force --copy --automake"
	CONFOPTS=" --enable-sma-crawler"
	if [ -e src/util/Makefile.am.disabled ]; then
		mv src/util/Makefile.am.disabled src/util/Makefile.am
	fi
	mv configure.ac configure.ac.orig
	sed -e "s,#AC_PROG_LIBTOOL,AC_PROG_LIBTOOL," configure.ac.orig > configure.ac
elif [ "$1a" = "a" ]; then
	LIBTOOLIZE_MSG=""
	LIBTOOLIZE=""
	CONFOPTS=""
	if [ ! -e src/util/Makefile.am.disabled ]; then
		mv src/util/Makefile.am src/util/Makefile.am.disabled
		touch src/util/Makefile.am
	fi
	if [ -e configure.ac.orig ]; then
		mv configure.ac.orig configure.ac
	fi
else
	echo "usage: ./bootstrap.sh [--enable-sma-crawler]"
	exit 1;
fi

if [ -d /usr/local/share/aclocal ]; then
	EXTRA_INC="-I /usr/local/share/aclocal"
else
	EXTRA_INC=""
fi;

echo "(1/3) Running aclocal..." && aclocal $EXTRA_INC \
    && $LIBTOOLIZE_MSG && $LIBTOOLIZE \
    && echo "(2/3) Running automake..." \
    && automake --add-missing --copy --foreign \
    && echo "(3/3) Running autoconf..." && autoconf \
    && echo "" \
    && echo "You are now ready to run \"./configure\"$CONFOPTS."

{'fraction_non_alphanumeric': 0.16549685999261174, 'fraction_numerical': 0.005541189508681197, 'mean_word_length': 3.3189792663476876, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3542734', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1005, 'n_words': 237}