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

koopa::install_udunits() { # {{{1
    koopa::install_app \
        --name='udunits' \
        "$@"
}

koopa:::install_udunits() { # {{{1
    # """
    # Install udunits.
    # @note Updated 2021-05-04.
    # """
    local file jobs name prefix url version
    prefix="${INSTALL_PREFIX:?}"
    version="${INSTALL_VERSION:?}"
    name='udunits'
    jobs="$(koopa::cpu_count)"
    file="${name}-${version}.tar.gz"
    # HTTP alternative:
    # > url="https://www.unidata.ucar.edu/downloads/udunits/${file}"
    url="ftp://ftp.unidata.ucar.edu/pub/${name}/${file}"
    koopa::download "$url"
    koopa::extract "$file"
    koopa::cd "${name}-${version}"
    ./configure --prefix="$prefix"
    make --jobs="$jobs"
    # > make check
    make install
    return 0
}<commit_msg>Update installers<commit_after>#!/usr/bin/env bash

koopa::install_udunits() { # {{{1
    koopa::install_app \
        --name='udunits' \
        "$@"
}

koopa:::install_udunits() { # {{{1
    # """
    # Install udunits.
    # @note Updated 2021-05-26.
    # """
    local file jobs make name prefix url version
    prefix="${INSTALL_PREFIX:?}"
    version="${INSTALL_VERSION:?}"
    jobs="$(koopa::cpu_count)"
    make="$(koopa::locate_make)"
    name='udunits'
    file="${name}-${version}.tar.gz"
    # HTTP alternative:
    # > url="https://www.unidata.ucar.edu/downloads/udunits/${file}"
    url="ftp://ftp.unidata.ucar.edu/pub/${name}/${file}"
    koopa::download "$url"
    koopa::extract "$file"
    koopa::cd "${name}-${version}"
    ./configure --prefix="$prefix"
    "$make" --jobs="$jobs"
    # > "$make" check
    "$make" install
    return 0
}
{'fraction_non_alphanumeric': 0.21441441441441442, 'fraction_numerical': 0.013213213213213212, 'mean_word_length': 2.947867298578199, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '7144879', 'n_tokens_mistral': 628, 'n_tokens_neox': 584, 'n_words': 93}