<commit_before>#!/bin/bash

ssh $USER@$IP_ADDRESS <<EOF
  sudo docker stop helsinki || echo 'Failed to stop helsinki container'
  sudo docker rm helsinki || echo 'Failed to remove helsinki container'
sudo docker run -d -v /var/helsinkiAS/:/var/helsinkiAS \
                    --env-file=/var/helsinkiAS/helsinkiAS.env \
                    --name helsinki \
                    python:3.4.3 \
                    bash -c 'pip install -r /var/helsinkiAS/requirements.txt && \
                    python -m openahjo_activity_streams.scrape_to_coracle'
EOF<commit_msg>CW + AW | 225 | add scp stage in deploy script to update code on server<commit_after>#!/bin/bash
ssh $USER@$IP_ADDRESS "sudo mkdir -p /var/helsinkiAS"
scp -r ../openahjo_activity_streams $USER@$IP_ADDRESS:/var/helsinkiAS
scp ../requirements.txt $USER@$IP_ADDRESS:/var/helsinkiAS
scp helsinkiAS.env $USER@$IP_ADDRESS:/var/helsinkiAS

ssh $USER@$IP_ADDRESS <<EOF
  sudo docker stop helsinki || echo 'Failed to stop helsinki container'
  sudo docker rm helsinki || echo 'Failed to remove helsinki container'
  sudo docker run -d -v /var/helsinkiAS/:/var/helsinkiAS \
                    --env-file=/var/helsinkiAS/helsinkiAS.env \
                    --name helsinki \
                    python:3.4.3 \
                    bash -c 'pip install -r /var/helsinkiAS/requirements.txt && \
                    python -m openahjo_activity_streams.scrape_to_coracle'
EOF
{'fraction_non_alphanumeric': 0.1079187105816398, 'fraction_numerical': 0.006306937631394534, 'mean_word_length': 2.3132250580046403, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3251468', 'n_tokens_mistral': 536, 'n_tokens_neox': 462, 'n_words': 116}