<commit_before>#!/bin/bash

set -e
host="$(cat /opt/rpi/host)"
mkdir build
cd build
cmake -D CMAKE_TOOLCHAIN_FILE=/opt/rpi/pi.cmake ../
make
scp -oStrictHostKeyChecking=no platform/fcs-platform $host:/home/fcs-platform
ssh -t $host /home/fcs-platform<commit_msg>run hardware tests before program<commit_after>#!/bin/bash

set -e
host="$(cat /opt/rpi/host)"
mkdir build
cd build
cmake -D CMAKE_TOOLCHAIN_FILE=/opt/rpi/pi.cmake ../
make
scp -oStrictHostKeyChecking=no platform/fcs-platform $host:/home/fcs-platform
scp -oStrictHostKeyChecking=no chr-um6/tests/um6_hardware_test $host:/home/um6_hardware_test
ssh -t $host /home/um6_hardware_test
ssh -t $host /home/fcs-platform

{'fraction_non_alphanumeric': 0.13777777777777778, 'fraction_numerical': 0.005925925925925926, 'mean_word_length': 4.878260869565217, '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': '6935225', 'n_tokens_mistral': 289, 'n_tokens_neox': 266, 'n_words': 53}