<commit_before># Init fish modules

set -l current_dirname (dirname (status -f))
set -l fish_real_dir (readlink (dirname (status -f)))
set -l dotfiles_dir (dirname $fish_real_dir)

mkdir -p $fish_real_dir/functions

for path in $dotfiles_dir/*
  if test $path != $fish_real_dir
    if test -e $path/init.fish
      source $path/init.fish
    end

    for module_function in $path/functions/*.fish
      set -l function_name (string split -r -m1 / $module_function)[2]
      set -l symlink_path $fish_real_dir/functions/$function_name
      set -l symlink_reference (readlink $symlink_path)

      if test -e $symlink_path
        if test $symlink_reference != $module_function
          set_color yellow; echo -n "Warning: "; set_color normal
          echo "Duplicated fish function for $function_name."
        end
      else
        ln -s $module_function $symlink_path
      end
    end
  end
end<commit_msg>Prevent search in fish folder to find fish modules to avoid bugs<commit_after># Init fish modules

set -l current_dirname (dirname (status -f))
set -l fish_real_dir (readlink (dirname (status -f)))
set -l dotfiles_dir (dirname $fish_real_dir)

mkdir -p $fish_real_dir/functions

for path in $dotfiles_dir/*
  if test $path != $fish_real_dir
    if test -e $path/init.fish
      source $path/init.fish
    end

    for module_function in $path/functions/*.fish
      set -l function_dirname (dirname $module_function)

      if test $function_dirname != $fish_real_dir"functions"
        set -l function_name (string split -r -m1 / $module_function)[2]
        set -l symlink_path $fish_real_dir/functions/$function_name
        set -l symlink_reference (readlink $symlink_path)

        if test -e $symlink_path
          if test $symlink_reference != $module_function
            set_color yellow; echo -n "Warning: "; set_color normal
            echo "Duplicated fish function for $function_name."
          end
        else
          ln -s $module_function $symlink_path
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08489634748272458, 'fraction_numerical': 0.0019743336623889436, 'mean_word_length': 2.803001876172608, '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': '3899361', 'n_tokens_mistral': 636, 'n_tokens_neox': 630, 'n_words': 204}