<commit_before>echo -n "Starting application: "
sleep 30
# Redirects default and error output to a log file
EXTERNAL_IP=$(curl http://169.254.169.254/latest/meta-data/public-ipv4)
applDir="/root/kms-monitoring-java"
java -Dkms.ws.uri=ws://$EXTERNAL_IP:8888/kurento -cp $applDir/httpcore-4.3.1.jar:websocket-api-9.3.0.M1.jar:jetty-io-9.3.0.M1.jar:jetty-util-9.3.0.M1.jar:websocket-common-9.3.0.M1.jar:websocket-client-9.3.0.M1.jar:gson-2.3.1.jar:guava-18.0.jar:slf4j-api-1.7.5.jar:kurento-jsonrpc-client-6.0.0-SNAPSHOT.jar:kurento-commons-6.0.0-SNAPSHOT.jar:kurento-client-6.0.0-SNAPSHOT.jar:$applDir/target/kms-monitoring-java-6.0.0-SNAPSHOT.jar org.kurento.tutorial.kmsmonitor.SendStats<commit_msg>Update sendstats.sh<commit_after>#!/bin/bash -ex
echo -n "Starting application: "
sleep 30
touch /var/log/sendstats.log
# Redirects default and error output to a log file
EXTERNAL_IP=$(curl http://169.254.169.254/latest/meta-data/public-ipv4)
applDir="/root/kms-monitoring-java"
cd $applDir && java -Dkms.ws.uri=ws://$EXTERNAL_IP:8888/kurento -cp httpcore-4.3.1.jar:websocket-api-9.3.0.M1.jar:jetty-io-9.3.0.M1.jar:jetty-util-9.3.0.M1.jar:websocket-common-9.3.0.M1.jar:websocket-client-9.3.0.M1.jar:gson-2.3.1.jar:guava-18.0.jar:slf4j-api-1.7.5.jar:kurento-jsonrpc-client-6.0.0-SNAPSHOT.jar:kurento-commons-6.0.0-SNAPSHOT.jar:kurento-client-6.0.0-SNAPSHOT.jar:target/kms-monitoring-java-6.0.0-SNAPSHOT.jar org.kurento.tutorial.kmsmonitor.SendStats >> /var/log/sendstats.log 2>&1 &
{'fraction_non_alphanumeric': 0.1933739012846518, 'fraction_numerical': 0.0878972278566599, 'mean_word_length': 4.4212454212454215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '6571937', 'n_tokens_mistral': 745, 'n_tokens_neox': 716, 'n_words': 54}