<commit_before>#!/usr/bin/env bash
set -e

shell=$1
shellfile=${2-'/etc/shells'}

if [[ -z $shell ]]; then
	echo >&2 "missing shell argument"
	exit 1
fi

echo "Ensuring shell is set to '$shell'"
if [[ $SHELL != $shell ]]; then
	echo "Ensuring '$shell' is in '$shellfile'"
	fgrep -qx "$shell" "$shellfile" || echo "$shell" | 1>/dev/null sudo tee -a "$shellfile"
	echo "Changing shell to '$shell'"
	chsh -s "$shell"
fi
<commit_msg>Add clearer logging to update_shell.sh<commit_after>#!/usr/bin/env bash
set -e

shell=$1
shellfile=${2-'/etc/shells'}

if [[ -z $shell ]]; then
	echo >&2 "missing shell argument"
	exit 1
fi

echo "Ensuring shell is set to '$shell'"
if [[ $SHELL == $shell ]]; then
	echo "Confirmed shell is set to '$shell'"
else
	echo "Ensuring '$shell' is in '$shellfile'"
	fgrep -qx "$shell" "$shellfile" || echo "$shell" | 1>/dev/null sudo tee -a "$shellfile"
	echo "Changing shell to '$shell'"
	chsh -s "$shell"
	echo "Shell changed"
fi

{'fraction_non_alphanumeric': 0.18048268625393493, 'fraction_numerical': 0.01049317943336831, 'mean_word_length': 4.101604278074866, 'pattern_counts': {'":': 0, '<': 3, '<?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': '83696', 'n_tokens_mistral': 374, 'n_tokens_neox': 358, 'n_words': 125}