<commit_before>#!/bin/bash

function main()
{
  while true
  do
    find lib test -type f |
      entr -d bash entr_script.sh
  done
}

main "$@"<commit_msg>Added function to set calling directory on autotest script<commit_after>#!/bin/bash

function main()
{
  set_calling_dir_global
  while true
  do
    find lib test -type f |
      entr -d bash entr_script.sh
  done
}

function set_calling_dir_global()
{
  local current_folder
  current_folder=$(pwd)

  create_global_readonly "CALLING_DIR" "$current_folder"
}

function create_global_readonly()
{
  declare -gr "$1=$2"
}

main "$@"
{'fraction_non_alphanumeric': 0.1035653650254669, 'fraction_numerical': 0.003395585738539898, 'mean_word_length': 3.645669291338583, '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': '6455140', 'n_tokens_mistral': 218, 'n_tokens_neox': 208, 'n_words': 56}