<commit_before>#!/bin/bash

set -e

# check if we are root
if [ "$EUID" -ne 0 ]
	then echo "Please run as root"
	exit 1
fi

USR="pi"
HOME="/home/${USR}"

if [ ! -f "${HOME}/.ssh/id_rsa" ]; then
	su ${USR} -c "ssh-keygen -q -N \"\" -f ${HOME}/.ssh/id_rsa -t rsa"
else
	echo ""
	echo "ssh already setup"
fi

su ${USR} -c "ssh-keygen -lvf ${HOME}/.ssh/id_rsa.pub"
echo ""<commit_msg>fix setup-ssh<commit_after>#!/bin/bash

set -e

# check if we are root
if [ "$EUID" -eq 0 ]
	then echo "Please run as root"
	exit 1
fi

USR="pi"
HOME="/home/${USR}"

if [ ! -f "${HOME}/.ssh/id_rsa" ]; then
	ssh-keygen -q -N "" -f ${HOME}/.ssh/id_rsa -t rsa
else
	echo ""
	echo "ssh already setup"
fi

ssh-keygen -lvf ${HOME}/.ssh/id_rsa.pub
echo ""
{'fraction_non_alphanumeric': 0.21016483516483517, 'fraction_numerical': 0.005494505494505495, 'mean_word_length': 2.8983957219251337, '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': '6679971', 'n_tokens_mistral': 354, 'n_tokens_neox': 334, 'n_words': 97}