<commit_before>#!/usr/bin/env bash

#################################################
###  Script to get or set the current version ###
#################################################

BASE_VERSION_FILE=".version"
COUNTER_FILE=".counter"

if [ -z "$1" ] ; then 
	VERSION=`cat $BASE_VERSION_FILE`
	BRANCH=`git rev-parse --abbrev-ref HEAD`
	COMMIT=`git rev-parse HEAD | cut -c1-10`

	# Get counter value
	if [ ! -f $COUNTER_FILE ] ; then
		echo 0 > $COUNTER_FILE
	fi
	COUNTER=`cat $COUNTER_FILE`
	((COUNTER++))
	echo $COUNTER > $COUNTER_FILE
	VERSION=$VERSION.$COUNTER
	case $BRANCH in 
		develop )
			EXTRA="-SNAPSHOT+$COMMIT"
			;;
		feature* )
			EXTRA="-SNAPSHOT+$COMMIT"
			;;
		release* )
			EXTRA="-beta+$COMMIT"
			;;
		* )
			# At this point we do not need to refer
			# to any commit hash since we'll have a
			# tag that represents the overall release
			EXTRA=""
			;;
	esac
	echo $VERSION$EXTRA
else<commit_msg>use alpha instead of snapshot for dev versions<commit_after>#!/usr/bin/env bash

#################################################
###  Script to get or set the current version ###
#################################################

BASE_VERSION_FILE=".version"
COUNTER_FILE=".counter"

if [ -z "$1" ] ; then 
	VERSION=`cat $BASE_VERSION_FILE`
	BRANCH=`git rev-parse --abbrev-ref HEAD`
	COMMIT=`git rev-parse HEAD | cut -c1-10`

	# Get counter value
	if [ ! -f $COUNTER_FILE ] ; then
		echo 0 > $COUNTER_FILE
	fi
	COUNTER=`cat $COUNTER_FILE`
	((COUNTER++))
	echo $COUNTER > $COUNTER_FILE
	VERSION=$VERSION.$COUNTER
	case $BRANCH in 
		develop )
			EXTRA="-alpha+$COMMIT"
			;;
		feature* )
			EXTRA="-alpha+$COMMIT"
			;;
		release* )
			EXTRA="-beta+$COMMIT"
			;;
		* )
			# At this point we do not need to refer
			# to any commit hash since we'll have a
			# tag that represents the overall release
			EXTRA=""
			;;
	esac
	echo $VERSION$EXTRA
else
{'fraction_non_alphanumeric': 0.22826666666666667, 'fraction_numerical': 0.005333333333333333, 'mean_word_length': 3.860103626943005, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2422912', 'n_tokens_mistral': 744, 'n_tokens_neox': 649, 'n_words': 170}