<commit_before>#!/usr/bin/env bash

koopa::linux_install_docker_credential_pass() { # {{{1
    koopa::linux_install_app \
        --name='docker-credential-pass' \
        "$@"
}

koopa:::linux_install_docker_credential_pass() { # {{{1
    # """
    # Install docker-credential-pass.
    # @note Updated 2021-04-28.
    # """
    local arch file name prefix url version
    koopa::assert_is_linux
    prefix="${INSTALL_PREFIX:?}"
    version="${INSTALL_VERSION:?}"
    name='docker-credential-pass'
    arch="$(koopa::arch)"
    file="${name}-v${version}-${arch}.tar.gz"
    url="https://github.com/docker/docker-credential-helpers/releases/\
download/v${version}/${file}"
    koopa::download "$url"
    koopa::extract "$file"
    chmod 0775 "$name"
    koopa::mkdir "${prefix}/bin"
    koopa::sys_set_permissions -r "$prefix"
    koopa::cp -t "${prefix}/bin" "$name"
    return 0
}
<commit_msg>Fix the arch return<commit_after>#!/usr/bin/env bash

koopa::linux_install_docker_credential_pass() { # {{{1
    koopa::linux_install_app \
        --name='docker-credential-pass' \
        "$@"
}

koopa:::linux_install_docker_credential_pass() { # {{{1
    # """
    # Install docker-credential-pass.
    # @note Updated 2021-04-28.
    # """
    local arch arch2 file name prefix url version
    koopa::assert_is_linux
    prefix="${INSTALL_PREFIX:?}"
    version="${INSTALL_VERSION:?}"
    name='docker-credential-pass'
    arch="$(koopa::arch)"
    case "$arch" in
        x86_64)
            arch2='amd64'
            ;;
        *)
            arch2='arch'
            ;;
    esac
    file="${name}-v${version}-${arch2}.tar.gz"
    url="https://github.com/docker/docker-credential-helpers/releases/\
download/v${version}/${file}"
    koopa::download "$url"
    koopa::extract "$file"
    chmod 0775 "$name"
    koopa::mkdir "${prefix}/bin"
    koopa::sys_set_permissions -r "$prefix"
    koopa::cp -t "${prefix}/bin" "$name"
    return 0
}

{'fraction_non_alphanumeric': 0.1824742268041237, 'fraction_numerical': 0.020618556701030927, 'mean_word_length': 3.0521920668058455, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '681541', 'n_tokens_mistral': 734, 'n_tokens_neox': 660, 'n_words': 103}