<commit_before>#!/bin/bash
# Determine if the following files changed in the branch
echo "-----------------------------------------------------------"
echo "Checking for modifications to files that should not be changed..."
echo "-----------------------------------------------------------"
echo "Value of env variable TRAVIS_PULL_REQUEST=${TRAVIS_PULL_REQUEST}"
if [ "${TRAVIS_PULL_REQUEST}" = true]; then
	echo "Comparing HEAD against pending commit..."
	git diff --exit-code HEAD LICENSE
else
	echo "Comparing HEAD against previous commit ..."
	git diff --exit-code HEAD^1 HEAD LICENSE
fi

if [ $? -eq 0 ]; then
	echo "SUCCESS: Files that shouldn't be modified were not changed in last commit"
	exit 0
else
	echo "FAILURE: Files that shouldn't be modified were unexpectedly modified in last commit" >&2
	exit 1
fi
echo "-----------------------------------------------------------"<commit_msg>Minor update to script<commit_after>#!/bin/bash
# Determine if the following files changed in the branch
echo "-----------------------------------------------------------"
echo "Checking for modifications to files that should not be changed..."
echo "-----------------------------------------------------------"
if [ "${TRAVIS_PULL_REQUEST}" = true]; then
	echo "Comparing HEAD against pending commit..."
	git diff --exit-code HEAD LICENSE
else
	echo "Comparing HEAD against previous commit ..."
	git diff --exit-code HEAD^1 HEAD LICENSE
fi

if [ $? -eq 0 ]; then
	echo "SUCCESS: Files that shouldn't be modified were not changed in last commit"
	exit 0
else
	echo "FAILURE: Files that shouldn't be modified were unexpectedly modified in last commit" >&2
	exit 1
fi
echo "-----------------------------------------------------------"
{'fraction_non_alphanumeric': 0.27909669947886506, 'fraction_numerical': 0.005790387955993051, 'mean_word_length': 1.8051948051948052, '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': '4993520', 'n_tokens_mistral': 422, 'n_tokens_neox': 392, 'n_words': 189}