<commit_before>#
# chruby script to collect environment information for bug reports.
#

[[ -z "$PS1" ]] && exec "$SHELL" -i -l "$0"

function print_section()
{
	echo
	echo "## $1"
	echo
}

function indent()
{
	echo "$1" | sed 's/^/    /'
}

function print_variable()
{
	if [[ -n "$2" ]]; then echo "    $1=$2"
	else                   echo "    $1=$(eval "echo \$$1")"
	fi
}

function print_version()
{
	local path="$(command -v "$1")"

	if [[ -n "$path" ]]; then
		indent "$("$1" --version | head -n 1) ($path)"
	fi<commit_msg>Avoid using the variable name path, since zsh apparently uses it.<commit_after>#
# chruby script to collect environment information for bug reports.
#

[[ -z "$PS1" ]] && exec "$SHELL" -i -l "$0"

function print_section()
{
	echo
	echo "## $1"
	echo
}

function indent()
{
	echo "$1" | sed 's/^/    /'
}

function print_variable()
{
	if [[ -n "$2" ]]; then echo "    $1=$2"
	else                   echo "    $1=$(eval "echo \$$1")"
	fi
}

function print_version()
{
	local command_path="$(command -v "$1")"

	if [[ -n "$command_path" ]]; then
		indent "$("$1" --version | head -n 1) ($command_path)"
	fi
{'fraction_non_alphanumeric': 0.20530973451327433, 'fraction_numerical': 0.021238938053097345, 'mean_word_length': 2.8469387755102042, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1420155', 'n_tokens_mistral': 444, 'n_tokens_neox': 427, 'n_words': 131}