<commit_before>#! /bin/bash

LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
APP_DIR=rovercode/

if [ "${EUID}" -ne 0 ]; then
	echo "Error: This script must be run as root."
	exit 1
fi

source ${LOCATION}/env/bin/activate && \

pushd ${LOCATION}/${APP_DIR} > /dev/null
echo "rovercode service starting"
python3.6 ${LOCATION}/${APP_DIR}app.py
popd > /dev/null
echo "rovercode service stopped"
<commit_msg>Start docker contain in start script<commit_after>#! /bin/bash

LOCATION="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

if [ "${EUID}" -ne 0 ]; then
	echo "Error: This script must be run as root."
	exit 1
fi

echo "rovercode service starting"
python3.6 ${LOCATION}/${APP_DIR}app.py
docker run --name rovercode --privileged -v /dev:/dev -v ${LOCATION}:/var/rovercode rovercode
echo "rovercode service stopped"

{'fraction_non_alphanumeric': 0.17681498829039813, 'fraction_numerical': 0.0117096018735363, 'mean_word_length': 4.377358490566038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3532581', 'n_tokens_mistral': 328, 'n_tokens_neox': 310, 'n_words': 93}