<commit_before>#### Description: performs Tailor.sh analyze

# default vars
RESULT_FOLDER="ci_report"
TAILOR_FOLDER="$RESULT_FOLDER/tailor"
TAILOR_JSON_SUMMARY_FOLDER="$RESULT_FOLDER/tailor/json"
TAILOR_STATIC_FOLDER="ci/reports/tailor/static"

# create folder
if [ ! -d $TAILOR_JSON_SUMMARY_FOLDER ]; then
    echo $TAILOR_JSON_SUMMARY_FOLDER
    mkdir -p $TAILOR_JSON_SUMMARY_FOLDER
fi

# Tailor
echo "Producing Tailor.sh report..."
tailor * -f json > $TAILOR_JSON_SUMMARY_FOLDER/report.json
echo "Done!"

# copy static files
cp -R $TAILOR_STATIC_FOLDER/* $TAILOR_FOLDER
<commit_msg>excluded brace-style and trailing-whitespace rules<commit_after>#### Description: performs Tailor.sh analyze

# default vars
RESULT_FOLDER="ci_report"
TAILOR_FOLDER="$RESULT_FOLDER/tailor"
TAILOR_JSON_SUMMARY_FOLDER="$RESULT_FOLDER/tailor/json"
TAILOR_STATIC_FOLDER="ci/reports/tailor/static"

# create folder
if [ ! -d $TAILOR_JSON_SUMMARY_FOLDER ]; then
    echo $TAILOR_JSON_SUMMARY_FOLDER
    mkdir -p $TAILOR_JSON_SUMMARY_FOLDER
fi

# Tailor
echo "Producing Tailor.sh report..."
tailor * --except=brace-style,trailing-whitespace -f json > $TAILOR_JSON_SUMMARY_FOLDER/report.json
echo "Done!"

# copy static files
cp -R $TAILOR_STATIC_FOLDER/* $TAILOR_FOLDER

{'fraction_non_alphanumeric': 0.10576923076923077, 'fraction_numerical': 0.0, 'mean_word_length': 6.261627906976744, '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': '5362034', 'n_tokens_mistral': 527, 'n_tokens_neox': 500, 'n_words': 87}