<commit_before>#! /bin/bash
# The purpose of this shell script is mainly building the static comments.

# Exit on any error
set -e

echo "Set git credentials."
git config --global user.email "<EMAIL>"
git config --global user.name "<NAME>"
git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials

# Path comes from Netlify Build Image
source /opt/buildhome/python3.7/bin/activate

echo "Install python deps for building comments."
pip install --upgrade pip
pip install requests pyyaml cryptography langdetect pathlib2

echo "Build static comments if there are any."<commit_msg>Add send-mail build step.<commit_after>#! /bin/bash
# The purpose of this shell script is mainly building the static comments.

# Exit on any error
set -e

echo "Packaging lambda functions"
pushd src/_functions/send-mail
npm install
popd

echo "Set git credentials."
git config --global user.email "<EMAIL>"
git config --global user.name "<NAME>"
git config credential.helper "store --file=.git/credentials"
echo "https://${GH_TOKEN}:@github.com" > .git/credentials

# Path comes from Netlify Build Image
source /opt/buildhome/python3.7/bin/activate

echo "Install python deps for building comments."
pip install --upgrade pip
pip install requests pyyaml cryptography langdetect pathlib2

echo "Build static comments if there are any."
{'fraction_non_alphanumeric': 0.09963636363636363, 'fraction_numerical': 0.004363636363636364, 'mean_word_length': 4.526104417670683, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '182663', 'n_tokens_mistral': 404, 'n_tokens_neox': 390, 'n_words': 163}