<commit_before>#!/bin/bash
set -e

if [ -z $bamboo_ci_app_version ]; then
  echo "No version-number found: ${bamboo_ci_app_version}"
  exit 1
else
  if [ -z $bamboo_jira_version ]; then
    echo 'Nothing to commit since we are not pushing the build numbers anymore'
  else
    if [ "${bamboo.planRepository.branchName}" == "release" ]; then
      echo "Found version-number: ${bamboo_ci_app_version}"

      remote=origin

      git remote remove $remote

      remote_url=https://$bamboo_git_USER_NAME:$bamboo_git_PASSWORD@github.com/IteraSpeed/OpenSpeedMonitor.git
      echo "set remote $remote to '$remote_url'"
      git remote add -f $remote $remote_url

      git config user.email '<EMAIL>'
      git config user.name 'bamboo iteratec'

      # the following commit message is referenced by regex in bamboo to exclude these commits
      # while picking up changes (configured in bamboo repositories advanced settings)
      git commit -am "[${bamboo_ci_app_version}] version update"

      git pull --rebase $remote release

      git tag "${bamboo_ci_app_version}"
      git push --tags $remote HEAD:refs/heads/release
    else
      echo 'Wrong branch. Committing only into the release branch.'
    fi
  fi
fi<commit_msg>fixed notation of variable<commit_after>#!/bin/bash
set -e

if [ -z $bamboo_ci_app_version ]; then
  echo "No version-number found: ${bamboo_ci_app_version}"
  exit 1
else
  if [ -z $bamboo_jira_version ]; then
    echo 'Nothing to commit since we are not pushing the build numbers anymore'
  else
    if [ "${bamboo_planRepository_branchName}" == "release" ]; then
      echo "Found version-number: ${bamboo_ci_app_version}"

      remote=origin

      git remote remove $remote

      remote_url=https://$bamboo_git_USER_NAME:$bamboo_git_PASSWORD@github.com/IteraSpeed/OpenSpeedMonitor.git
      echo "set remote $remote to '$remote_url'"
      git remote add -f $remote $remote_url

      git config user.email '<EMAIL>'
      git config user.name 'bamboo iteratec'

      # the following commit message is referenced by regex in bamboo to exclude these commits
      # while picking up changes (configured in bamboo repositories advanced settings)
      git commit -am "[${bamboo_ci_app_version}] version update"

      git pull --rebase $remote release

      git tag "${bamboo_ci_app_version}"
      git push --tags $remote HEAD:refs/heads/release
    else
      echo 'Wrong branch. Committing only into the release branch.'
    fi
  fi
fi
{'fraction_non_alphanumeric': 0.08720226079935406, 'fraction_numerical': 0.0008074283407347598, 'mean_word_length': 3.362676056338028, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5002992', 'n_tokens_mistral': 776, 'n_tokens_neox': 715, 'n_words': 250}