<commit_before>#!/bin/bash

VERSION_BUILD_PID_PROCESS='1.4'
PACKAGES="$PACKAGES PID_PROCESS"

if `ps auxwww >/dev/null 2>&1`; then
	PS="ps auxwww"
elif `ps -ef >/dev/null 2>&1`; then
	PS="ps -ef"
else
	echo "I don't know how to run PS on your system!"
	exit 1
fi
export PS

# list_opennms_pids ()
#   input : none
#   output: a list of process IDs from the OpenNMS VM

list_opennms_pids () {
        $PS \
		| grep OPENNMSLAUNCH \
		| grep -v grep \
		| awk '{print $2}'
	if [ -f @root.install.pid@ ]; then
		$PS \
			| grep -v grep \
			| awk '{print $2}' \
			| grep "^`cat @root.install.pid@`$"
	fi
	return $?
}

fork () {
	PIDFILE="$1"; shift
	OUTPUT="$1"; shift
	echo "------------------------------------------------------------------------------" >> "$OUTPUT"
	echo $@ >> "$OUTPUT"
	nohup $@ >>"$OUTPUT" 2>&1 &
	echo $! > "$PIDFILE"
	disown<commit_msg>Removed the nohup from starting opennms to set nice to 0 instead of 5.<commit_after>#!/bin/bash

VERSION_BUILD_PID_PROCESS='1.4'
PACKAGES="$PACKAGES PID_PROCESS"

if `ps auxwww >/dev/null 2>&1`; then
	PS="ps auxwww"
elif `ps -ef >/dev/null 2>&1`; then
	PS="ps -ef"
else
	echo "I don't know how to run PS on your system!"
	exit 1
fi
export PS

# list_opennms_pids ()
#   input : none
#   output: a list of process IDs from the OpenNMS VM

list_opennms_pids () {
        $PS \
		| grep OPENNMSLAUNCH \
		| grep -v grep \
		| awk '{print $2}'
	if [ -f @root.install.pid@ ]; then
		$PS \
			| grep -v grep \
			| awk '{print $2}' \
			| grep "^`cat @root.install.pid@`$"
	fi
	return $?
}

fork () {
	PIDFILE="$1"; shift
	OUTPUT="$1"; shift
	echo "------------------------------------------------------------------------------" >> "$OUTPUT"
	echo $@ >> "$OUTPUT"
	$@ >>"$OUTPUT" 2>&1 &
	echo $! > "$PIDFILE"
	disown
{'fraction_non_alphanumeric': 0.250423968343697, 'fraction_numerical': 0.01582815149802148, 'mean_word_length': 2.183453237410072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2346956', 'n_tokens_mistral': 742, 'n_tokens_neox': 672, 'n_words': 193}