<commit_before># Start the API server, and serve it and the frontend through a reverse proxy.

FRONTEND_PORT=8080
BACKEND_PORT=8081
DB_FILE=test.db

echo "starting backend server on $FRONTEND_PORT ..."
python backend/server.py $DB_FILE $BACKEND_PORT &

echo "starting frontend server on $BACKEND_PORT ..."
tape --root frontend \
     --proxy /api=http://localhost:$BACKEND_PORT/api \
     --port $FRONTEND_PORT &

# when script exits, kill the two servers
trap 'kill $(jobs -p)' EXIT

wait<commit_msg>Correct develop.sh messages<commit_after># Start the API server, and serve it and the frontend through a reverse proxy.

FRONTEND_PORT=8080
BACKEND_PORT=8081
DB_FILE=test.db

echo "starting backend server on $BACKEND_PORT ..."
python backend/server.py $DB_FILE $BACKEND_PORT &

echo "starting frontend server on $FRONTEND_PORT ..."
tape --root frontend \
     --proxy /api=http://localhost:$BACKEND_PORT/api \
     --port $FRONTEND_PORT &

# when script exits, kill the two servers
trap 'kill $(jobs -p)' EXIT

wait
{'fraction_non_alphanumeric': 0.10531496062992125, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 4.085, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7500757', 'n_tokens_mistral': 352, 'n_tokens_neox': 326, 'n_words': 109}