<commit_before>DESCRIPTION = "A simple CLI tool for ensuring that a given script runs continuously (i.e. forever)."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=da5360871cfc7e3df08cde6a2adeac25"

PR = "r0"

# Add support for npm:// source URI
inherit npm-fetch

# npm install support from meta-nodejs layer (automatically installs and compiles npm dependencies)
inherit npm

SRC_URI = "npm://forever;version=${PV}"

S = "${WORKDIR}/npm"

do_install () {

	install -d ${D}${libdir}/node_modules/forever

	cp -rp ${S}/* ${D}${libdir}/node_modules/forever/

        install -d ${D}${bindir}

	ln -sf ${libdir}/node_modules/forever/bin/forever ${D}${bindir}/forever
	ln -sf ${libdir}/node_modules/forever/bin/foreverd ${D}${bindir}/foreverd

}

FILES_${PN} = " \
	${bindir}/forever \
	${bindir}/foreverd \
	${libdir}/node_modules/forever \
"<commit_msg>Removed dependency to meta-nodejs<commit_after>DESCRIPTION = "A simple CLI tool for ensuring that a given script runs continuously (i.e. forever)."
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE;md5=da5360871cfc7e3df08cde6a2adeac25"

PR = "r1"

# Add support for npm:// source URI
inherit npm-fetch

SRC_URI = "npm://forever;version=${PV}"

S = "${WORKDIR}/npm"

do_install () {

	install -d ${D}${libdir}/node_modules/forever

	cp -rp ${S}/* ${D}${libdir}/node_modules/forever/

        install -d ${D}${bindir}

	ln -sf ${libdir}/node_modules/forever/bin/forever ${D}${bindir}/forever
	ln -sf ${libdir}/node_modules/forever/bin/foreverd ${D}${bindir}/foreverd

}

FILES_${PN} = " \
	${bindir}/forever \
	${bindir}/foreverd \
	${libdir}/node_modules/forever \
"

RDEPENDS_${PN} = "node"
{'fraction_non_alphanumeric': 0.1715151515151515, 'fraction_numerical': 0.020606060606060607, 'mean_word_length': 4.466887417218543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '5916566', 'n_tokens_mistral': 669, 'n_tokens_neox': 629, 'n_words': 131}