<commit_before># kinto-attachment test
curl --fail "http://localhost:8888/v1/__heartbeat__"
curl --fail -X POST -H "Content-Type: multipart/form-data" -H "Authorization: Basic dXNlcjpwYXNz" -F "data=@/etc/hostname" "http://localhost:8888/v1/buckets/default/collections/articles/records/abcde/attachment"
# kinto-signer test
curl --fail -X PUT -H "Authorization: Basic dXNlcjpwYXNz" "http://localhost:8888/v1/buckets/source"
curl --fail -X PUT -H "Authorization: Basic dXNlcjpwYXNz" "http://localhost:8888/v1/buckets/source/collections/source"
curl --fail -X PUT -H "Authorization: Basic dXNlcjpwYXNz" "http://localhost:8888/v1/buckets/source/collections/source/records/xxyz"
curl --fail -X PATCH -H "Authorization: Basic dXNlcjpwYXNz"  --header "Content-Type:application/json"  --data '{"data": {"status":"to-sign"}}' "http://localhost:8888/v1/buckets/source/collections/source"
curl "http://localhost:8888/v1/buckets/destination/collections/destination" | grep '"signed"'
curl "http://localhost:8888/v1/buckets/destination/collections/destination/records" | grep '"xxyz"'
# kinto-changes
curl "http://localhost:8888/v1/buckets/monitor/collections/changes/records" | grep '"source"'<commit_msg>Fail test if any command fails<commit_after># Fail if any command returns non-zero
set -e

# Show executed commands
set -x

# kinto-attachment test
curl --fail "http://localhost:8888/v1/__heartbeat__"
curl --fail -X POST -H "Content-Type: multipart/form-data" -H "Authorization: Basic dXNlcjpwYXNz" -F "attachment=@/etc/hostname" "http://localhost:8888/v1/buckets/default/collections/articles/records/abcde/attachment"
# kinto-signer test
curl --fail -X PUT -H "Authorization: Basic dXNlcjpwYXNz" "http://localhost:8888/v1/buckets/source"
curl --fail -X PUT -H "Authorization: Basic dXNlcjpwYXNz" "http://localhost:8888/v1/buckets/source/collections/source"
curl --fail -X PUT -H "Authorization: Basic dXNlcjpwYXNz" "http://localhost:8888/v1/buckets/source/collections/source/records/xxyz"
curl --fail -X PATCH -H "Authorization: Basic dXNlcjpwYXNz"  --header "Content-Type:application/json"  --data '{"data": {"status":"to-sign"}}' "http://localhost:8888/v1/buckets/source/collections/source"
curl "http://localhost:8888/v1/buckets/destination/collections/destination" | grep '"signed"'
curl "http://localhost:8888/v1/buckets/destination/collections/destination/records" | grep '"xxyz"'
# kinto-changes
curl "http://localhost:8888/v1/buckets/monitor/collections/changes/records" | grep '"source"'

{'fraction_non_alphanumeric': 0.16252006420545748, 'fraction_numerical': 0.036115569823434994, 'mean_word_length': 5.2481203007518795, 'pattern_counts': {'":': 4, '<': 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': '2826807', 'n_tokens_mistral': 974, 'n_tokens_neox': 894, 'n_words': 169}