<commit_before>#!/bin/sh
#
# (c) 2015 - <NAME>.
#
# Mozilla Public License 2.0
#
# Ubuntu Software Manager Loader launch script
#


# We use xterm since there is no way of putting gnome-terminal in the
# foreground.
xterm -geometry 80x15+0+0 -T "Package Manager" -e "cd package_manager;python package_manager.py" &
xterm -geometry 80x15+0+300 -T "Partition Manager" -e "cd partition_manaer; python partition_manager.py" &
xterm -geometry 80x15+0+600 -T "ECU1 Module Loader" -e "cd module_loader; python ecu1_module_loader.py" &
xterm -geometry 80x24+800+000 -T "Software Loading Manager" -e "cd software_loading_manager; python software_loading_manager.py" &
echo "Please run"
echo
echo "   python sota_client.py"
echo
echo "to start package use case."
echo 
echo "Press Ctrl-C shut down Software Manager"

xterm -geometry 80x20+800+400 -T "HMI" -e "cd hmi;python hmi.py"


<commit_msg>Now uses gnome terminals instead of xterm.<commit_after>#!/bin/sh
#
# (c) 2015 - <NAME>.
#
# Mozilla Public License 2.0
#
# Ubuntu Software Manager Loader launch script
#

PID_FNAME=/tmp/swm_pidlist

killswm () {
	for i in $(cat $PID_FNAME); do
		kill $i
	done
	exit 0
}

rm -f $PID_FNAME
gnome-terminal --geometry 80x15+0+0 -x bash -c "echo \$BASHPID >> $PID_FNAME; echo -ne \"\033]0;Package Manager\007\"; cd package_manager;python package_manager.py" 

gnome-terminal --geometry 80x15+0+500 -x bash -c "echo \$BASHPID >> $PID_FNAME; echo -ne \"\033]0;Partition Manager\007\";cd partition_manager; python partition_manager.py" 

gnome-terminal --geometry 80x15+0+1000 -x \bash -c "echo \$BASHPID >> $PID_FNAME; echo -ne \"\033]0;ECU1 Module Loader\007\"; cd module_loader_ecu1; python module_loader_ecu1.py" 

gnome-terminal --geometry 80x15+0+1500  -x bash -c "echo \$BASHPID >> $PID_FNAME; echo -ne \"\033]0;Lifecycle Manager\007\";cd lifecycle_manager; python lifecycle_manager.py" 


gnome-terminal --geometry 80x20+0+2500 -x bash -c "echo \$BASHPID >> $PID_FNAME; echo -ne \"\033]0;HMI\007\";cd hmi;python hmi.py" 

gnome-terminal --geometry 80x24+0+2000 -x bash -c "echo \$BASHPID >> $PID_FNAME; echo -ne \"\033]0;Software Loading Manager\007\";cd software_loading_manager; python software_loading_manager.py" 

echo "Please run"
echo
echo "   cd sota_client"
echo "   sudo python sota_client.py -p test_package -i ../sample_update.upd -s xxx -d "Sample Update Description""
echo
echo "to start package use case."
echo 
echo "Press Enter shut down Software Manager"

trap killswm INT

read x
killswm
{'fraction_non_alphanumeric': 0.12715603690332933, 'fraction_numerical': 0.0609707180104292, 'mean_word_length': 4.283898305084746, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5059598', 'n_tokens_mistral': 1054, 'n_tokens_neox': 884, 'n_words': 279}