<commit_before>#!/usr/bin/env bash

./uninstall.sh || exit 1

NAME="authms"
BUILD_NAME="${NAME}-installer-version"
CONF_DIR="/etc/${NAME}"
CONF_FILE="${CONF_DIR}/${NAME}.conf.yml"
INSTALL_DIR="/usr/local/bin"
UNIT_FILE="/etc/systemd/system/${NAME}.service"

echo "Begin install"

mkdir -p "${CONF_DIR}" || exit 1
cp "${NAME}.conf.yml" "${CONF_FILE}" || exit 1

mkdir -p "${INSTALL_DIR}" || exit 1
cp -f "${BUILD_NAME}" "${INSTALL_DIR}/${NAME}" || exit 1

cp -f "${NAME}.service" "${UNIT_FILE}" || exit 1
systemctl enable "${NAME}.service"

echo "Config file is at '${CONF_FILE}"
echo "Install complete"
<commit_msg>Fix reference to uninstall script<commit_after>#!/usr/bin/env bash

NAME="authms"
BUILD_NAME="${NAME}-installer-version"
CONF_DIR="/etc/${NAME}"
CONF_FILE="${CONF_DIR}/${NAME}.conf.yml"
INSTALL_DIR="/usr/local/bin"
UNIT_FILE="/etc/systemd/system/${NAME}.service"

./systemd-uninstall.sh || exit 1
echo "Begin install"
mkdir -p "${CONF_DIR}" || exit 1
cp "${NAME}.conf.yml" "${CONF_FILE}" || exit 1
mkdir -p "${INSTALL_DIR}" || exit 1
cp -f "${BUILD_NAME}" "${INSTALL_DIR}/${NAME}" || exit 1
cp -f "${NAME}.service" "${UNIT_FILE}" || exit 1
systemctl enable "${NAME}.service"
echo "Config file is at '${CONF_FILE}"
echo "Install complete"

{'fraction_non_alphanumeric': 0.22106943335993615, 'fraction_numerical': 0.009577015163607342, 'mean_word_length': 5.4974093264248705, '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': '2613667', 'n_tokens_mistral': 464, 'n_tokens_neox': 437, 'n_words': 110}