<commit_before>#!/bin/bash
# Precommit script for checking everything is ready for a commit together with update functionality for trivial stuff.

# Find files named *.java and *.xml in the src folders and set keywords on these
find . \( -iname "*.xml" -or -iname "*.java" \) -and -path "*src*" -exec svn propset svn:keywords 'URL Revision Author Date Id' {} -q \;

echo "Updating file headers"
#mvn license:update-file-header -q

echo "Updating project license"
#mvn license:update-project-license -q

echo "Updating third party licenses"
#mvn license:add-third-party -q

echo "Running regression test"
#mvn clean install -q<commit_msg>BITMAG-175: Add precommit QA script: Fixed issues from review CR-BITMAG-14<commit_after>#!/bin/bash
# Precommit script for checking everything is ready for a commit together with update functionality for trivial stuff.

# Find files named *.java and *.xml in the src folders and set keywords on these
find . \( -iname "*.xml" -or -iname "*.java" -or -iname "*.properties" -or -iname "*.xsd" \) -and -path "*/src/*" -exec svn propset svn:keywords 'URL Revision Author Date Id' {} -q \;

echo "Updating file headers"
mvn license:update-file-header -q

echo "Updating project license"
mvn license:update-project-license -q

echo "Updating third party licenses"
mvn license:add-third-party -q

echo "Running regression test"
mvn clean install -q
{'fraction_non_alphanumeric': 0.11248185776487664, 'fraction_numerical': 0.00362844702467344, 'mean_word_length': 4.12639405204461, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '597340', 'n_tokens_mistral': 433, 'n_tokens_neox': 413, 'n_words': 178}