<commit_before>#!/bin/bash

OLDVER=$(grep -Po '<version>\K[^<]+' pom.xml | head -n1)
echo "Last version tag was ${OLDVER}"
read -e -p "New version tag: " ver

sed -i -e "0,/$OLDVER/s/$OLDVER/$ver/" pom.xml
sed -i -e "s/$OLDVER/$ver/g" docs/index.html
sed -i -e "s/$OLDVER/$ver/g" installer.sh
sed -i -e "s/$OLDVER/$ver/g" helm/scoold/values.yaml
sed -i -e "s/$OLDVER/$ver/g" helm/scoold/Chart.yaml
git add -A && git commit -m "Release v$ver."
git tag "$ver"
git push origin master
git push --tags
echo "v$ver" > changelog.txt && \
echo "" >> changelog.txt && \
git log $OLDVER..HEAD --oneline >> changelog.txt && \
echo "" >> changelog.txt && \
hub release create -F changelog.txt $ver && \
rm changelog.txt
echo "--done--"
<commit_msg>deploy.sh<commit_after>#!/bin/bash

OLDVER=$(grep -Po '<version>\K[^<]+' pom.xml | head -n1)
echo "Last version tag was ${OLDVER}"
read -e -p "New version tag: " ver

sed -i -e "0,/$OLDVER/s/$OLDVER/$ver/" pom.xml
sed -i -e "s/$OLDVER/$ver/g" docs/index.html
sed -i -e "s/$OLDVER/$ver/g" installer.sh
sed -i -e "s/$OLDVER/$ver/g" helm/scoold/values.yaml
sed -i -e "s/$OLDVER/$ver/g" helm/scoold/Chart.yaml
git add -A && git commit -m "Release v$ver."
git tag "$ver"
git push origin master
git push --tags
git log $OLDVER..HEAD --oneline > changelog.txt && \
echo "" >> changelog.txt && \
hub release create -F changelog.txt -t "$ver" $ver && \
rm changelog.txt
echo "--done--"

{'fraction_non_alphanumeric': 0.21089879688605803, 'fraction_numerical': 0.0028308563340410475, 'mean_word_length': 3.1466275659824046, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '2576892', 'n_tokens_mistral': 585, 'n_tokens_neox': 567, 'n_words': 167}