<commit_before>set -e

ZSH=${ZSH:-~/.oh-my-zsh}
if [ -d "$ZSH" ]; then
    # Install oh-my-zsh
    echo "Insalling oh-my-zsh..."
    KEEP_ZSHRC=yes CHSH=no RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
else
    echo "oh-my-zsh already installed"
fi

# Copy .zshrc file
echo "Copying .zshrc configuration file..."
cp ./zsh/.zshrc ~/.zshrc

# Setting brew's zsh as default shell
zsh=$(brew --prefix)/bin/zsh
if grep -q $zsh /etc/shells; then
    echo "Setting brew's zsh as default shell..."
    sudo sh -c "echo '$zsh' >> /etc/shells"
    chsh -s $zsh
fi
<commit_msg>Fix inverted condition for checking oh-my-zsh already installed<commit_after>set -e

ZSH=${ZSH:-~/.oh-my-zsh}
if [ -d "$ZSH" ]; then
    echo "oh-my-zsh already installed"
else
    # Install oh-my-zsh
    echo "Insalling oh-my-zsh..."
    KEEP_ZSHRC=yes CHSH=no RUNZSH=no sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi

# Copy .zshrc file
echo "Copying .zshrc configuration file..."
cp ./zsh/.zshrc ~/.zshrc

# Setting brew's zsh as default shell
zsh=$(brew --prefix)/bin/zsh
if grep -q $zsh /etc/shells; then
    echo "Setting brew's zsh as default shell..."
    sudo sh -c "echo '$zsh' >> /etc/shells"
    chsh -s $zsh
fi

{'fraction_non_alphanumeric': 0.16282642089093702, 'fraction_numerical': 0.0, 'mean_word_length': 2.996932515337423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3028069', 'n_tokens_mistral': 532, 'n_tokens_neox': 514, 'n_words': 143}