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

if hash fish 2>/dev/null; then
  shellpath="$(which fish)"
elif hash zsh 2>/dev/null; then
  shellpath="$(which zsh)"
elif hash bash 2>/dev/null; then
  shellpath="$(which bash)"
else
  exit 0
fi

is_allowed="$(grep $shellpath /etc/shells | wc -l | awk '{print $1}')"
if [ "$is_allowed" == '0' ]; then
  echo "$shellpath is not in /etc/shells. i'm gonna need sudo..."
  echo "$shellpath" > /tmp/add_to_etc_shells
  sudo tee -a /etc/shells < /tmp/add_to_etc_shells
  rm /tmp/add_to_etc_shells
fi

chsh -s "$shellpath"
sudo chsh -s "$shellpath"
<commit_msg>I am sorry fish but it's time to return to zsh<commit_after>#!/usr/bin/env bash
set -e
set -u

if hash zsh 2>/dev/null; then
  shellpath="$(which zsh)"
elif hash bash 2>/dev/null; then
  shellpath="$(which bash)"
else
  exit 0
fi

is_allowed="$(grep $shellpath /etc/shells | wc -l | awk '{print $1}')"
if [ "$is_allowed" == '0' ]; then
  echo "$shellpath is not in /etc/shells. i'm gonna need sudo..."
  echo "$shellpath" > /tmp/add_to_etc_shells
  sudo tee -a /etc/shells < /tmp/add_to_etc_shells
  rm /tmp/add_to_etc_shells
fi

chsh -s "$shellpath"
sudo chsh -s "$shellpath"

{'fraction_non_alphanumeric': 0.1598984771573604, 'fraction_numerical': 0.009306260575296108, 'mean_word_length': 3.62109375, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '6575568', 'n_tokens_mistral': 499, 'n_tokens_neox': 465, 'n_words': 147}