<commit_before>DOCKER_REPOSITORY=${DOCKER_REPOSITORY:-mozorg/mcom-tests}

SAUCE_CREDENTIALS_PATH=`mktemp`
cat << EOF > $SAUCE_CREDENTIALS_PATH
username: $SAUCELABS_USERNAME
password: $<PASSWORD>
api-key: $SAUCELABS_API_KEY
EOF

docker pull ${DOCKER_REPOSITORY}
docker run -v $SAUCE_CREDENTIALS_PATH:/tmp/creds -v `pwd`/results/:/app/results -e BASE_URL=${BASE_URL} -e BUILD_TAG=${BUILD_TAG} ${DOCKER_REPOSITORY}<commit_msg>Get saucelabs creds from environment.<commit_after>DOCKER_REPOSITORY=${DOCKER_REPOSITORY:-mozorg/mcom-tests}

docker pull ${DOCKER_REPOSITORY}
docker run -v `pwd`/results/:/app/results -e BASE_URL=${BASE_URL} -e BUILD_TAG=${BUILD_TAG} -e SAUCELABS_USERNAME=${SAUCE_LABS_USERNAME} -e SAUCELABS_API_KEY=${SAUCE_LABS_API_KEY} ${DOCKER_REPOSITORY}
{'fraction_non_alphanumeric': 0.13315926892950392, 'fraction_numerical': 0.0, 'mean_word_length': 8.833333333333334, 'pattern_counts': {'":': 0, '<': 6, '<?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': '6252656', 'n_tokens_mistral': 339, 'n_tokens_neox': 330, 'n_words': 46}