<commit_before>set_prompt () {
	local last_command=$?  # Must come first!
	PS1=""
	# Add a bright white exit status for the last command
	# If it was successful, print a green check mark. Otherwise, print a red X.
	if [[ $last_command == 0 ]]; then
		PS1+='\[\e[01;32m\]✓ '
	else
		PS1+='\[\e[01;31m\]✗ '
	fi

	# set variable identifying the chroot you work in (used in the prompt below)
	if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
		debian_chroot=$(cat /etc/debian_chroot)
	fi

	bold=$(tput bold)
	normal=$(tput sgr0)

	where=$PWD
	home=$HOME
	work="$home/work"
	dotfiles="$HOME/dotfiles"
	where="${where/$work/🏢}"
	where="${where/$dotfiles/🏠/⬤}"
	where="${where/$home/🏠}"

	# display root user in red
	if [ $(id -u) -eq 0 ]; then
		PS1+='${debian_chroot:+($debian_chroot)}\[\033[1;31m\]\u\[\033[1;33m\]⚡⚡'
	else
		PS1+='${debian_chroot:+($debian_chroot)}\[\033[1;36m\]\u'
	fi

	# show host name only on remote connection
	if [[ "$3" = true || "${SSH_CLIENT}" || "${SSH_TTY}" || ${EUID} = 0 ]]; then
		PS1+='\[\033[01;32m\]@\h\[\033[00m\]'
	fi
	PS1+=':\[\033[01;34m\]$where\[\033[00m\]'
	if [ ! -w "$PWD" ]; then
		PS1+='\[\033[1;31m\]⊘'
	fi	
	PS1+='\[\033[36m\]'
	PS1+='`__git_ps1`'
	if [[ "$OSTYPE" == "linux-gnu" ]]; then
		# very slow on cygwin and msys
		PS1+='`find_git_commit_diff`'
		PS1+='\[\033[1m\033[33m\]`find_git_dirty`'
	fi

	PS1+="\[\033[0;31m\]\n${bold}λ${normal}\[\033[0m\] "
}
PROMPT_COMMAND='set_prompt'<commit_msg>have pwd in title bar<commit_after>set_prompt () {
	local last_command=$?  # Must come first!
	PS1=""
	# Add a bright white exit status for the last command
	# If it was successful, print a green check mark. Otherwise, print a red X.
	if [[ $last_command == 0 ]]; then
		PS1+='\[\e[01;32m\]✓ '
	else
		PS1+='\[\e[01;31m\]✗ '
	fi

	# set variable identifying the chroot you work in (used in the prompt below)
	if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
		debian_chroot=$(cat /etc/debian_chroot)
	fi

	bold=$(tput bold)
	normal=$(tput sgr0)

	where=$PWD
	home=$HOME
	work="$home/work"
	dotfiles="$HOME/dotfiles"
	where="${where/$work/🏢}"
	where="${where/$dotfiles/🏠/⬤}"
	where="${where/$home/🏠}"

	# display root user in red
	if [ $(id -u) -eq 0 ]; then
		PS1+='${debian_chroot:+($debian_chroot)}\[\033[1;31m\]\u\[\033[1;33m\]⚡⚡'
	else
		PS1+='${debian_chroot:+($debian_chroot)}\[\033[1;36m\]\u'
	fi

	# show host name only on remote connection
	if [[ "$3" = true || "${SSH_CLIENT}" || "${SSH_TTY}" || ${EUID} = 0 ]]; then
		PS1+='\[\033[01;32m\]@\h\[\033[00m\]'
	fi
	PS1+=':\[\033[01;34m\]$where\[\033[00m\]'
	if [ ! -w "$PWD" ]; then
		PS1+='\[\033[1;31m\]⊘'
	fi	
	PS1+='\[\033[36m\]'
	PS1+='`__git_ps1`'
	if [[ "$OSTYPE" == "linux-gnu" ]]; then
		# very slow on cygwin and msys
		PS1+='`find_git_commit_diff`'
		PS1+='\[\033[1m\033[33m\]`find_git_dirty`'
	fi

	PS1+="\[\033[0;31m\]\n${bold}λ${normal}\[\033[0m\] "
	
	# have pwd in the title on term
	case $TERM in
    	xterm*)
			echo -en "\033]0;${PWD}\007"
			;;
		*)
	esac		
			
}
PROMPT_COMMAND='set_prompt'
{'fraction_non_alphanumeric': 0.23847167325428195, 'fraction_numerical': 0.06752305665349144, 'mean_word_length': 3.7751572327044025, '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': '859642', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1373, 'n_words': 274}