<commit_before>#!/bin/bash

LIVELY=~/lively4
SERVER=~/lively4-server

cd $LIVELY
killall watch.sh
$SERVER/bin/watch.sh $SERVER/httpServer.js "killall node" &
while true; do
    echo "update server code"
    pushd "$SERVER"
    git pull --no-edit
    popd
    echo "restart http server"`date`  | tee $LIVELY/server.log;
    node $SERVER/httpServer.js --directory=$LIVELY4 --port=9005 | tee $LIVELY/server.log;
done<commit_msg>dont log tokens<commit_after>#!/bin/bash

LIVELY=~/lively4
SERVER=~/lively4-server
PORT=9005
LOGFILE=$LIVELY/server.log

cd $LIVELY
killall watch.sh
$SERVER/bin/watch.sh $SERVER/httpServer.js "killall node" &
while true; do
    echo "update server code"
    pushd "$SERVER"
    git pull --no-edit
    popd
    echo "restart http server"`date`  | tee $LIVELY/server.log;
    node $SERVER/httpServer.js --directory=$LIVELY4 --port=$PORT  | \
	sed -u 's/https:\/\/.*@github.com/https:\/\/SECRET@github.com/' | \
	sed -u 's/lively4sync.*/lively4sync.../' | \
	tee $LOGFILE;

done
{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.016, 'mean_word_length': 3.409691629955947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '5061045', 'n_tokens_mistral': 402, 'n_tokens_neox': 388, 'n_words': 83}