<commit_before>#!/bin/sh
SSH_OPTS="-i $HOME/.ssh/bannerstalker-key.pem"
LOGIN_NAME=ubuntu
for server in `deploy/list-instances.py`; do
    echo deploying to $server
    ssh $SSH_OPTS $LOGIN_NAME@$server sudo service bannerstalker stop
    ssh $SSH_OPTS $LOGIN_NAME@$server "cd bannerstalker && git fetch origin && git reset --hard origin/master"
    scp $SSH_OPTS dist/build/bannerstalker/bannerstalker $LOGIN_NAME@$server:bannerstalker
    ssh $SSH_OPTS $LOGIN_NAME@$server sudo service bannerstalker start
done<commit_msg>Delete the dist and static/tmp directories on upgrade to ensure css is updated.<commit_after>#!/bin/sh
SSH_OPTS="-i $HOME/.ssh/bannerstalker-key.pem"
LOGIN_NAME=ubuntu
for server in `deploy/list-instances.py`; do
    echo deploying to $server
    ssh $SSH_OPTS $LOGIN_NAME@$server sudo service bannerstalker stop
    ssh $SSH_OPTS $LOGIN_NAME@$server "cd bannerstalker && sudo rm -rf dist/ static/tmp/ && git fetch origin && git reset --hard origin/master"
    scp $SSH_OPTS dist/build/bannerstalker/bannerstalker $LOGIN_NAME@$server:bannerstalker
    ssh $SSH_OPTS $LOGIN_NAME@$server sudo service bannerstalker start
done
{'fraction_non_alphanumeric': 0.1011333914559721, 'fraction_numerical': 0.0, 'mean_word_length': 5.074074074074074, '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': '4964425', 'n_tokens_mistral': 440, 'n_tokens_neox': 395, 'n_words': 104}