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

if [ ! -z $1 ] && [ $1 == "config" ]; then
  sudo mkdir ~/.config/scripts_backup || true
  sudo cp -R ~/.config/scripts/* ~/.config/scripts_backup || true
  sudo rm -rf ~/.config/scripts || true
  sudo mkdir -p ~/.config/scripts
  sudo cp -R .config/* ~/.config/scripts
  echo "empty config files created"
  exit 1
fi

if [ ! -z $1 ] && [ $1 == "restoreconfig" ]; then
  sudo cp -R ~/.config/scripts_backup/* ~/.config/scripts
  sudo rm -rf ~/.config/scripts_backup
  echo "backup config restored"
  exit 1
fi

sudo cp .gitconfig ~/
sudo cp .gitignore_global ~/
sudo cp .tmux.conf ~/
sudo cp .vimrc ~/
sudo cp .zshrc ~/
sudo cp .ghci ~/

if [ ! -z $1 ] && [ $1 == "argos" ]; then
  sudo rm -rf ~/.config/argos || true
  mkdir ~/.config/argos
  sudo cp -R .argos/* ~/.config/argos
  echo "argos scripts copied"
fi

sudo rm -rf ~/.scripts || true
mkdir ~/.scripts
sudo cp -R .scripts/* ~/.scripts

if [ ! -z $1 ] && [ $1 == "work" ]; then
  sudo rm ~/.config/argos/00_aqi.300s.sh -f || true
  sudo rm ~/.scripts/make_backup* -f || true
  sudo cp .config/enginiety.conf ~/.config/scripts/enginiety.conf
  source .config/enginiety.conf
  git config --global user.email $USER_EMAIL_WORK
  echo "work setup done"
else
  git config --global user.email $USER_EMAIL
  echo "personal email set"
fi

echo "dotfiles installed successfully! \o/"
echo "run source ~/.zshrc command manually to refresh your configuration"<commit_msg>adding additional msg to install script<commit_after>#!/usr/bin/env bash
set -e

if [ ! -z $1 ] && [ $1 == "config" ]; then
  sudo mkdir ~/.config/scripts_backup || true
  sudo cp -R ~/.config/scripts/* ~/.config/scripts_backup || true
  sudo rm -rf ~/.config/scripts || true
  sudo mkdir -p ~/.config/scripts
  sudo cp -R .config/* ~/.config/scripts
  echo "empty config files created"
  exit 1
fi

if [ ! -z $1 ] && [ $1 == "restoreconfig" ]; then
  sudo cp -R ~/.config/scripts_backup/* ~/.config/scripts
  sudo rm -rf ~/.config/scripts_backup
  echo "backup config restored"
  exit 1
fi

sudo cp .gitconfig ~/
sudo cp .gitignore_global ~/
sudo cp .tmux.conf ~/
sudo cp .vimrc ~/
sudo cp .zshrc ~/
sudo cp .ghci ~/

if [ ! -z $1 ] && [ $1 == "argos" ]; then
  sudo rm -rf ~/.config/argos || true
  mkdir ~/.config/argos
  sudo cp -R .argos/* ~/.config/argos
  echo "argos scripts copied"
fi

sudo rm -rf ~/.scripts || true
mkdir ~/.scripts
sudo cp -R .scripts/* ~/.scripts
echo "scripts copied"

if [ ! -z $1 ] && [ $1 == "work" ]; then
  sudo rm ~/.config/argos/00_aqi.300s.sh -f || true
  sudo rm ~/.scripts/make_backup* -f || true
  sudo cp .config/enginiety.conf ~/.config/scripts/enginiety.conf
  source .config/enginiety.conf
  git config --global user.email $USER_EMAIL_WORK
  echo "work setup done"
else
  git config --global user.email $USER_EMAIL
  echo "personal email set"
fi

echo "dotfiles installed successfully! \o/"
echo "run source ~/.zshrc command manually to refresh your configuration"
{'fraction_non_alphanumeric': 0.1595959595959596, 'fraction_numerical': 0.010101010101010102, 'mean_word_length': 2.8634590377113134, 'pattern_counts': {'":': 0, '<': 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': '1584612', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1053, 'n_words': 355}