<commit_before>#!/bin/sh


SCRIPT_DIR=$(dirname "$0")
BACKUP_DIR=~/.dotfiles.backup
TARGET_DIR=~

main () {
    mkdir -p "$BACKUP_DIR"

    if ! cd "$SCRIPT_DIR/dot"; then
        echo "$SCRIPT_DIR: Could not locate this script's install dir." >&2
        exit 1
    fi

    find * -name '[^.]*' -type f | while read srcFile; do
        targetPath=$TARGET_DIR/.$srcFile
        backupPath=$BACKUP_DIR/.$srcFile

        if [ -e "$targetPath" ]; then
            mkdir -p "$(dirname "$backupPath")"
            mv "$targetPath" "$backupPath" || continue
        fi

        mkdir -p "$(dirname "$targetPath")"
        ln -sf "$PWD/$srcFile" "$targetPath"
    done

    cat <<DONE
All done!

Remember: 

- Before installing plugins, install Vundle:

  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

- To install VIM plugins, run:

vim +PluginClean! +PluginInstall +qa

- You should install Powerline fonts or the status line will look all messed
  up. See https://github.com/powerline/fonts

- You should, do other interesting things.

- As a final step, say hi to someone today.
DONE
}<commit_msg>ct: Add a final final step.<commit_after>#!/bin/sh


SCRIPT_DIR=$(dirname "$0")
BACKUP_DIR=~/.dotfiles.backup
TARGET_DIR=~

main () {
    mkdir -p "$BACKUP_DIR"

    if ! cd "$SCRIPT_DIR/dot"; then
        echo "$SCRIPT_DIR: Could not locate this script's install dir." >&2
        exit 1
    fi

    find * -name '[^.]*' -type f | while read srcFile; do
        targetPath=$TARGET_DIR/.$srcFile
        backupPath=$BACKUP_DIR/.$srcFile

        if [ -e "$targetPath" ]; then
            mkdir -p "$(dirname "$backupPath")"
            mv "$targetPath" "$backupPath" || continue
        fi

        mkdir -p "$(dirname "$targetPath")"
        ln -sf "$PWD/$srcFile" "$targetPath"
    done

    cat <<DONE
All done!

Remember: 

- Before installing plugins, install Vundle:

  git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

- To install VIM plugins, run:

vim +PluginClean! +PluginInstall +qa

- You should install Powerline fonts or the status line will look all messed
  up. See https://github.com/powerline/fonts

- You should, do other interesting things.

- As a final step, say hi to someone today.

- For real.  A final step.
DONE
}
{'fraction_non_alphanumeric': 0.1317391304347826, 'fraction_numerical': 0.0026086956521739132, 'mean_word_length': 2.6640127388535033, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '2294721', 'n_tokens_mistral': 794, 'n_tokens_neox': 732, 'n_words': 236}