<commit_before>#! /bin/bash


docker build -t andmos/readinglist:$(git rev-parse --short HEAD) .
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/tests gcr.io/gcp-runtimes/container-structure-test:v1.2.2 test --image andmos/readinglist:$(git rev-parse --short HEAD) --config /tests/imageTests/readinglist_container_tests_config.yaml
docker run --name readinglist -dt -p 1337:1337 -e APIKey=$TrelloAPIKey -e UserToken=$TrelloUserToken andmos/readinglist:$(git rev-parse --short HEAD)
sleep 5
docker run --link readinglist:readinglist --rm -e APIKey=$TrelloAPIKey -e UserToken=$TrelloUserToken -v $(pwd):/app graze/bats /app/batsTests<commit_msg>make sure we stop and remove container after completion<commit_after>#! /bin/bash


docker build -t andmos/readinglist:$(git rev-parse --short HEAD) .
docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd):/tests gcr.io/gcp-runtimes/container-structure-test:v1.2.2 test --image andmos/readinglist:$(git rev-parse --short HEAD) --config /tests/imageTests/readinglist_container_tests_config.yaml
docker run --name readinglist -dt -p 1337:1337 -e APIKey=$TrelloAPIKey -e UserToken=$TrelloUserToken andmos/readinglist:$(git rev-parse --short HEAD)
sleep 5
docker run --link readinglist:readinglist --rm -e APIKey=$TrelloAPIKey -e UserToken=$TrelloUserToken -v $(pwd):/app graze/bats /app/batsTests
docker stop readinglist
docker rm readinglist
{'fraction_non_alphanumeric': 0.13739376770538245, 'fraction_numerical': 0.0169971671388102, 'mean_word_length': 4.720647773279352, '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': '2325290', 'n_tokens_mistral': 527, 'n_tokens_neox': 478, 'n_words': 121}