<commit_before>#!/bin/bash

dotfilePath=$(pwd)
realConfigPath=$dotfilePath/.bashrc
homePath=$HOME
linkPath=$homePath/.bashrc

echo "Preparing environment for BASH configuration."
echo "Checking if previous .bashrc exists."

if [ -f $linkPath ]; then
	echo "Previous bash file exists, backing it up with .bak suffix"
	mv $linkPath $linkPath.bak
fi

if [ -L $linkPath ]; then
	echo "Previous symlink exists, removing it."
	rm $linkPath
fi

echo "Creating symlink for .bashrc"
echo "$linkPath -> $realConfigPath"
ln -s $realConfigPath $linkPath

echo
echo "Dotfile preperation complete!"
exit 0<commit_msg>Preparation script now links bash_profile properly<commit_after>#!/bin/bash

dotfilePath=$(pwd)
realConfigPath=$dotfilePath/.bashrc
homePath=$HOME
linkPath=$homePath/.bashrc
profileLinkPath=$homePath/.bash_profile
profilePath=$dotfilePath/.bash_profile

echo "Preparing environment for BASH configuration."
echo "Checking if previous .bashrc exists."

if [ -f $linkPath ]; then
	echo "Previous bash file exists, backing it up with .bak suffix"
	mv $linkPath $linkPath.bak
fi

if [ -L $linkPath ]; then
	echo "Previous symlink exists, removing it."
	rm $linkPath
fi

if [ -f $profileLinkPath ]; then
    echo "Previous bash_profile exists, removing it."
    rm $profileLinkPath
fi

if [ -f $profileLinkPath ]; then
    echo "Previous bash_profile symlink exists, removing it."
    rm $profileLinkPath
fi


echo "Creating symlink for .bashrc"
echo "$linkPath -> $realConfigPath"
ln -s $realConfigPath $linkPath

echo "Creating symlink for .bash_profile"
echo "$profileLinkPath -> $profilePath"
ln -s $profilePath $profileLinkPath
echo
echo "Dotfile preperation complete!"
exit 0
{'fraction_non_alphanumeric': 0.10125074449076832, 'fraction_numerical': 0.0011911852293031567, 'mean_word_length': 5.0, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6360163', 'n_tokens_mistral': 554, 'n_tokens_neox': 530, 'n_words': 181}