<commit_before># If you are testing locally then start up a http server and run the selenium tests.
# If you are testing against a remote server then no need to start up a http server locally.
if [ -z ${SERVER_URL} ]
then
  echo "Testing locally. If you want to test a remote server then set the SERVER_URL environment variable"

  parallelshell --verbose "http-server -p 8000 ." "./scripts/run-test-integration-inner.sh"

  if [ $? -eq 42 ]
  then
    exit 0
  else
    exit $?
  fi

else
  echo "Testing against remote server ${SERVER_URL}"
  # Starting up in parallelshell anyway just so Ctrl+C still works nicely
  parallelshell "./scripts/run-test-integration-inner.sh"
fi<commit_msg>:bug: exit status when running against remote server<commit_after># If you are testing locally then start up a http server and run the selenium tests.
# If you are testing against a remote server then no need to start up a http server locally.
if [ -z ${SERVER_URL} ]
then
  echo "Testing locally. If you want to test a remote server then set the SERVER_URL environment variable"

  parallelshell --verbose "http-server -p 8000 ." "./scripts/run-test-integration-inner.sh"

else
  echo "Testing against remote server ${SERVER_URL}"
  # Starting up in parallelshell anyway just so Ctrl+C still works nicely
  parallelshell "./scripts/run-test-integration-inner.sh"
fi

# run-test-integration-inner.sh returns 42 if successful
if [ $? -eq 42 ]
then
  exit 0
else
  exit $?
fi
{'fraction_non_alphanumeric': 0.08002735978112176, 'fraction_numerical': 0.01094391244870041, 'mean_word_length': 3.6891025641025643, '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': '3690242', 'n_tokens_mistral': 447, 'n_tokens_neox': 412, 'n_words': 195}