<commit_before>#!bash

# Prints an info message to stdout
msg() {
	local mesg=$1
	shift

	printf -- "${mesg}\n" "$@"
}

# Prints a warning to stderr
warn() {
	local mesg=$1
	shift

	printf -- "${mesg}\n" "$@" >&2
}

# Prints an error to stderr
err() {
	local mesg=$1
	shift

	printf -- "${mesg}\n" "$@" >&2
}

shortopts() {
	local c opts
	for c in $(fold -w1 <<< "${1#-}"); do
		opts+=(-$c)
	done
	printf -- "${opts[@]}"
}
<commit_msg>Make shortopts() output all options<commit_after>#!bash

# Prints an info message to stdout
msg() {
	local mesg=$1
	shift

	printf -- "${mesg}\n" "$@"
}

# Prints a warning to stderr
warn() {
	local mesg=$1
	shift

	printf -- "${mesg}\n" "$@" >&2
}

# Prints an error to stderr
err() {
	local mesg=$1
	shift

	printf -- "${mesg}\n" "$@" >&2
}

shortopts() {
	local c
	for c in $(fold -w1 <<< "${1#-}"); do
		printf -- "-$c "
	done
}

{'fraction_non_alphanumeric': 0.22350230414746544, 'fraction_numerical': 0.016129032258064516, 'mean_word_length': 3.0046082949308754, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '4471859', 'n_tokens_mistral': 383, 'n_tokens_neox': 366, 'n_words': 106}