<commit_before>set -xv
cfg () {
   git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
if [[ ! -d $HOME/.cfg ]]; then
 git clone --bare $(git config --get remote.origin.url)  $HOME/.cfg
 mkdir -p "$HOME/.cfg-backup"
fi
 cfg checkout
 if [ $? = 0 ]; then
   echo "Checked out config.";
   else
     echo "Backing up pre-existing dot files.";
     cfg checkout 2>&1 | egrep "^[[:space:]]" | awk '$1=$1' |\
         while read -r file
         do
             test -L "$HOME/$file" && unlink "$HOME/$file" || mv "$HOME/$file" "$HOME/.cfg-backup/$file"
         done
 fi;
 cfg checkout<commit_msg>Remove M from modified items<commit_after>set -xv
cfg () {
   git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
}
if [[ ! -d $HOME/.cfg ]]; then
 git clone --bare $(git config --get remote.origin.url)  $HOME/.cfg
 mkdir -p "$HOME/.cfg-backup"
fi
 cfg checkout
 if [ $? = 0 ]; then
   echo "Checked out config.";
   else
     echo "Backing up pre-existing dot files.";
     cfg checkout 2>&1 | sed 's/^M//g' | egrep "^[[:space:]]" | awk '$1=$1' |\
         while read -r file
         do
             test -L "$HOME/$file" && unlink "$HOME/$file" || mv "$HOME/$file" "$HOME/.cfg-backup/$file"
         done
 fi;
 cfg checkout
{'fraction_non_alphanumeric': 0.19900908340214699, 'fraction_numerical': 0.008257638315441783, 'mean_word_length': 2.2493297587131367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '837714', 'n_tokens_mistral': 431, 'n_tokens_neox': 412, 'n_words': 129}