<commit_before><commit_msg>Add release script<commit_after>#!/bin/bash -e

if [ "$1" == "" ]; then
  echo "Usage $0 <RELEASE>"
  exit 1
fi

if [ "$(git diff master)" != "" ]; then
  echo "Make sure your working tree is clean and you are on the master branch."
  exit 1
fi

echo "Releasing version $1"

git checkout master
echo "VERSION=$1" > VERSION
git add VERSION
git commit -m "Release version $1"
git tag v$1 master

echo "Are you sure you want to push? Press ENTER"
read

git push origin master
git push origin v$1
{'fraction_non_alphanumeric': 0.11175337186897881, 'fraction_numerical': 0.017341040462427744, 'mean_word_length': 3.8598130841121496, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3332739', 'n_tokens_mistral': 176, 'n_tokens_neox': 170, 'n_words': 79}