<commit_before>import lib-dev-maven

MVN_RELEASE_REPO=target/checkout

# Release
mvnreleasetag() {
  local OPTIONAL_ARGS=-DautoVersionSubmodules=true 
  
  # Setting the next release version : 0.1.0
  if [ -n "$1" ]; then
    OPTIONAL_ARGS="$OPTIONAL_ARGS -DreleaseVersion=$1 -Dtag=version-$1"
  fi
  # Setting the following release version : 1.0.0
  if [ -n "$2" ]; then
    OPTIONAL_ARGS="$OPTIONAL_ARGS -DdevelopmentVersion=$2-SNAPSHOT"
  fi
  echo "mvn clean release:prepare $OPTIONAL_ARGS"
  mvn clean release:prepare $OPTIONAL_ARGS
}
mvnreleasedeploy() {
  cp release.properties release.properties_BAK

  echo "mvn release:prepare"
  mvn release:prepare

  echo "mvn clean release:perform"
  mvn clean release:perform
}

mvnreleasecd() {
  echo "cd $MVN_RELEASE_REPO"
  cd $MVN_RELEASE_REPO
}
mvnreleasesign() {
  echo "mvn package gpg:sign"
  mvn package gpg:sign
}
mvnreleasesigndeploy() {
  if [ ! -f "$1" ]; then
    echo "== Please supply argument(s) > mvnreleasesigndeploy PATH_AND_FILES_WITHOUT_EXTENSION (ex : target/myapp-1.0 ) =="
    return -1
  fi  
  echo "mvn gpg:sign-and-deploy-file -DpomFile=$1.pom -Dfile=$1.jar -Durl=http://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype_oss"
  mvn gpg:sign-and-deploy-file -DpomFile=$1.pom -Dfile=$1.jar -Durl=http://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype_oss
}
<commit_msg>Add feedback when running release script<commit_after>import lib-dev-maven

MVN_RELEASE_REPO=target/checkout

# Release
mvnreleasetag() {
  local OPTIONAL_ARGS=-DautoVersionSubmodules=true 
  
  # Setting the next release version : 0.1.0
  if [ -n "$1" ]; then
    OPTIONAL_ARGS="$OPTIONAL_ARGS -DreleaseVersion=$1 -Dtag=version-$1"
  fi
  # Setting the following release version : 1.0.0
  if [ -n "$2" ]; then
    OPTIONAL_ARGS="$OPTIONAL_ARGS -DdevelopmentVersion=$2-SNAPSHOT"
  fi
  echo "mvn clean release:prepare $OPTIONAL_ARGS"
  mvn clean release:prepare $OPTIONAL_ARGS
}
mvnreleasedeploy() {
  cp release.properties release.properties_BAK

  echo "mvn release:prepare"
  mvn release:prepare

  echo "mvn clean release:perform"
  mvn clean release:perform

  STATUS=$?
  if [ "$STATUS" -eq 0 ]; then
      echo "Success! Don't forget to validate your build at :"
      echo "- https://oss.sonatype.org/index.html#view-repositories;github-releases~browsestorage"
      echo "- Login, go to Stage Repositories & search for your project"
      echo "- Review Activity tab, if all is fine, push button Close & Release"
    else
      echo "== An error has happen and leave your build at an intermediate state. =="
      echo "- You've pushed all your change in your repo"
      echo "- In folder target/checkout/*, you have a non SNAPSHOT version that compiles correctly"
  fi
}

mvnreleasecd() {
  echo "cd $MVN_RELEASE_REPO"
  cd $MVN_RELEASE_REPO
}
mvnreleasesign() {
  echo "mvn package gpg:sign"
  mvn package gpg:sign
}
mvnreleasesigndeploy() {
  if [ ! -f "$1" ]; then
    echo "== Please supply argument(s) > mvnreleasesigndeploy PATH_AND_FILES_WITHOUT_EXTENSION (ex : target/myapp-1.0 ) =="
    return -1
  fi  
  echo "mvn gpg:sign-and-deploy-file -DpomFile=$1.pom -Dfile=$1.jar -Durl=http://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype_oss"
  mvn gpg:sign-and-deploy-file -DpomFile=$1.pom -Dfile=$1.jar -Durl=http://oss.sonatype.org/service/local/staging/deploy/maven2/ -DrepositoryId=sonatype_oss
}

{'fraction_non_alphanumeric': 0.1191304347826087, 'fraction_numerical': 0.012463768115942029, 'mean_word_length': 4.045321637426901, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '102317', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1235, 'n_words': 285}