<commit_before># Install xcode terminal tools
echo "Installing Xcode command tools"
xcode-select --install

# Installing basic packages
echo "Installing Brew and Brew Cask"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask
brew update

echo "Installing primary formulas"
brew install git
brew install ansible


echo "Cloning repo to ~/.dotfiles"
if [ -d ~/.dotfiles ]; then
	git clone <EMAIL>:nass600/dotfiles.git ~/.dotfiles
fi
cd ~/.dotfiles

echo "Running Ansible playbook"
ansible-playbook ansible/setup.yml<commit_msg>Adding colors to script<commit_after>function title {
	reset="\033[0m"
	yellow="\033[1;33m"
	purple="\033[1;35m"
	echo -e "\n$yellow>>>$purple $1 $reset\n"
}

# Clearing the terminal
clear

# Install xcode terminal tools
title "Installing Xcode command tools"
xcode-select --install

# Installing basic packages
title "Installing Brew and Brew Cask"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install caskroom/cask/brew-cask
brew update

title "Installing primary formulas"
brew install git
brew install ansible

# Updating repository
title "Cloning repo to ~/.dotfiles"
if [ -d ~/.dotfiles ]; then
	git clone <EMAIL>:nass600/dotfiles.git ~/.dotfiles
	cd ~/.dotfiles
else
	cd ~/dotfiles
	git pull origin master
fi

# Installing packages via Ansible
title "Running Ansible playbook"
ansible-playbook ansible/setup.yml
{'fraction_non_alphanumeric': 0.10762942779291552, 'fraction_numerical': 0.015667574931880108, 'mean_word_length': 4.8063241106719365, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '6286313', 'n_tokens_mistral': 505, 'n_tokens_neox': 472, 'n_words': 154}