<commit_before>function omf.destroy -d "Remove Oh My Fish"
  echo (omf::dim)"Removing Oh My Fish..."(omf::off)

  for pkg in (basename $OMF_PATH/pkg/*)
    omf.remove_package $pkg >/dev/null ^&1
  end

  if test -e "$HOME/.config/fish/config.copy"
    mv "$HOME/.config/fish/config".{copy,fish}
  end

  if test "$OMF_PATH" != "$HOME"
    rm -rf "$OMF_PATH"
  end

  exec fish < /dev/tty
end<commit_msg>omf.destroy: find the most recent backup of config.  using XDG_CONFIG_HOME<commit_after>function omf.destroy -d "Remove Oh My Fish"
  echo (omf::dim)"Removing Oh My Fish..."(omf::off)

  for pkg in (basename $OMF_PATH/pkg/*)
    omf.remove_package $pkg >/dev/null ^&1
  end

  set -l fish_config $XDG_CONFIG_HOME/fish
  if test "$fish_config" = "/fish"
    set fish_config $HOME/.config/fish
  end

  set -l localbackup (find $fish_config -regextype posix-extended -regex '^.*fish/config\.[[:digit:]]+\.copy$' |\
    sort -r |head -1)
  if test -n $localbackup
    mv $localbackup "$fish_config/config.fish"
  end

  if test "$OMF_PATH" != "$HOME"
    rm -rf "$OMF_PATH"
  end

  exec fish < /dev/tty
end
{'fraction_non_alphanumeric': 0.15447154471544716, 'fraction_numerical': 0.0027100271002710027, 'mean_word_length': 3.181132075471698, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2985555', 'n_tokens_mistral': 437, 'n_tokens_neox': 417, 'n_words': 116}