<commit_before>HOME=~
SOURCE_DIR=src
DOTFILE_PREFIX=dot

for source in $SOURCE_DIR/*; do
  filename=$source
  filename=${filename#$SOURCE_DIR/}
  filename=${filename#$DOTFILE_PREFIX}

  original_fullpath=`realpath $source`
  symlink_fullpath=$HOME/$filename

  if [ -L $symlink_fullpath ]; then
    if [ `readlink $symlink_fullpath` = $original_fullpath ]; then
      echo "Symlink: $symlink_fullpath => $original_fullpath"
    else
      echo "\033[31mConflicted symlink: $symlink_fullpath\033[m"
    fi
  elif [ -e $symlink_fullpath ]; then
    echo "\033[31mConflicted file: $symlink_fullpath\033[m"
  else
    echo "\033[32mSymlink: $symlink_fullpath => $original_fullpath\033[m"
    ln -s $original_fullpath $symlink_fullpath
  fi
done<commit_msg>Fix message<commit_after>HOME=~
SOURCE_DIR=src
DOTFILE_PREFIX=dot

for source in $SOURCE_DIR/*; do
  filename=$source
  filename=${filename#$SOURCE_DIR/}
  filename=${filename#$DOTFILE_PREFIX}

  original_fullpath=`realpath $source`
  symlink_fullpath=$HOME/$filename

  if [ -L $symlink_fullpath ]; then
    if [ `readlink $symlink_fullpath` = $original_fullpath ]; then
      echo "Symlink: $symlink_fullpath -> $original_fullpath"
    else
      echo "\033[31mConflicted symlink: $symlink_fullpath\033[m"
    fi
  elif [ -e $symlink_fullpath ]; then
    echo "\033[31mConflicted file: $symlink_fullpath\033[m"
  else
    echo "\033[32mSymlink: $symlink_fullpath -> $original_fullpath\033[m"
    ln -s $original_fullpath $symlink_fullpath
  fi
done
{'fraction_non_alphanumeric': 0.118508655126498, 'fraction_numerical': 0.03195739014647137, 'mean_word_length': 4.736641221374046, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1126707', 'n_tokens_mistral': 570, 'n_tokens_neox': 533, 'n_words': 104}