<commit_before>#/bin/bash
cd "$(realpath "$(dirname "$0")")/../.." &&
docker rmi -f ksi-be &&
docker build -f web-backend/.docker/Dockerfile -t ksi-be . &&
if [[ "$1" == "--run" ]]; then
  docker rm ksi-be
  docker run \
    -p 3030:3030 \
    -v "$2:/var/ksi-be/" \
    --rm \
    --device /dev/fuse \
    --cap-add=SYS_ADMIN \
    --security-opt apparmor:unconfined \
    -it \
    --name ksi-be \
    ksi-be
fi
<commit_msg>feat(docker): auto-stop before new build<commit_after>#/bin/bash
cd "$(realpath "$(dirname "$0")")/../.." &&
docker rmi -f ksi-be &&
docker build -f web-backend/.docker/Dockerfile -t ksi-be . &&
if [[ "$1" == "--run" ]]; then
  docker stop ksi-be
  docker rm ksi-be
  docker run \
    -p 3030:3030 \
    -v "$2:/var/ksi-be/" \
    --rm \
    --device /dev/fuse \
    --cap-add=SYS_ADMIN \
    --security-opt apparmor:unconfined \
    -it \
    --name ksi-be \
    ksi-be
fi

{'fraction_non_alphanumeric': 0.21666666666666667, 'fraction_numerical': 0.024444444444444446, 'mean_word_length': 1.9253246753246753, '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': '457584', 'n_tokens_mistral': 402, 'n_tokens_neox': 365, 'n_words': 85}