<commit_before>#
# build config
#
PACKAGES="dev-vcs/git"
WEBHOOK_VERSION="2.4.0"

configure_bob()
{
    export GOPATH=/go
    export DISTRIBUTION_DIR="${GOPATH}/src/github.com/adnanh/webhook"
    mkdir -p ${DISTRIBUTION_DIR}
    git clone https://github.com/adnanh/webhook.git ${DISTRIBUTION_DIR}
    cd ${DISTRIBUTION_DIR}
    git checkout tags/${WEBHOOK_VERSION}
    echo "building webhook.."
    # occasionally github clone rate limits fail the build, lets retry up to 5 times before giving up
    for i in {1..5};
        do go get -d && break || (echo "retrying build in 5s.." && sleep 5); done
    go build -o "${EMERGE_ROOT}/usr/bin/webhook"
    echo "done."
}

#
# this method runs in the bb builder container just before starting the build of the rootfs
#
configure_rootfs_build()
{
    update_use "dev-vcs/git" "-python" "-webdav"
}

#
# this method runs in the bb builder container just before tar'ing the rootfs
#
finish_rootfs_build()
{
    log_as_installed "manual install" "webhook-${WEBHOOK_VERSION}" "https://github.com/adnanh/webhook/"
}
<commit_msg>Bump webhook version to 2.6.0<commit_after>#
# build config
#
PACKAGES="dev-vcs/git"
WEBHOOK_VERSION="2.6.0"

configure_bob()
{
    export GOPATH=/go
    export DISTRIBUTION_DIR="${GOPATH}/src/github.com/adnanh/webhook"
    mkdir -p ${DISTRIBUTION_DIR}
    git clone https://github.com/adnanh/webhook.git ${DISTRIBUTION_DIR}
    cd ${DISTRIBUTION_DIR}
    git checkout tags/${WEBHOOK_VERSION}
    echo "building webhook.."
    # occasionally github clone rate limits fail the build, lets retry up to 5 times before giving up
    for i in {1..5};
        do go get -d && break || (echo "retrying build in 5s.." && sleep 5); done
    go build -o "${EMERGE_ROOT}/usr/bin/webhook"
    echo "done."
}

#
# this method runs in the bb builder container just before starting the build of the rootfs
#
configure_rootfs_build()
{
    update_use "dev-vcs/git" "-python" "-webdav"
}

#
# this method runs in the bb builder container just before tar'ing the rootfs
#
finish_rootfs_build()
{
    log_as_installed "manual install" "webhook-${WEBHOOK_VERSION}" "https://github.com/adnanh/webhook/"
}

{'fraction_non_alphanumeric': 0.12453531598513011, 'fraction_numerical': 0.008828996282527882, 'mean_word_length': 3.6702819956616053, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '113640', 'n_tokens_mistral': 778, 'n_tokens_neox': 738, 'n_words': 214}