<commit_before>#!/bin/bash

cd "`dirname \"$0\"`"
cd ..

log_folder="web/logs"
mkdir -p "$log_folder"
appengine_log="`realpath \"$log_folder/appengine.log\"`"
buildserver_log="`realpath \"$log_folder/buildserver.log\"`"

(
  ./appengine-java-sdk/bin/dev_appserver.sh --port=8888 --address=0.0.0.0 ./appinventor-sources/appinventor/appengine/build/war/ 1>>"$appengine_log" 2>>"$appengine_log"
) &

(
  cd appinventor-sources/appinventor/buildserver
  ant RunLocalBuildServer 1>>"$buildserver_log" 2>>"$buildserver_log"
) &



<commit_msg>running appinventor not as root<commit_after>#!/bin/bash

cd "`dirname \"$0\"`"
cd ..

log_folder="web/logs"
mkdir -p "$log_folder"
appengine_log="`realpath \"$log_folder/appengine.log\"`"
buildserver_log="`realpath \"$log_folder/buildserver.log\"`"

user="`whoami`"
if [ -n "$1" ]
then
  user="$1"
fi
echo "user $user"

sudo -u "$user" (
  ./appengine-java-sdk/bin/dev_appserver.sh --port=8888 --address=0.0.0.0 ./appinventor-sources/appinventor/appengine/build/war/ 1>>"$appengine_log" 2>>"$appengine_log"
) &

sudo -u "$user" (
  cd appinventor-sources/appinventor/buildserver
  ant RunLocalBuildServer 1>>"$buildserver_log" 2>>"$buildserver_log"
) &




{'fraction_non_alphanumeric': 0.19430485762144054, 'fraction_numerical': 0.023450586264656615, 'mean_word_length': 4.945273631840796, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '1492801', 'n_tokens_mistral': 515, 'n_tokens_neox': 487, 'n_words': 70}