<commit_before>#!/bin/bash

# Fail if attempting to use a variable which hasn't been set.
set -u;
# Stop on first error.
set -e;

echo "Updating the steep server side components.";

git -C "${PROCESS_MODEL_DIR}" fetch;
git -C "${PROCESS_MODEL_DIR}" checkout "${PROCESS_MODEL_VERSION}";
make -C "${PROCESS_MODEL_DIR}";

git -C "${MAP_DIR}" fetch;
git -C "${MAP_DIR}" checkout "${MAP_VERSION}";
git -C "${MAP_DIR}" submodule update --init;
make -C "${MAP_DIR}";

git -C "${SHARE_DIR}" fetch;
git -C "${SHARE_DIR}" checkout "${SHARE_VERSION}";
make -C "${SHARE_DIR}";

echo "Set up share server as a SystemD service.";
sudo ln -f "${SHARE_DIR}/${SHARE_SERVICE}" "/etc/systemd/system/${SHARE_SERVICE}";
sudo systemctl enable "${SHARE_SERVICE}";
sudo systemctl restart "${SHARE_SERVICE}";<commit_msg>The share server does not use make.<commit_after>#!/bin/bash

# Fail if attempting to use a variable which hasn't been set.
set -u;
# Stop on first error.
set -e;

echo "Updating the steep server side components.";

git -C "${PROCESS_MODEL_DIR}" fetch;
git -C "${PROCESS_MODEL_DIR}" checkout "${PROCESS_MODEL_VERSION}";
make -C "${PROCESS_MODEL_DIR}";

git -C "${MAP_DIR}" fetch;
git -C "${MAP_DIR}" checkout "${MAP_VERSION}";
git -C "${MAP_DIR}" submodule update --init;
make -C "${MAP_DIR}";

git -C "${SHARE_DIR}" fetch;
git -C "${SHARE_DIR}" checkout "${SHARE_VERSION}";
(cd "${SHARE_DIR}" && npm install);

echo "Set up share server as a SystemD service.";
sudo ln -f "${SHARE_DIR}/${SHARE_SERVICE}" "/etc/systemd/system/${SHARE_SERVICE}";
sudo systemctl enable "${SHARE_SERVICE}";
sudo systemctl restart "${SHARE_SERVICE}";
{'fraction_non_alphanumeric': 0.17857142857142858, 'fraction_numerical': 0.0, 'mean_word_length': 5.3229571984435795, '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': '4217044', 'n_tokens_mistral': 582, 'n_tokens_neox': 572, 'n_words': 188}