<commit_before>#!/bin/bash

echo '\033[36m\033[1mStarting SailBOT...\033[0m\033[39m'

echo '\033[36m\033[1mConfiguring GPSD...\033[0m\033[39m'
sudo killall gpsd
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock

echo '\033[36m\033[1mCreating GPSD TCP Socket...\033[0m\033[39m'
sudo python "modules/pgps.py" &

echo '\033[36m\033[1mCreating Wind Sensor TCP Socket...\033[0m\033[39m'
sudo python "modules/wind_sensor.py" &

echo '\033[36m\033[1mCreating Rutter TCP Socket...\033[0m\033[39m'
sudo python "modules/servo.py" 9107 18 1.5 1.2 &

echo '\033[36m\033[1mLaunching main program...\033[0m\033[39m'
sudo python3 main.py<commit_msg>Simplified launch script<commit_after>#!/bin/bash

print_message() {
	echo '\033[36m\033[1m'$1'\033[0m\033[39m'
}

print_message 'Starting SailBOT'

print_message 'Configuring GPSD'
sudo killall gpsd
sudo gpsd /dev/ttyUSB0 -F /var/run/gpsd.sock

print_message 'Creating GPSD TCP Socket...'
sudo python "modules/pgps.py" &

print_message 'Creating Wind Sensor TCP Socket...'
sudo python "modules/wind_sensor.py" &

print_message 'Creating Rudder TCP Socket...'
sudo python "modules/servo.py" 9107 18 1.5 1.2 &

print_message 'Launching main program...'
sudo python3 main.py
{'fraction_non_alphanumeric': 0.1523730224812656, 'fraction_numerical': 0.1257285595337219, 'mean_word_length': 4.414414414414415, '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': '3251728', 'n_tokens_mistral': 596, 'n_tokens_neox': 481, 'n_words': 106}