<commit_before>#
# Utility Functions and Options
#

#
# Colours
#

if (( terminfo[colors] >= 8 )); then
  if [[ ${OSTYPE} == (*bsd*|darwin*) ]]; then
    # BSD

    (( ! ${+LSCOLORS} )) && export LSCOLORS='exfxcxdxbxGxDxabagacad'

    if [[ ${OSTYPE} == openbsd* ]]; then
      # stock OpenBSD ls does not support colours at all, but colorls does.
      if (( ${+commands[colorls]} )); then
        alias ls='colorls -G'
      fi
    else
      alias ls='ls -G'
    fi

    (( ! ${+GREP_COLOR} )) && export GREP_COLOR='37;45'
  else
    # GNU

    (( ! ${+LS_COLORS} )) && if [[ ${+commands[dircolors]} -ne 0 && -s ${HOME}/.dir_colors ]]; then
      eval "$(dircolors --sh ${HOME}/.dir_colors)"
    else
      export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=1;36:cd=1;33:su=30;41:sg=30;46:tw=30;42:ow=30;43'
    fi

    alias ls='ls --group-directories-first --color=auto'

    (( ! ${+GREP_COLORS} )) && export GREP_COLORS="mt=37;45"
  fi

  # grep Colours
  if [[ ${OSTYPE} == openbsd* ]]; then
    if (( ${+commands[ggrep]} )); then<commit_msg>fix typo'd var; otherwise colors would never apply<commit_after>#
# Utility Functions and Options
#

#
# Colours
#

if (( ${terminfo[colors]} >= 8 )); then
  if [[ ${OSTYPE} == (*bsd*|darwin*) ]]; then
    # BSD
    (( ! ${+LSCOLORS} )) && export LSCOLORS='exfxcxdxbxGxDxabagacad'
    if [[ ${OSTYPE} == openbsd* ]]; then
      # stock OpenBSD ls does not support colours at all, but colorls does.
      if (( ${+commands[colorls]} )); then
        alias ls='colorls -G'
      fi
    else
      alias ls='ls -G'
    fi

    (( ! ${+GREP_COLOR} )) && export GREP_COLOR='37;45'
  else
    # GNU
    (( ! ${+LS_COLORS} )) && if [[ ${+commands[dircolors]} -ne 0 && -s ${HOME}/.dir_colors ]]; then
      eval "$(dircolors --sh ${HOME}/.dir_colors)"
    else
      export LS_COLORS='di=34:ln=35:so=32:pi=33:ex=31:bd=1;36:cd=1;33:su=30;41:sg=30;46:tw=30;42:ow=30;43'
    fi

    alias ls='ls --group-directories-first --color=auto'

    (( ! ${+GREP_COLORS} )) && export GREP_COLORS="mt=37;45"
  fi

  # grep Colours
  if [[ ${OSTYPE} == openbsd* ]]; then
    if (( ${+commands[ggrep]} )); then
{'fraction_non_alphanumeric': 0.20823584464202152, 'fraction_numerical': 0.039307440336920914, 'mean_word_length': 3.0879541108986617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2849699', 'n_tokens_mistral': 916, 'n_tokens_neox': 837, 'n_words': 174}