<commit_before>#!/bin/bash

# exit on errors
set -e

# Script to run extra verifications after tox build completes

# Verify that code-gen.sh doesn't generate a diff
./gen-code.sh 
DIFF_OUT=$(git diff --stat)

echo "========================================="
echo ""

if [[ -n "$DIFF_OUT" ]]; then
    echo "./gen-code.sh modified the source code. gen-code.sh should not modify the source code. If needed, run gen-code.sh before committing."
    echo "git diff --stat output:"
    echo "$DIFF_OUT"
    exit 1
fi

echo "All is good"<commit_msg>add sh -x<commit_after>#!/bin/bash

# exit on errors
set -e

# Script to run extra verifications after tox build completes

# Verify that code-gen.sh doesn't generate a diff
sh -x ./gen-code.sh 
DIFF_OUT=$(git diff --stat)

echo "========================================="
echo ""

if [[ -n "$DIFF_OUT" ]]; then
    echo "./gen-code.sh modified the source code. gen-code.sh should not modify the source code. If needed, run gen-code.sh before committing."
    echo "git diff --stat output:"
    echo "$DIFF_OUT"
    exit 1
fi

echo "All is good"
{'fraction_non_alphanumeric': 0.18933823529411764, 'fraction_numerical': 0.001838235294117647, 'mean_word_length': 3.4448979591836735, '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': '1391240', 'n_tokens_mistral': 355, 'n_tokens_neox': 340, 'n_words': 133}