<commit_before># Copyright 2015 <NAME>
# Licensed under the MIT license
#
# Automatically add subdirectories from ~/opt to the user's path.

function push_path() {
    echo $PATH | grep -q :$1 || export PATH=$PATH:$1
}

if [ -d ~/opt ]
then
	for optdir in `ls ~/opt/`
	do
		optdirpath=~/opt/$optdir
		if [ -d "$optdirpath" ]
		then
			optdirsubpath=$optdirpath/bin
			if [ -d "$optdirsubpath" ]
			then
				push_path $optdirsubpath
			else
				push_path $optdirpath
			fi
		fi
	done
fi
<commit_msg>Push paths to *front* of $PATH<commit_after># Copyright 2015 <NAME>
# Licensed under the MIT license
#
# Automatically add subdirectories from ~/opt to the user's path.

function push_path() {
    echo $PATH | grep -q :$1 || export PATH=$1:$PATH
}

if [ -d ~/opt ]
then
	for optdir in `ls ~/opt/`
	do
		optdirpath=~/opt/$optdir
		if [ -d "$optdirpath" ]
		then
			optdirsubpath=$optdirpath/bin
			if [ -d "$optdirsubpath" ]
			then
				push_path $optdirsubpath
			else
				push_path $optdirpath
			fi
		fi
	done
fi

{'fraction_non_alphanumeric': 0.12142152023692004, 'fraction_numerical': 0.011846001974333662, 'mean_word_length': 3.088709677419355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5481513', 'n_tokens_mistral': 439, 'n_tokens_neox': 380, 'n_words': 117}