<commit_before>#!/bin/bash

PATH_FOTOBOX="/home/pi/git/fotobox"
cd $PATH_FOTOBOX
mkdir -p $PATH_FOTOBOX/log

sudo python $PATH_FOTOBOX/lib/led_server.py > $PATH_FOTOBOX/log/led_server.log 2> $PATH_FOTOBOX/log/led_server.err &
PID=$!

python $PATH_FOTOBOX/fotobox.py > $PATH_FOTOBOX/log/fotobox.log 2> $PATH_FOTOBOX/log/fotobox.err
RETURN=$?

sudo kill $PID

# Shutdown
if [[ $RETURN -eq 12 ]]; then
  sudo shutdown -h now
fi<commit_msg>Create a log file for each startup.<commit_after>#!/bin/bash

PATH_FOTOBOX="/home/pi/git/fotobox"
LOG_DATE"date +%y%m%d-%H%M"
cd $PATH_FOTOBOX
mkdir -p $PATH_FOTOBOX/log

sudo python $PATH_FOTOBOX/lib/led_server.py > $PATH_FOTOBOX/log/led_server_$LOG_DATE.log 2> $PATH_FOTOBOX/log/led_server_$LOG_DATE.err &
PID=$!

python $PATH_FOTOBOX/fotobox.py > $PATH_FOTOBOX/log/fotobox_$LOG_DATE.log 2> $PATH_FOTOBOX/log/fotobox_$LOG_DATE.err
RETURN=$?

sudo kill $PID

# Shutdown
if [[ $RETURN -eq 12 ]]; then
  sudo shutdown -h now
fi
{'fraction_non_alphanumeric': 0.14345114345114346, 'fraction_numerical': 0.008316008316008316, 'mean_word_length': 5.13375796178344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5575590', 'n_tokens_mistral': 469, 'n_tokens_neox': 434, 'n_words': 75}