<commit_before>#!/bin/sh

# This process assumes that maven-core-it-verifier has been built.

home=`pwd`

cp=../../maven-core-it-verifier/target/maven-core-it-verifier-1.0.jar

verifier=org.apache.maven.it.Verifier

integration_tests=`cat integration-tests.txt | egrep -v '^#'`

for integration_test in $integration_tests
do

  echo "----------------------------------------------------------"
  echo "Running integration test $integration_test ..."
  echo "----------------------------------------------------------"  
  (
    cd $integration_test
    
    if [ -f prebuild.hook ]
    then
      echo      
       sh prebuild.hook
      echo
    fi
    
    m2 clean:clean `cat goals.txt`
    ret=$?; if [ $ret != 0 ]; then exit $ret; fi
    
    if [ -f postbuild.hook ]
    then    
      echo
      sh postbuild.hook
      echo
    fi
    
    basedir=.
    
    java -cp "$cp" $verifier "$basedir"
    ret=$?; if [ $ret != 0 ]; then exit $ret; fi
  )
  ret=$?; if [ $ret != 0 ]; then exit $ret; fi
done<commit_msg>o toss out the log of the build if something goes wrong, otherwise just   indicate things went OK.<commit_after>#!/bin/sh

# This process assumes that maven-core-it-verifier has been built.

home=`pwd`

cp=../../maven-core-it-verifier/target/maven-core-it-verifier-1.0.jar

verifier=org.apache.maven.it.Verifier

integration_tests=`cat integration-tests.txt | egrep -v '^#'`

for integration_test in $integration_tests
do
  (
    cd $integration_test
    
    if [ -f prebuild.hook ]
    then
      echo      
       sh prebuild.hook
      echo
    fi
    
    m2 clean:clean `cat goals.txt`
    
    if [ -f postbuild.hook ]
    then    
      echo
      sh postbuild.hook
      echo
    fi
    
    basedir=.
    
    java -cp "$cp" $verifier "$basedir"        
  ) > ${integration_test}-log.txt

  if [ "$?" = "0" ]
  then
    echo "Integration test $integration_test OK"
  else
    echo "Integration test $integration_test FAILED!"
    echo "Details:"
    cat ${integration_test}-log.txt
    echo
  fi

done
{'fraction_non_alphanumeric': 0.17142857142857143, 'fraction_numerical': 0.0049261083743842365, 'mean_word_length': 1.8525280898876404, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '4914049', 'n_tokens_mistral': 686, 'n_tokens_neox': 656, 'n_words': 172}