<commit_before>#! /bin/sh

case "$1" in
    start)
		echo "Starting " "$2" " nodes"
		for ((i=1; i<=$2; i++))
		do
			NodeName="node""$i"
			PortNumber=$((7000+$i))
			python ../SimulateNodeActivity.py --nodeName $NodeName --nodeTemplate "SimpleNodeTemplate" --port $PortNumber --action "start"
		done
		;;
	stop)
		echo "Stopping " "$2" " nodes"
		for ((i=1; i<=$2; i++))
		do
			NodeName="node""$i"
			PortNumber=$((7000+$i))
			python ../SimulateNodeActivity.py --nodeName $NodeName --nodeTemplate "SimpleNodeTemplate" --port $PortNumber --action "stop"
		done
		;;
	*)

    exit 1
    ;;
esac

exit 0<commit_msg>Minor update to make the script more generic. Using same port for all nodes created using the SimulateNodes script. So, DM cannot be used.<commit_after>#! /bin/sh

case "$1" in
    start)
		echo "Starting " "$2" " nodes of template $3"
		for ((i=1; i<=$2; i++))
		do
			NodeName="node""$i"
			python ../SimulateNodeActivity.py --nodeName $NodeName --nodeTemplate $3 --port 0 --action "start"
		done
		;;
	stop)
		echo "Stopping " "$2" " nodes"
		for ((i=1; i<=$2; i++))
		do
			NodeName="node""$i"
			python ../SimulateNodeActivity.py --nodeName $NodeName --action "stop"
		done
		;;
	*)

    exit 1
    ;;
esac

exit 0
{'fraction_non_alphanumeric': 0.1813765182186235, 'fraction_numerical': 0.02348178137651822, 'mean_word_length': 3.0927152317880795, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3929335', 'n_tokens_mistral': 517, 'n_tokens_neox': 455, 'n_words': 132}