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

# apply patches for all modules

readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

modules="$(find ${SCRIPT_DIR}/patches -mindepth 1 -maxdepth 1 -type d)"

for module in ${modules}; do
  patches="$(find ${module} -type f -size +1c -regextype posix-extended -iregex '.*\.(patch|diff)')"

  if [[ -n "${patches}" ]]; then
    "${SCRIPT_DIR}/patch-module.sh" "${module}"
  fi
done
<commit_msg>Please if VMWARE_TOOLS_PATCHES_DEBUG is set to 'pause'<commit_after>#!/usr/bin/env bash

# apply patches for all modules

readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

modules="$(find ${SCRIPT_DIR}/patches -mindepth 1 -maxdepth 1 -type d)"

for module in ${modules}; do
  patches="$(find ${module} -type f -size +1c -regextype posix-extended -iregex '.*\.(patch|diff)')"

  if [[ -n "${patches}" ]]; then
    "${SCRIPT_DIR}/patch-module.sh" "${module}"
  fi
done

if [[ "${VMWARE_TOOLS_PATCHES_DEBUG-}" =~ (pause|PAUSE) ]]; then
  read -p "Press [Enter] to continue: "
fi

{'fraction_non_alphanumeric': 0.20384615384615384, 'fraction_numerical': 0.007692307692307693, 'mean_word_length': 4.507936507936508, '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': '300403', 'n_tokens_mistral': 414, 'n_tokens_neox': 379, 'n_words': 103}