<commit_before>#!/bin/bash
set -eu

echo "Release version number: "
read RELEASE_VERSION

echo "Next development version (without \"-SNAPSHOT\"): "
read NEXT_VERSION
NEXT_VERSION="$NEXT_VERSION-SNAPSHOT"

set -x

git reset

mvn versions:set --batch-mode --errors -DgenerateBackupPoms=false -DnewVersion="$RELEASE_VERSION"
git add pom.xml
git commit -m "Release $RELEASE_VERSION"
git tag -s -m "Release $RELEASE_VERSION" "v$RELEASE_VERSION"

mvn clean verify

mvn versions:set --batch-mode --errors -DgenerateBackupPoms=false -DnewVersion="$NEXT_VERSION"
git add pom.xml
git commit -m "Prepare for next development iteration"<commit_msg>Commit release notes on release if uncommitted<commit_after>#!/bin/bash
set -eu

echo "Release version number: "
read RELEASE_VERSION

echo "Next development version (without \"-SNAPSHOT\"): "
read NEXT_VERSION
NEXT_VERSION="$NEXT_VERSION-SNAPSHOT"

set -x

git reset

mvn versions:set --batch-mode --errors -DgenerateBackupPoms=false -DnewVersion="$RELEASE_VERSION"
git add pom.xml README.md
git commit -m "Release $RELEASE_VERSION"
git tag -s -m "Release $RELEASE_VERSION" "v$RELEASE_VERSION"

mvn clean verify

mvn versions:set --batch-mode --errors -DgenerateBackupPoms=false -DnewVersion="$NEXT_VERSION"
git add pom.xml
git commit -m "Prepare for next development iteration"
{'fraction_non_alphanumeric': 0.10722433460076046, 'fraction_numerical': 0.0, 'mean_word_length': 5.357487922705314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7501202', 'n_tokens_mistral': 431, 'n_tokens_neox': 427, 'n_words': 132}