<commit_before>if [[ -z $PR_PACKAGE ]]; then
    package=astropy/astropy
else
    package=${PR_PACKAGE}
fi

if [[ -z $CHANGELOG ]]; then
    changelog=CHANGES.rst
else
    changelog=${CHANGELOG}
fi

python 1.get_merged_prs.py ${package}
python 2.find_pr_branches.py ${package}
python 3.find_pr_changelog_section.py ${package} ${changelog}
python 4.check_consistency.py ${package} > consistency.html<commit_msg>Add option for alternate Python executable<commit_after>if [[ -z $PR_PACKAGE ]]; then
    package=astropy/astropy
else
    package=${PR_PACKAGE}
fi

if [[ -z $CHANGELOG ]]; then
    changelog=CHANGES.rst
else
    changelog=${CHANGELOG}
fi

if [[ -z $PYEXEC ]]; then
    pyexec=python
else
    pyexec=${PYEXEC}
fi

pyexec 1.get_merged_prs.py ${package}
pyexec 2.find_pr_branches.py ${package}
pyexec 3.find_pr_changelog_section.py ${package} ${changelog}
pyexec 4.check_consistency.py ${package} > consistency.html
{'fraction_non_alphanumeric': 0.13001083423618634, 'fraction_numerical': 0.00866738894907909, 'mean_word_length': 4.923076923076923, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3598158', 'n_tokens_mistral': 353, 'n_tokens_neox': 345, 'n_words': 72}