<commit_before>#!/bin/env bash

function checkNewlineChars()
{
	# Append a newline character if one doesn't exist yet.
}

function checkShortcutAppended()
{
	# Check if shortcut already exists in ~/.bashrc
}

function append()
{
	# Only run after checkShortcutAppended, adds the shortcut file to ~/.bashrc
	cat "$1" >> ~/.bashrc
}
<commit_msg>Problem with exporting variables present.<commit_after>#!/bin/bash


function defineVariables()
{
	# Take user input and make a variable.
	SHORTCUT=shortcuts/"$1"
	echo "$1"
	echo "$SHORTCUT"
}

function checkNewlineChars()
{
	# Append a newline character
	{ cat ~/.bashrc; echo ""; } > ~/.bashrc.new
	cp ~/.bashrc ~/.bashrc.bak
	echo "Backing up ~/.bashrc to ~/bashrc.bak" 
	mv ~/.bashrc.new ~/.bashrc
	echo "Replaced ~/.bashrc with new version."
}

function checkShortcutAppended()
{
	# Check if shortcut already exists in ~/.bashrc
	if grep -q "$Shorcut" ~/.bashrc; then
		echo "Shortcut already exists. Exiting."
		Continue=false
	else
		echo "Shortcut not found in ~/.bashrc. Proceeding."
		Continue=true
	fi
}

function append()
{
	# Only run after checkShortcutAppended, adds the shortcut file to ~/.bashrc
	if [ $Continue = true ] ; then
		cat "$Shortcut" >> ~/.bashrc
	fi
}

defineVariables
checkShortcutAppended
checkNewlineChars
append

{'fraction_non_alphanumeric': 0.12558139534883722, 'fraction_numerical': 0.002325581395348837, 'mean_word_length': 3.908745247148289, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '1632835', 'n_tokens_mistral': 483, 'n_tokens_neox': 440, 'n_words': 139}