<commit_before>#!/bin/bash

if [ $SSH ] 
then 
sudo service ssh start 
fi

if [ ! -z "$WAIT_FOR" ] 
then
./wait-for-it.sh $WAIT_FOR
fi

if [ -z $ENVIRONMENT ]
then 
export SETTINGS=local
export CONFIG=Local
elif [ "$ENVIRONMENT" = "qa" ]
then
export SETTINGS=local
export CONFIG=Local
else
export SETTINGS=$ENVIRONMENT
export CONFIG=${ENVIRONMENT^}
fi

hostip=$(ip route show | awk '/default/ {print $3}')

echo ""
echo "Host IP=http://${hostip}:8000"
echo ""

python ocl_web/manage.py syncdb --noinput

python ocl_web/manage.py migrate 

python ocl_web/manage.py create_test_user --username="root" --password="${<PASSWORD>}"

echo "Starting the server"
grunt serve<commit_msg>Fixing host ip<commit_after>#!/bin/bash

if [ $SSH ] 
then 
sudo service ssh start 
fi

if [ ! -z "$WAIT_FOR" ] 
then
./wait-for-it.sh $WAIT_FOR
fi

if [ -z $ENVIRONMENT ]
then 
export SETTINGS=local
export CONFIG=Local
elif [ "$ENVIRONMENT" = "qa" ]
then
export SETTINGS=local
export CONFIG=Local
else
export SETTINGS=$ENVIRONMENT
export CONFIG=${ENVIRONMENT^}
fi

hostip=$(ip route show | awk '/default/ {print $3}')

echo ""
echo "Host IP=${hostip}"
echo ""

python ocl_web/manage.py syncdb --noinput

python ocl_web/manage.py migrate 

python ocl_web/manage.py create_test_user --username="root" --password="${<PASSWORD>}"

echo "Starting the server"
grunt serve
{'fraction_non_alphanumeric': 0.14147431124348472, 'fraction_numerical': 0.004467609828741623, 'mean_word_length': 4.576763485477178, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7673946', 'n_tokens_mistral': 526, 'n_tokens_neox': 504, 'n_words': 137}