<commit_before>if not set -q fisher_cmd_name
    status --current-filename | command awk '
        {
            if (n = split($0, parts, "/")) {
                gsub(/\.fish$/, "", parts[n])
                print(parts[n])
            }
        }
    ' | read -gx fisher_cmd_name
end

if test -z "$fisher_cmd_name"
    set -gx fisher_cmd_name "fisher"
end

function $fisher_cmd_name -d "fish plugin manager"
    switch "$FISH_VERSION"
        case 2.1.2 2.1.1 2.1.0 2.0.0
            echo "You need fish 2.2.0 or higher to use fisherman."

            if type brew >/dev/null 2>&1
                echo "Run: brew upgrade fish"
            else
                echo "
                    Refer to your package manager documentation for
                    instructions on how to upgrade your fish build.
                "
            end

            return 1

        case 2.2.0
            __fisher_log info "
                You need fish 2.3.0 or higher to take advantage of snippets.
                Without it some plugins might not work.
            "

            if type -q brew
                __fisher_log info "Please run &brew upgrade fish&"
            else
                __fisher_log info "

                    Refer to your package manager documentation
                    for instructions on how to upgrade your fish build.

                    If you can not upgrade, append the following code
                    to your ~/.config/fish/config.fish:

                    &for file in ~/.config/fish/conf.d/*.fish&
                    	&source $file&
                    &end&

                "
            end
    end

    set -g fisher_version "2.12.0"
    set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏
    set -g __fisher_stdout /dev/stdout
    set -g __fisher_stderr /dev/stderr

    function __fisher_show_spinner
        if not set -q __fisher_fg_spinner[1]
            set -g __fisher_fg_spinner $fisher_spinners
        end

        printf "  $__fisher_fg_spinner[1]\r" > /dev/stderr

        set -e __fisher_fg_spinner[1]
    end

    set -l config_home $XDG_CONFIG_HOME
    set -l cache_home $XDG_CACHE_HOME

    if test -z "$config_home"
        set config_home ~/.config
    end<commit_msg>Update fisherman<commit_after>if not set -q fisher_cmd_name
    status --current-filename | command awk '
        {
            if (n = split($0, parts, "/")) {
                gsub(/\.fish$/, "", parts[n])
                print(parts[n])
            }
        }
    ' | read -gx fisher_cmd_name
end

if test -z "$fisher_cmd_name"
    set -gx fisher_cmd_name "fisher"
end

function $fisher_cmd_name -d "fish plugin manager"
    switch "$FISH_VERSION"
        case 2.1.2 2.1.1 2.1.0 2.0.0
            echo "You need fish 2.2.0 or higher to use fisherman."

            if type brew >/dev/null 2>&1
                echo "Run: brew upgrade fish"
            else
                echo "
                    Refer to your package manager documentation for
                    instructions on how to upgrade your fish build.
                "
            end

            return 1

        case 2.2.0
            __fisher_log info "
                You need fish 2.3.0 or higher to take advantage of snippets.
                Without it some plugins might not work.
            "

            if type -q brew
                __fisher_log info "Please run &brew upgrade fish&"
            else
                __fisher_log info "

                    Refer to your package manager documentation
                    for instructions on how to upgrade your fish build.

                    If you can not upgrade, append the following code
                    to your ~/.config/fish/config.fish:

                    &for file in ~/.config/fish/conf.d/*.fish&
                    	&source \$file&
                    &end&

                "
            end
    end

    set -g fisher_version "2.12.0"
    set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏
    set -g __fisher_stdout /dev/stdout
    set -g __fisher_stderr /dev/stderr

    function __fisher_show_spinner
        if not set -q __fisher_fg_spinner[1]
            set -g __fisher_fg_spinner $fisher_spinners
        end

        printf "  $__fisher_fg_spinner[1]\r" > /dev/stderr

        set -e __fisher_fg_spinner[1]
    end

    set -l config_home $XDG_CONFIG_HOME
    set -l cache_home $XDG_CACHE_HOME

    if test -z "$config_home"
        set config_home ~/.config
    end
{'fraction_non_alphanumeric': 0.07759784075573549, 'fraction_numerical': 0.014394961763382817, 'mean_word_length': 1.3467018469656993, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '917681', 'n_tokens_mistral': 1418, 'n_tokens_neox': 1310, 'n_words': 428}