<commit_before># Usage:
#   Source this script from your Bash start-up script (eg. ~/.bashrc, ~/.bash_profile).
#
# Setting titles:
#   title something
#   title "more than 1 word"
#
# Setting tab colors:
#   tab_color 195  89  76
#   tab_color 219 154  88
#   tab_color 145 185 104
#   tab_color  92 155 204
#
# Setting pre-defined tab colors with titles:
#   tab_red "Rails Server"
#   tab_orange "Rails Console"
#   tab_blue "SQL Dev"
#   tab_green "Tests"

title_help0()
{
echo "ERROR: No argument provided."
echo "Usage:"
echo "  `basename $0` \"title\" to provide a new Terminal title."
}

title_help2()
{
echo "ERROR: Too many arguments provided."
echo "Usage:"
echo "  `basename $0` \"title\" to provide a new Terminal title."
}

function set_iterm_title() {
if [ $# -eq 0 ]
then
  title_help0;
elif [ $# -eq 1 ]
then
  echo -ne "\033]0;$1\007"
elif [ $# -gt 1 ]
then
  title_help2;
fi
}
alias title='set_iterm_title'

function titlepwd() {
  set_terminal_title `pwd`
}

function tab_maroon { title "$1"; tab_color 128 0 0; }
function tab_dark_red { title "$1"; tab_color 139 0 0; }
function tab_brown { title "$1"; tab_color 165 42 42; }
function tab_firebrick { title "$1"; tab_color 178 34 34; }
function tab_crimson { title "$1"; tab_color 220 20 60; }
function tab_tomato { title "$1"; tab_color 255 99 71; }
function tab_coral { title "$1"; tab_color 255 127 80; }
function tab_indian_red { title "$1"; tab_color 205 92 92; }
function tab_light_coral { title "$1"; tab_color 240 128 128; }
function tab_dark_salmon { title "$1"; tab_color 233 150 122; }<commit_msg>Fix for new iTerm version<commit_after># Usage:
#   Source this script from your Bash start-up script (eg. ~/.bashrc, ~/.bash_profile).
#
# Setting titles:
#   title something
#   title "more than 1 word"
#
# Setting tab colors:
#   tab_color 195  89  76
#   tab_color 219 154  88
#   tab_color 145 185 104
#   tab_color  92 155 204
#
# Setting pre-defined tab colors with titles:
#   tab_red "Rails Server"
#   tab_orange "Rails Console"
#   tab_blue "SQL Dev"
#   tab_green "Tests"

title_help0()
{
echo "ERROR: No argument provided."
echo "Usage:"
echo "  `basename $0` \"title\" to provide a new Terminal title."
}

title_help2()
{
echo "ERROR: Too many arguments provided."
echo "Usage:"
echo "  `basename $0` \"title\" to provide a new Terminal title."
}

function set_iterm_title() {
if [ $# -eq 0 ]
then
  title_help0;
elif [ $# -eq 1 ]
then
  echo -ne "\033]0;$1\007"
elif [ $# -gt 1 ]
then
  title_help2;
fi
}
# alias title='set_iterm_title'

function titlepwd() {
  set_terminal_title `pwd`
}

function tab_maroon { title "$1"; tab_color 128 0 0; }
function tab_dark_red { title "$1"; tab_color 139 0 0; }
function tab_brown { title "$1"; tab_color 165 42 42; }
function tab_firebrick { title "$1"; tab_color 178 34 34; }
function tab_crimson { title "$1"; tab_color 220 20 60; }
function tab_tomato { title "$1"; tab_color 255 99 71; }
function tab_coral { title "$1"; tab_color 255 127 80; }
function tab_indian_red { title "$1"; tab_color 205 92 92; }
function tab_light_coral { title "$1"; tab_color 240 128 128; }
function tab_dark_salmon { title "$1"; tab_color 233 150 122; }
{'fraction_non_alphanumeric': 0.12515762925598992, 'fraction_numerical': 0.08259773013871374, 'mean_word_length': 3.9270186335403725, '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': '939627', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1128, 'n_words': 406}