<commit_before>typeset -a RUBIES

function chruby_reset()
{
	[[ -z "$RUBY" ]] && return

	export PATH=":$PATH:"; export PATH=${PATH//:$RUBY\/bin:/:}

	[[ -n "$GEM_HOME" ]] && export PATH=${PATH//:$GEM_HOME\/bin:/:}
	[[ -n "$GEM_ROOT" ]] && export PATH=${PATH//:$GEM_ROOT\/bin:/:}

	export PATH=${PATH#:}; export PATH=${PATH%:}
	unset RUBY RUBY_ENGINE RUBY_VERSION RUBYOPT GEM_ROOT GEM_HOME GEM_PATH
	hash -r
}

function chruby_use()
{
	[[ "$RUBY" == "$1" && "$RUBYOPT" == "$2" ]] && return
	[[ -n "$RUBY" ]] && chruby_reset
<commit_msg>Revert "Decouple the removal of GEM_HOME and GEM_ROOT (just in case)."<commit_after>typeset -a RUBIES

function chruby_reset()
{
	[[ -z "$RUBY" ]] && return

	export PATH=":$PATH:"; export PATH=${PATH//:$RUBY\/bin:/:}

	if [[ -n "$GEM_HOME" ]] && [[ -n "$GEM_ROOT" ]]; then
		export PATH=${PATH//:$GEM_HOME\/bin:/:}
		export PATH=${PATH//:$GEM_ROOT\/bin:/:}
	fi

	export PATH=${PATH#:}; export PATH=${PATH%:}

	unset RUBY RUBY_ENGINE RUBY_VERSION RUBYOPT GEM_ROOT GEM_HOME GEM_PATH
	hash -r
}

function chruby_use()
{
	[[ "$RUBY" == "$1" && "$RUBYOPT" == "$2" ]] && return
	[[ -n "$RUBY" ]] && chruby_reset

{'fraction_non_alphanumeric': 0.23972003499562555, 'fraction_numerical': 0.003499562554680665, 'mean_word_length': 4.223744292237443, 'pattern_counts': {'":': 2, '<': 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': '2061778', 'n_tokens_mistral': 530, 'n_tokens_neox': 473, 'n_words': 101}