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

set -e

PID_FILE="tmp/pids/$HOSTNAME.pid"

if [ -e $PID_FILE ]; then
    echo "Killing old server"
    kill -9 $(cat $PID_FILE)
fi

rails server -p 80 -b '0.0.0.0' -e production -P $PID_FILE
<commit_msg>remove the old rails server PID file<commit_after>#! /usr/bin/env bash

PID_FILE="tmp/pids/$HOSTNAME.pid"

if [ -e $PID_FILE ]; then
    echo "Killing old server"
    kill -9 $(cat $PID_FILE)
    rm $PID_FILE
fi

rails server -p 80 -b '0.0.0.0' -e production -P $PID_FILE

{'fraction_non_alphanumeric': 0.1484375, 'fraction_numerical': 0.02734375, 'mean_word_length': 3.0393700787401574, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5375664', 'n_tokens_mistral': 230, 'n_tokens_neox': 211, 'n_words': 64}