<commit_before># R2D2

## Setup

### Startup Script

Add the following lines to `/etc/rc.local`:
```bash
# Set the voltage on pin 23 HIGH so the LED can indicate the pi has booted up.
echo 23 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio23/direction
echo 1 > /sys/class/gpio/gpio23/value

# Run the startup script.
screen -dm -t "r2d2" bash -c "python /home/pi/R2D2/startup.py"
```
<commit_msg>Added info for setting up the file system.<commit_after># R2D2

## Setup

### Readonly File System

It's a good idea to set the file system on the SD card to readonly to protect it from becoming corrupted if the Raspberry Pi loses power. This is a good guide: https://hallard.me/raspberry-pi-read-only/

### Startup Script

Add the following lines to `/etc/rc.local`:
```bash
# Set the voltage on pin 23 HIGH so the LED can indicate the pi has booted up.
echo 23 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio23/direction
echo 1 > /sys/class/gpio/gpio23/value

# Run the startup script.
screen -dm -t "r2d2" bash -c "python /home/pi/R2D2/startup.py"
```

{'fraction_non_alphanumeric': 0.11599625818521983, 'fraction_numerical': 0.02806361085126286, 'mean_word_length': 3.5531914893617023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '3152741', 'n_tokens_mistral': 394, 'n_tokens_neox': 364, 'n_words': 143}