<commit_before>function _git_rev_name --description "print a representation of the currently checked-out revision"

	set _rev_name (git symbolic-ref -q HEAD ^/dev/null)
	if echo "$_rev_name" | grep -q -E 'refs/(heads|tags)/*'
		set _rev_name (echo "$_rev_name" | sed -n "s/refs\/\(heads\|tags\)\/\(.*\)/\2/p")
	else
		set _rev_name (git name-rev --name-only --always --no-undefined HEAD ^/dev/null | sed -e "s/[\^\~]0//g")
	end	
	echo $_rev_name
end<commit_msg>Add timeout to git commands<commit_after>function _git_rev_name --description "print a representation of the currently checked-out revision"

	set _rev_name (timeout --preserve_status 0.1s git symbolic-ref -q HEAD ^/dev/null)
	if echo "$_rev_name" | grep -q -E 'refs/(heads|tags)/*'
		set _rev_name (echo "$_rev_name" | sed -n "s/refs\/\(heads\|tags\)\/\(.*\)/\2/p")
	else
		set _rev_name (timeout --preserve-status 0.1s git name-rev --name-only --always --no-undefined HEAD ^/dev/null | sed -e "s/[\^\~]0//g")
	end	
	echo $_rev_name
end
{'fraction_non_alphanumeric': 0.17935871743486975, 'fraction_numerical': 0.008016032064128256, 'mean_word_length': 3.3815789473684212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6392398', 'n_tokens_mistral': 395, 'n_tokens_neox': 370, 'n_words': 107}