<commit_before>#!/bin/sh

cd "$(dirname "$0")/.." &&
mvn "$@" &&
VERSION="$(sed -n 's/^.<version>\(.*\)<\/version>.*/\1/p' < pom.xml)" &&
cd app &&
ZIP=target/imagej-$VERSION-application.zip &&
unzip -o $ZIP &&
contents="$(unzip -l $ZIP | sed -n 's/^.*\(ImageJ.app\/.*[^\/]\)$/\1/p')" &&
possibly_obsoletes="$(printf "%s\n%s\n%s" \
		"$contents" "$contents" "$(find ImageJ.app -type f)" |
	grep -ve /.checksums$ -e /db.xml.gz$ |
	sort | uniq -u)" &&
if test -n "$possibly_obsoletes"
then
	printf "The following files might be outdated:\n\n%s\nDo you want to delete them? " \
		"$possibly_obsoletes" &&
	read line &&<commit_msg>populate-app: ignore extra db.xml.gz files<commit_after>#!/bin/sh

cd "$(dirname "$0")/.." &&
mvn "$@" &&
VERSION="$(sed -n 's/^.<version>\(.*\)<\/version>.*/\1/p' < pom.xml)" &&
cd app &&
ZIP=target/imagej-$VERSION-application.zip &&
unzip -o $ZIP &&
contents="$(unzip -l $ZIP | sed -n 's/^.*\(ImageJ.app\/.*[^\/]\)$/\1/p')" &&
possibly_obsoletes="$(printf "%s\n%s\n%s" \
		"$contents" "$contents" "$(find ImageJ.app -type f)" |
	grep -ve /.checksums$ -e /db.xml.gz |
	sort | uniq -u)" &&
if test -n "$possibly_obsoletes"
then
	printf "The following files might be outdated:\n\n%s\nDo you want to delete them? " \
		"$possibly_obsoletes" &&
	read line &&
{'fraction_non_alphanumeric': 0.26911076443057724, 'fraction_numerical': 0.0046801872074883, 'mean_word_length': 3.454861111111111, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '3349892', 'n_tokens_mistral': 564, 'n_tokens_neox': 523, 'n_words': 118}