<commit_before>#!/bin/bash

# Bring up selenium hub and nodes
docker-compose --file=cyber_dojo_selenium/docker-compose.yml up -d

# Wait for nodes to connect to the hub
sleep 5

# Run the tests
docker run -t --rm --network cyberdojoselenium_default cyberdojo/system-tests
RESULT=$?

# Take down the selenium hub and nodes
docker-compose --file=cyber_dojo_selenium/docker-compose.yml down

exit $RESULT<commit_msg>Added running tests against Firefox to run_tests.sh<commit_after>#!/bin/bash

# Bring up selenium hub and nodes
docker-compose --file=cyber_dojo_selenium/docker-compose.yml up -d

# Wait for nodes to connect to the hub
sleep 5

# Run the tests
docker run -e "browser=chrome" -t --rm --network cyberdojoselenium_default cyberdojo/system-tests
CHROME_RESULT=$?

docker run -e "browser=firefox" -t --rm --network cyberdojoselenium_default cyberdojo/system-tests
FIREFOX_RESULT=$?

# Take down the selenium hub and nodes
docker-compose --file=cyber_dojo_selenium/docker-compose.yml down

if [[ "$CHROME_RESULT" -eq "0" && "$FIREFOX_RESULT" -eq "0" ]]; then
    exit 0
fi

if [ "$CHROME_RESULT" -ne "0" ]; then
    exit $CHROME_RESULT
fi

if [ "$FIREFOX_RESULT" -ne "0" ]; then
    exit $FIREFOX_RESULT
fi

# Should never get here but just in case
exit 1
{'fraction_non_alphanumeric': 0.1045958795562599, 'fraction_numerical': 0.006339144215530904, 'mean_word_length': 4.2625, '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': '597447', 'n_tokens_mistral': 475, 'n_tokens_neox': 438, 'n_words': 140}