<commit_before>function get_git_status -d "Gets the current git status"
  if command git rev-parse --is-inside-work-tree >/dev/null 2>&1
    set -l dirty (command git status -s --ignore-submodules=dirty | wc -l | sed -e 's/^ *//' -e 's/ *$//' 2> /dev/null)
    set -l ref (command git symbolic-ref --short HEAD 2> /dev/null ; or command git describe --tags --exact-match ^/dev/null ; or command git rev-parse --short HEAD 2> /dev/null)
    set -l tag (command git describe --abbrev=0 2>/dev/null)


    if [ "$dirty" != "0" ]
      set_color red
      echo "*$dirty "
    else
      set_color cyan
    end<commit_msg>even more awesome git prompt<commit_after>function get_git_status -d "Gets the current git status"
  if command git rev-parse --is-inside-work-tree >/dev/null 2>&1
    set -l dirty (command git status -s --ignore-submodules=dirty | wc -l | sed -e 's/^ *//' -e 's/ *$//' 2> /dev/null)
    set -l ref (command git symbolic-ref --short HEAD 2> /dev/null ; or command git describe --tags --exact-match ^/dev/null ; or command git rev-parse --short HEAD 2> /dev/null)
    set -l tag (command git describe --abbrev=0 2>/dev/null)
    set -l ahead (command git status | grep ahead)

    if [ "$dirty" != "0" ]
      set_color red
      echo "*$dirty "
    else
      set_color cyan
    end
    if [ -n "$ahead" ]
      echo "↑ "
    end
{'fraction_non_alphanumeric': 0.14933135215453194, 'fraction_numerical': 0.01188707280832095, 'mean_word_length': 2.3675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '3223631', 'n_tokens_mistral': 489, 'n_tokens_neox': 460, 'n_words': 169}