<commit_before>#!/bin/sh
# If we're using bash, we do this
[ "x$BASH" = "x" ] || shopt -s extglob

checkutil() {
	printf " * Checking for $1..."
	which $1 >/dev/null
	if [ $? -eq 0 ]; then
		printf "ok!\n";
		return 0;
	else
		printf "not found!"
		return 1
	fi
}

ask() {
    while true; do
			prompt=""
			default=""

        if [ "${2:-}" = "Y" ]; then
            prompt="Y/n"
            default=Y
        elif [ "${2:-}" = "N" ]; then
            prompt="y/N"
            default=N
        else
            prompt="y/n"<commit_msg>Politely ask bash to be POSIX compliant.<commit_after>#!/bin/sh
# If we're using bash, we do this
if [ "x$BASH" = "x" ]; then
	shopt -s extglob
	set -o posix
fi

checkutil() {
	printf " * Checking for $1..."
	which $1 >/dev/null
	if [ $? -eq 0 ]; then
		printf "ok!\n";
		return 0;
	else
		printf "not found!"
		return 1
	fi
}

ask() {
    while true; do
			prompt=""
			default=""

        if [ "${2:-}" = "Y" ]; then
            prompt="Y/n"
            default=Y
        elif [ "${2:-}" = "N" ]; then
            prompt="y/N"
            default=N
        else
            prompt="y/n"
{'fraction_non_alphanumeric': 0.18044444444444444, 'fraction_numerical': 0.012444444444444444, 'mean_word_length': 1.7198067632850242, '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': '1112308', 'n_tokens_mistral': 453, 'n_tokens_neox': 416, 'n_words': 123}