<commit_before>#!/bin/sh

function workOnIssue() {
  BOLD_RED="$(git config --get-color "" "bold red")"
  GREEN="$(git config --get-color "" "green")"
  BOLD_GREEN="$(git config --get-color "" "bold green")"
  RESET_COLOR="$(git config --get-color "" "reset")"

  BRANCH_TO_PREFIX="^feature\/(.+)"
  CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`

  typeset match
  unset -v prefix # initialize output variable

  if [[ $CURRENT_BRANCH =~ $BRANCH_TO_PREFIX ]] then

    [[ -n $BASH_VERSION ]] && prefix=( "${BASH_REMATCH[@]}" )
    [[ -n $KSH_VERSION ]]  && prefix=( "${.sh.match[@]}" )
    [[ -n $ZSH_VERSION ]]  && prefix=( "${match[@]}" )

    echo $prefix

    export GIT_COMMIT_PREFIX=$prefix

    printf "\r\n${GREEN}Commit prefix is set to ${BOLD_GREEN}${prefix}${RESET_COLOR}\r\n";<commit_msg>Removes echo<commit_after>#!/bin/sh

function workOnIssue() {
  BOLD_RED="$(git config --get-color "" "bold red")"
  GREEN="$(git config --get-color "" "green")"
  BOLD_GREEN="$(git config --get-color "" "bold green")"
  RESET_COLOR="$(git config --get-color "" "reset")"

  BRANCH_TO_PREFIX="^feature\/(.+)"
  CURRENT_BRANCH=`git rev-parse --abbrev-ref HEAD`

  typeset match
  unset -v prefix # initialize output variable

  if [[ $CURRENT_BRANCH =~ $BRANCH_TO_PREFIX ]] then

    [[ -n $BASH_VERSION ]] && prefix=( "${BASH_REMATCH[@]}" )
    [[ -n $KSH_VERSION ]]  && prefix=( "${.sh.match[@]}" )
    [[ -n $ZSH_VERSION ]]  && prefix=( "${match[@]}" )

    export GIT_COMMIT_PREFIX=$prefix

    printf "\r\n${GREEN}Commit prefix is set to ${BOLD_GREEN}${prefix}${RESET_COLOR}\r\n";
{'fraction_non_alphanumeric': 0.21361058601134217, 'fraction_numerical': 0.0, 'mean_word_length': 3.91640866873065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3184277', 'n_tokens_mistral': 619, 'n_tokens_neox': 581, 'n_words': 120}