<commit_before>function init -a path --on-event init_local-config
  # Load custom settings for current hostname
  set -l host (hostname | sed -E 's/(-[0-9]+)?(\.(local|home))?$//')
  set -l host_specific_file $OMF_CONFIG/hosts/$host.fish
  if test -f $host_specific_file
    source $host_specific_file
  else
    echo Creating host specific config file: $host_specific_file
    mkdir -p (dirname $host_specific_file)
    touch $host_specific_file
  end

  # Load custom settings for current user
  set -l user_specific_file $OMF_CONFIG/users/(whoami).fish
  if test -f $user_specific_file
    source $user_specific_file
  else
    echo Creating user specific config file: $user_specific_file
    mkdir -p (dirname $user_specific_file)
    touch $user_specific_file
  end

  # Load custom settings for current OS
  set -l platform_specific_file $OMF_CONFIG/platforms/(uname -s).fish
  if test -f $platform_specific_file
    source $platform_specific_file
  else
    echo Creating platform specific config file: $platform_specific_file
    mkdir -p (dirname $platform_specific_file)
    touch $platform_specific_file
  end
end
<commit_msg>Initialize immediately, rather than waiting for an event.<commit_after># Load custom settings for current hostname
set -l host (hostname | sed -E 's/(-[0-9]+)?(\.(local|home))?$//')
set -l host_specific_file $OMF_CONFIG/hosts/$host.fish
if test -f $host_specific_file
  source $host_specific_file
else
  echo Creating host specific config file: $host_specific_file
  mkdir -p (dirname $host_specific_file)
  touch $host_specific_file
end

# Load custom settings for current user
set -l user_specific_file $OMF_CONFIG/users/(whoami).fish
if test -f $user_specific_file
  source $user_specific_file
else
  echo Creating user specific config file: $user_specific_file
  mkdir -p (dirname $user_specific_file)
  touch $user_specific_file
end

# Load custom settings for current OS
set -l platform_specific_file $OMF_CONFIG/platforms/(uname -s).fish
if test -f $platform_specific_file
  source $platform_specific_file
else
  echo Creating platform specific config file: $platform_specific_file
  mkdir -p (dirname $platform_specific_file)
  touch $platform_specific_file
end

{'fraction_non_alphanumeric': 0.0792931581332125, 'fraction_numerical': 0.0018124150430448573, 'mean_word_length': 4.589873417721519, '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': '4952493', 'n_tokens_mistral': 690, 'n_tokens_neox': 672, 'n_words': 217}