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

ssh -T <EMAIL> <<'END'
cd tresna-kutxa
git pull origin master
sudo nixos-rebuild switch
for command in 'collectstatic --noinput' migrate compilemessages buildwatson; do
     nix-shell nix --run "python manage.py ${command} --settings=tk.production"
done
# systemctl restart uwsgi
END<commit_msg>Restart uwsgi at the end of deployments<commit_after>#!/usr/bin/env bash

ssh -T <EMAIL> <<'END'
cd tresna-kutxa
git pull origin master
sudo nixos-rebuild switch
for command in 'collectstatic --noinput' migrate compilemessages buildwatson; do
     nix-shell nix --run "python manage.py ${command} --settings=tk.production"
done
sudo ../restart-uwsgi.sh
END
{'fraction_non_alphanumeric': 0.11062590975254731, 'fraction_numerical': 0.0, 'mean_word_length': 4.548387096774194, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '4952409', 'n_tokens_mistral': 242, 'n_tokens_neox': 223, 'n_words': 76}