<commit_before>function init --on-event init_emacs
  function __major_version
    if test -n "$argv"
      set -l full_metadata (eval $argv --version)
      set -l full_version (echo $full_metadata | grep -o "[0-9]\+.[0-9]\+.[0-9]\+")
      set -l major_version (echo $full_version | sed  "s/\..*//")
      echo $major_version
    end
  end

  function __set_editor
    if not set -q EDITOR
      set -gx EDITOR emacs
    end
  end

  function __add_functions_to_path
    set emacs_functions $OMF_PATH/pkg/emacs/functions
    set fish_function_path $emacs_functions $fish_function_path
  end

  if not set -q __emacs
    set __emacs (which emacs)
  end

  if not set -q __emacs_version
    set __emacs_version (__major_version $__emacs)
  end

  if test "$__emacs_version" -gt 23
    __set_editor
    __add_functions_to_path
  end

  functions -e __major_version
  functions -e __set_editor
  functions -e __add_functions_to_path
end<commit_msg>Don't mess with function path, it's already autoloaded.<commit_after>function init --on-event init_emacs
  function __major_version
    if test -n "$argv"
      set -l full_metadata (eval $argv --version)
      set -l full_version (echo $full_metadata | grep -o "[0-9]\+.[0-9]\+.[0-9]\+")
      set -l major_version (echo $full_version | sed  "s/\..*//")
      echo $major_version
    end
  end

  function __set_editor
    if not set -q EDITOR
      set -gx EDITOR emacs
    end
  end

  if not set -q __emacs
    set __emacs (which emacs)
  end

  if not set -q __emacs_version
    set __emacs_version (__major_version $__emacs)
  end

  if test "$__emacs_version" -gt 23
    __set_editor
  end

  functions -e __major_version
  functions -e __set_editor
end
{'fraction_non_alphanumeric': 0.08973607038123167, 'fraction_numerical': 0.0093841642228739, 'mean_word_length': 2.7911111111111113, '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': '6284855', 'n_tokens_mistral': 616, 'n_tokens_neox': 596, 'n_words': 184}