<commit_before>#!/bin/bash

VERSION="$1"
BRANCH="RELEASE"

#sanity
if [[ -z "$VERSION" ]]; then
	echo "Usage: release.sh <version>"
	exit 0
fi

#prepare branch
git checkout master
git branch -D "$BRANCH"
git checkout -b "$BRANCH"

#update version
sed -i "s/1.0.0-SNAPSHOT/$VERSION/g" gradle.properties
sed -i "s/1.0.0-SNAPSHOT/$VERSION/g" .travis.yml
git add gradle.properties .travis.yml
git commit -m "Update version of $BRANCH to $VERSION"

#push branch
git push -f origin "$BRANCH:$BRANCH"

#push tag
git tag "$VERSION"
git push origin "$VERSION"

#back to master branch
git checkout master<commit_msg>Update release script to 2.0.0.<commit_after>#!/bin/bash

VERSION="$1"
BRANCH="RELEASE"

#sanity
if [[ -z "$VERSION" ]]; then
	echo "Usage: release.sh <version>"
	exit 0
fi

#prepare branch
git checkout master
git branch -D "$BRANCH"
git checkout -b "$BRANCH"

#update version
sed -i "s/2.0.0-SNAPSHOT/$VERSION/g" gradle.properties
sed -i "s/2.0.0-SNAPSHOT/$VERSION/g" .travis.yml
git add gradle.properties .travis.yml
git commit -m "Update version of $BRANCH to $VERSION"

#push branch
git push -f origin "$BRANCH:$BRANCH"

#push tag
git tag "$VERSION"
git push origin "$VERSION"

#back to master branch
git checkout master
{'fraction_non_alphanumeric': 0.14227642276422764, 'fraction_numerical': 0.015447154471544716, 'mean_word_length': 4.306034482758621, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7608613', 'n_tokens_mistral': 480, 'n_tokens_neox': 466, 'n_words': 151}