<commit_before>#!/usr/bin/env bash

readonly checksum_directory='documentation/build/checksum'
readonly current="${checksum_directory}/current-checksum.txt"
readonly published="${checksum_directory}/published-checksum.txt"
readonly github_pages_url='https://raw.githubusercontent.com/junit-team/junit5/gh-pages/docs/snapshot/published-checksum.txt'

#
# always generate current sums
#
echo "Generating checksum file ${current}..."
mkdir --parents "${checksum_directory}"
md5sum documentation/documentation.gradle.kts > "${current}"
md5sum $(find documentation/src -type f) >> "${current}"
# skip module junit-bom because it doesn't contain relevant documentation
md5sum $(find junit-jupiter-api -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-jupiter-engine -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-jupiter-migrationsupport -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-jupiter-params -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-platform-commons -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-platform-console -wholename '**/src/main/java/*.java') >> "${current}"
# skip module junit-platform-console-standalone because it doesn't contain relevant documentation
md5sum $(find junit-platform-engine -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-platform-launcher -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-platform-runner -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-platform-suite-api -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-platform-testkit -wholename '**/src/main/java/*.java') >> "${current}"
md5sum $(find junit-vintage-engine -wholename '**/src/main/java/*.java') >> "${current}"<commit_msg>Update cache triggers for snapshot API uploads<commit_after>#!/usr/bin/env bash

readonly checksum_directory='documentation/build/checksum'
readonly current="${checksum_directory}/current-checksum.txt"
readonly published="${checksum_directory}/published-checksum.txt"
readonly github_pages_url='https://raw.githubusercontent.com/junit-team/junit5/gh-pages/docs/snapshot/published-checksum.txt'

#
# always generate current sums
#
echo "Generating checksum file ${current}..."
mkdir --parents "${checksum_directory}"
md5sum documentation/documentation.gradle.kts > "${current}"
md5sum $(find documentation/src -type f) >> "${current}"
# skip module junit-bom because it doesn't contain relevant documentation
md5sum $(find junit-jupiter -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-jupiter-api -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-jupiter-engine -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-jupiter-migrationsupport -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-jupiter-params -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-platform-commons -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-platform-console -wholename '**/src/main/*.java') >> "${current}"
# skip module junit-platform-console-standalone because it doesn't contain relevant documentation
md5sum $(find junit-platform-engine -wholename '**/src/main/*.java') >> "${current}"
# TODO md5sum $(find junit-platform-jfr -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-platform-launcher -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-platform-reporting -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-platform-runner -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-platform-suite-api -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-platform-testkit -wholename '**/src/main/*.java') >> "${current}"
md5sum $(find junit-vintage-engine -wholename '**/src/main/*.java') >> "${current}"
{'fraction_non_alphanumeric': 0.20248038471273094, 'fraction_numerical': 0.008352315869400152, 'mean_word_length': 5.675675675675675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 63, 'https://': 2, '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': '129766', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1281, 'n_words': 266}