<commit_before>#!/bin/bash

if [ "$BASH_VERSINFO" -lt 4 ]; then
    echo "You need bash 4 to run this script."
    exit -1;
fi

echo "This script will create symlinks in your ~ directory"
echo "to the files in the dotfiles directory."
read -p "Do you wish to proceed? (Y/n) " USERINPUT
if [ "$USERINPUT" != "Y" ]; then
    unset USERINPUT
    echo "Abort."
    exit 0;
fi

DOTFILESDIR=`dirname $0`
DOTFILESDIR=`readlink -f $DOTFILESDIR` # get absolute path

declare -a linkdirs=(
    "${HOME}/.config"
    "${HOME}/.config/openbox"
    "${HOME}/.config/terminator"
    "${HOME}/.ghc"
    "${HOME}/.vim"
)
declare -A links=(
["${DOTFILESDIR}/bash/bash_aliases"] = "${HOME}/.bash_aliases"
["${DOTFILESDIR}/bash/bashrc"]       = "${HOME}/.bashrc"
["${DOTFILESDIR}/ghc/ghci.conf"]     = "${HOME}/.ghc/ghci.conf"
["${DOTFILESDIR}/git/gitconfig"]     = "${HOME}/.gitconfig"
["${DOTFILESDIR}/openbox/rc.xml"]    = "${HOME}/.config/openbox/rc.xml"
["${DOTFILESDIR}/openbox/autostart"] = "${HOME}/.config/openbox/autostart"
["${DOTFILESDIR}/terminator/config"] = "${HOME}/.config/terminator/config"
["${DOTFILESDIR}/vim/vimrc"]         = "${HOME}/.vim/vimrc"
)

for linkdir in "${linkdirs[@]}"; do
    mkdir -p $linkdir;
done
for dotfile in "${!links[@]}"; do
    ln -s $dotfile ${links["$dotfile"]};
done<commit_msg>Remove whitespace from assignment (revert c0a2756)<commit_after>#!/bin/bash

if [ "$BASH_VERSINFO" -lt 4 ]; then
    echo "You need bash 4 to run this script."
    exit -1;
fi

echo "This script will create symlinks in your ~ directory"
echo "to the files in the dotfiles directory."
read -p "Do you wish to proceed? (Y/n) " USERINPUT
if [ "$USERINPUT" != "Y" ]; then
    unset USERINPUT
    echo "Abort."
    exit 0;
fi

DOTFILESDIR=`dirname $0`
DOTFILESDIR=`readlink -f $DOTFILESDIR` # get absolute path

declare -a linkdirs=(
    "${HOME}/.config"
    "${HOME}/.config/openbox"
    "${HOME}/.config/terminator"
    "${HOME}/.ghc"
    "${HOME}/.vim"
)
declare -A links=(
    ["${DOTFILESDIR}/bash/bash_aliases"]="${HOME}/.bash_aliases"
    ["${DOTFILESDIR}/bash/bashrc"]="${HOME}/.bashrc"
    ["${DOTFILESDIR}/ghc/ghci.conf"]="${HOME}/.ghc/ghci.conf"
    ["${DOTFILESDIR}/git/gitconfig"]="${HOME}/.gitconfig"
    ["${DOTFILESDIR}/openbox/rc.xml"]="${HOME}/.config/openbox/rc.xml"
    ["${DOTFILESDIR}/openbox/autostart"]="${HOME}/.config/openbox/autostart"
    ["${DOTFILESDIR}/terminator/config"]="${HOME}/.config/terminator/config"
    ["${DOTFILESDIR}/vim/vimrc"]="${HOME}/.vim/vimrc"
)

for linkdir in "${linkdirs[@]}"; do
    mkdir -p $linkdir;
done
for dotfile in "${!links[@]}"; do
    ln -s $dotfile ${links["$dotfile"]};
done
{'fraction_non_alphanumeric': 0.2140695915279879, 'fraction_numerical': 0.0056732223903177, 'mean_word_length': 3.853211009174312, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5230146', 'n_tokens_mistral': 1037, 'n_tokens_neox': 999, 'n_words': 214}