<commit_before>#!/bin/sh
# $Id$

usage()
{
	echo "usage: $0 rootdir hasvers makeprog localdefsmk" >&2
	exit 1
}

if getopts "" c; then
	usage
fi

if [ $# -ne 4 ]; then
	usage
fi

rootdir=$1
hasvers=$2
make=$3
localdefsmk=$4

{
	echo "# generated by `whoami` from `hostname` on `date`"
	echo "PICKLE_HAS_VERSION=$hasvers"

	for i in $rootdir/compat/*; do
		pushd $i >/dev/null || continue

		name=$(echo ${i##*/} | tr 'a-z' 'A-Z')
		$make >/dev/null && echo "PICKLE_HAVE_$name=1"
		popd >/dev/null
	done
} > $localdefsmk<commit_msg>clean just to make sure<commit_after>#!/bin/sh
# $Id$

usage()
{
	echo "usage: $0 rootdir hasvers makeprog localdefsmk" >&2
	exit 1
}

if getopts "" c; then
	usage
fi

if [ $# -ne 4 ]; then
	usage
fi

rootdir=$1
hasvers=$2
make=$3
localdefsmk=$4

{
	echo "# generated by `whoami` from `hostname` on `date`"
	echo "PICKLE_HAS_VERSION=$hasvers"

	for i in $rootdir/compat/*; do
		pushd $i >/dev/null || continue

		name=$(echo ${i##*/} | tr 'a-z' 'A-Z')
		$make clean >/dev/null
		$make >/dev/null && echo "PICKLE_HAVE_$name=1"
		popd >/dev/null
	done
} > $localdefsmk
{'fraction_non_alphanumeric': 0.17866909753874202, 'fraction_numerical': 0.016408386508659983, 'mean_word_length': 3.6923076923076925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '2055140', 'n_tokens_mistral': 502, 'n_tokens_neox': 480, 'n_words': 128}