<commit_before>#!/usr/bin/env bash

# Confirm the user wants to remove all dotfiles in their home directory
printf "This script will permanently delete the following dotfiles from your "
printf "home directory and replace them with symlinks to the corresponding "
printf "files in this directory:"
declare -a files=(".bash_profile" ".bashrc" ".gemrc" ".gitconfig"
                  ".gitignore_global" ".gitk" ".npmrc" ".railsrc" ".redebugrc"
                  ".vim/" ".vimrc")
echo
for i in "${files[@]}"
do
  echo "  $i"
done

read -p "Are you sure? " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
  exit 1
fi


dotfiles=$(pwd)
# Symlink dotfiles to home directory
printf "Making Terminal symlinks...\n"
cd ~; rm .bash_profile; ln -s $dotfiles/.bash_profile .bash_profile
cd ~; rm .bashrc;       ln -s $dotfiles/.bashrc       .bashrc
cd ~; rm .gemrc;        ln -s $dotfiles/.gemrc        .gemrc
cd ~; rm .gitconfig;    ln -s $dotfiles/.gitconfig    .gitconfig
cd ~; rm .gitignore_global; ln -s $dotfiles/.gitignore_global .gitignore_global
cd ~; rm .gitk;         ln -s $dotfiles/.gitk         .gitk
cd ~; rm .npmrc;        ln -s $dotfiles/.npmrc        .npmrc
cd ~; rm .railsrc;      ln -s $dotfiles/.railsrc      .railsrc
cd ~; rm .redebugrc;    ln -s $dotfiles/.redebugrc    .redebugrc
cd ~; rm -rf .vim/;     ln -s $dotfiles/.vim/         .vim/
cd ~; rm .vimrc;        ln -s $dotfiles/.vimrc        .vimrc

printf "\nFinished!\n"<commit_msg>Remove .vim/ from symlink script and refactor into loop<commit_after>#!/usr/bin/env bash

# Confirm the user wants to remove all dotfiles in their home directory
printf "This script will permanently delete the following dotfiles from your "
printf "home directory and replace them with symlinks to the corresponding "
printf "files in this directory:"
declare -a files=(".bash_profile"     ".bashrc" ".gemrc" ".gitconfig"
                  ".gitignore_global" ".gitk"   ".npmrc" ".railsrc" ".rdebugrc"
                  ".vimrc")
echo
for i in "${files[@]}"
do
  printf "\t%s\n" "$i"
done

read -p "Do you wish to proceed? [y/n] " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
  printf "No symlinks created.\n"
  exit 1
fi


dotfiles=$(pwd)
# Symlink dotfiles to home directory
printf "Making Terminal symlinks in %s\n" "$HOME"
cd ~
for i in "${files[@]}"
do
  printf "\tSymlinking %s\n" "$i"
  rm "$i"
  ln -s "$dotfiles"/"$i" "$i"
done

printf "Finished!\n"
{'fraction_non_alphanumeric': 0.14208558371416702, 'fraction_numerical': 0.0016618196925633569, 'mean_word_length': 2.7160493827160495, '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': '5542606', 'n_tokens_mistral': 880, 'n_tokens_neox': 833, 'n_words': 294}