<commit_before>SUMMARY = "Implements a Golang client to the HashiCorp SCADA system"
HOMEPAGE = "https://github.com/hashicorp/scada-client"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea"

PKG_NAME = "github.com/hashicorp/scada-client"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "84989fd23ad4cc0e7ad44d6a871fd793eb9beb0a"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}

SYSROOT_PREPROCESS_FUNCS += "hashicorp_scada_sysroot_preprocess"

hashicorp_scada_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"<commit_msg>scada-client: fix the host-user-contaminated QA issue<commit_after>SUMMARY = "Implements a Golang client to the HashiCorp SCADA system"
HOMEPAGE = "https://github.com/hashicorp/scada-client"
LICENSE = "MPLv2"
LIC_FILES_CHKSUM = "file://LICENSE;md5=65d26fcc2f35ea6a181ac777e42db1ea"

PKG_NAME = "github.com/hashicorp/scada-client"
SRC_URI = "git://${PKG_NAME}.git"
SRCREV = "84989fd23ad4cc0e7ad44d6a871fd793eb9beb0a"

S = "${WORKDIR}/git"

do_install() {
    install -d ${D}${prefix}/local/go/src/${PKG_NAME}
    cp -a --no-preserve=ownership ${S}/* ${D}${prefix}/local/go/src/${PKG_NAME}/
}

SYSROOT_PREPROCESS_FUNCS += "hashicorp_scada_sysroot_preprocess"

hashicorp_scada_sysroot_preprocess () {
    install -d ${SYSROOT_DESTDIR}${prefix}/local/go/src/${PKG_NAME}
    cp -a ${D}${prefix}/local/go/src/${PKG_NAME} ${SYSROOT_DESTDIR}${prefix}/local/go/src/$(dirname ${PKG_NAME})
}

FILES_${PN} += "${prefix}/local/go/src/${PKG_NAME}/*"
{'fraction_non_alphanumeric': 0.1849390919158361, 'fraction_numerical': 0.044296788482835, 'mean_word_length': 5.717472118959108, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6034132', 'n_tokens_mistral': 811, 'n_tokens_neox': 778, 'n_words': 95}