<commit_before>function preexec() {
  timer=$(gdate +%s%3N)
}
function precmd() {
  dateString=$(gdate +%c)
  if [ $timer ]; then
    now=$(gdate +%s%3N)
    elapsed=$(($now-$timer))
    unit="ms"
    color=240
    if [ $elapsed -ge 1000 ]; then
      elapsed=$(($elapsed/1000))
      unit="s"
    fi
    if [ $elapsed -ge 60 ]; then
      elapsed=$(($elapsed/60))
      unit="m"
      color="red"
    fi
    export RPROMPT="%F{${color}}${elapsed}${unit}%F{240} < ${dateString}%f"
    unset timer
  else
    export RPROMPT="%F{240}${dateString}%f"
  fi
}
<commit_msg>change if-else block<commit_after>function preexec() {
  timer=$(gdate +%s%3N)
}
function precmd() {
  dateString=$(gdate +%c)
  if [ $timer ]; then
    now=$(gdate +%s%3N)
    elapsed=$(($now-$timer))
    unit="ms"
    color=240
    if [[ $elapsed -ge 60000 ]]; then
      elapsed=$(($elapsed/60000))
      unit="m"
      color="red"
    elif [[ $elapsed -ge 3000 ]]; then
      elapsed=$(($elapsed/1000))
      unit="s"
    fi
    export RPROMPT="%F{${color}}${elapsed}${unit}%F{240} < ${dateString}%f"
    unset timer
  else
    export RPROMPT="%F{240}${dateString}%f"
  fi
}

{'fraction_non_alphanumeric': 0.20680628272251309, 'fraction_numerical': 0.04537521815008726, 'mean_word_length': 3.0530035335689045, 'pattern_counts': {'":': 0, '<': 5, '<?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': '890688', 'n_tokens_mistral': 494, 'n_tokens_neox': 445, 'n_words': 85}