<commit_before>#! /bin/sh

TARGETDIR="/home/joachim/tmp/"
#TARGETDIR="/var/www/files.geomajas.org/htdocs/maven/trunk/geomajas"
TARGET="$TARGETDIR/temp.html"
FINAL="$TARGETDIR/documentation.html"
LINKPREFIX="file:/home/joachim/tmp/"
#LINKPREFIX="http://files.geomajas.org/maven/trunk/geomajas/"

template_start() {
	rm $TARGET
	echo "<html>" > $TARGET
	echo "<head><title>Geomajas documents</title></head>" >> $TARGET
	echo "<body>" >> $TARGET
	echo "<h1>Geomajas documentation</h1>" >> $TARGET
}

template_end() {
	echo "" >> $TARGET
	echo "</body>" >> $TARGET
	echo "</html>" >> $TARGET
	mv $TARGET $FINAL

	# now assure google analytics is used in HTML pages
	perl -e "s/<\/body>/ \<commit_msg>DOC-17 use correct (production) locations<commit_after>#! /bin/sh

#TARGETDIR="/home/joachim/tmp/"
TARGETDIR="/var/www/files.geomajas.org/htdocs/maven/trunk/geomajas"
TARGET="$TARGETDIR/temp.html"
FINAL="$TARGETDIR/documentation.html"
#LINKPREFIX="file:/home/joachim/tmp/"
LINKPREFIX="http://files.geomajas.org/maven/trunk/geomajas/"

template_start() {
	rm $TARGET
	echo "<html>" > $TARGET
	echo "<head><title>Geomajas documents</title></head>" >> $TARGET
	echo "<body>" >> $TARGET
	echo "<h1>Geomajas documentation</h1>" >> $TARGET
}

template_end() {
	echo "" >> $TARGET
	echo "</body>" >> $TARGET
	echo "</html>" >> $TARGET
	mv $TARGET $FINAL

	# now assure google analytics is used in HTML pages
	perl -e "s/<\/body>/ \
{'fraction_non_alphanumeric': 0.19788732394366196, 'fraction_numerical': 0.004225352112676056, 'mean_word_length': 4.871900826446281, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7375040', 'n_tokens_mistral': 535, 'n_tokens_neox': 507, 'n_words': 102}