<commit_before>#!/bin/bash

ssh $REMOTE_USER@$SERVER_IP "mkdir -p /var/stonecutter/config"
ssh $REMOTE_USER@$SERVER_IP "mkdir -p /data/stonecutter/static"
scp stonecutter_$SNAP_STAGE_NAME.env $REMOTE_USER@$SERVER_IP:/var/stonecutter/config/stonecutter.env
scp rsa-keypair_$SNAP_STAGE_NAME.json $REMOTE_USER@$SERVER_IP:/var/stonecutter/config/rsa-keypair.json
scp clients.yml $REMOTE_USER@$SERVER_IP:/var/stonecutter/config/clients.yml
scp logo.svg $REMOTE_USER@$SERVER_IP:/data/stonecutter/static/logo.svg
scp dcent-favicon.ico $REMOTE_USER@$SERVER_IP:/data/stonecutter/static/dcent-favicon.ico
ssh $REMOTE_USER@$SERVER_IP <<EOF
  sudo docker stop stonecutter || echo 'Failed to stop stonecutter container'
  sudo docker rm stonecutter || echo 'Failed to remove stonecutter container'
  sudo docker run -d -v /var/stonecutter/config:/var/config \
             --env-file=/var/stonecutter/config/stonecutter.env \
             -v /data/stonecutter/static:/data/stonecutter/static \
             -v /var/stonecutter/email_service:/var/stonecutter/email_service \
             -p 127.0.0.1:5000:5000 \<commit_msg>FM & AW | 0 | fixing ports to fix deployment<commit_after>#!/bin/bash

ssh $REMOTE_USER@$SERVER_IP "mkdir -p /var/stonecutter/config"
ssh $REMOTE_USER@$SERVER_IP "mkdir -p /data/stonecutter/static"
scp stonecutter_$SNAP_STAGE_NAME.env $REMOTE_USER@$SERVER_IP:/var/stonecutter/config/stonecutter.env
scp rsa-keypair_$SNAP_STAGE_NAME.json $REMOTE_USER@$SERVER_IP:/var/stonecutter/config/rsa-keypair.json
scp clients.yml $REMOTE_USER@$SERVER_IP:/var/stonecutter/config/clients.yml
scp logo.svg $REMOTE_USER@$SERVER_IP:/data/stonecutter/static/logo.svg
scp dcent-favicon.ico $REMOTE_USER@$SERVER_IP:/data/stonecutter/static/dcent-favicon.ico
ssh $REMOTE_USER@$SERVER_IP <<EOF
  sudo docker stop stonecutter || echo 'Failed to stop stonecutter container'
  sudo docker rm stonecutter || echo 'Failed to remove stonecutter container'
  sudo docker run -d -v /var/stonecutter/config:/var/config \
             --env-file=/var/stonecutter/config/stonecutter.env \
             -v /data/stonecutter/static:/data/stonecutter/static \
             -v /var/stonecutter/email_service:/var/stonecutter/email_service \
             -p 127.0.0.1:5000:3000 \
{'fraction_non_alphanumeric': 0.12394491337183473, 'fraction_numerical': 0.01288316303864949, 'mean_word_length': 4.24941724941725, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '7085933', 'n_tokens_mistral': 919, 'n_tokens_neox': 809, 'n_words': 131}