<commit_before>#!/usr/bin/env bash

GRAILS_VERSIONS="grails_3_3"
TEMPLATE_FOLDER="./functional-test-app"

# static annotation requestmap basic misc bcrypt
TEST_GROUPS="static annotation requestmap basic misc bcrypt"

# firefox, htmlUnit, chrome, phantomJs
GEBENV=$1
if [[ $GEBENV = "" ]]; then
    GEBENV=firefox
fi
# /Users/sdelamo/Applications/chromedriver
CHROMEDRIVER=$2
if [[ $CHROMEDRIVER = "" ]]; then
    CHROMEDRIVER=/Users/sdelamo/Applications/chromedriver
fi

# /Users/sdelamo/Applications/phantomjs-2.1.1-macosx/bin/phantomjs
PHANTOMJSDRIVER=$2
if [[ $PHANTOMJSDRIVER = "" ]]; then
    PHANTOMJSDRIVER=/Users/sdelamo/Applications/phantomjs-2.1.1-macosx/bin/phantomjs
fi

echo "GEB environment: $GEBENV"
echo "Chrome driver: $CHROMEDRIVER"
echo "PhantomJS driver: $PHANTOMJSDRIVER"

rm -rf $TEMPLATE_FOLDER/build
rm -rf $TEMPLATE_FOLDER/.gradle

function runTestGroup {
	testGroup=$1
	grailsVersion=$2
	echo "Running test group $testGroup for $grailsVersion"
        cd $TEMPLATE_FOLDER/$grailsVersion
	./gradlew -q -Dgeb.env=$GEBENV -Dwebdriver.chrome.driver=$CHROMEDRIVER -Dphantomjs.binary.path=$PHANTOMJSDRIVER -DTESTCONFIG=$testGroup cleanBuild check --stacktrace
    # mv build/reports/tests build/reports/tests-$testGroup-$grailsVersion
	# mv build/geb-reports build/geb-reports-$testGroup-$grailsVersion
	# mv build/test-results build/test-results-$testGroup-$grailsVersion
        cd ../..<commit_msg>run by default in htmlUnit<commit_after>#!/usr/bin/env bash

GRAILS_VERSIONS="grails_3_3"
TEMPLATE_FOLDER="./functional-test-app"

# static annotation requestmap basic misc bcrypt
TEST_GROUPS="static annotation requestmap basic misc bcrypt"

# firefox, htmlUnit, chrome, phantomJs
GEBENV=$1
if [[ $GEBENV = "" ]]; then
    GEBENV=htmlUnit
fi
# /Users/sdelamo/Applications/chromedriver
CHROMEDRIVER=$2
if [[ $CHROMEDRIVER = "" ]]; then
    CHROMEDRIVER=/Users/sdelamo/Applications/chromedriver
fi

# /Users/sdelamo/Applications/phantomjs-2.1.1-macosx/bin/phantomjs
PHANTOMJSDRIVER=$2
if [[ $PHANTOMJSDRIVER = "" ]]; then
    PHANTOMJSDRIVER=/Users/sdelamo/Applications/phantomjs-2.1.1-macosx/bin/phantomjs
fi

echo "GEB environment: $GEBENV"
echo "Chrome driver: $CHROMEDRIVER"
echo "PhantomJS driver: $PHANTOMJSDRIVER"

rm -rf $TEMPLATE_FOLDER/build
rm -rf $TEMPLATE_FOLDER/.gradle

function runTestGroup {
	testGroup=$1
	grailsVersion=$2
	echo "Running test group $testGroup for $grailsVersion"
        cd $TEMPLATE_FOLDER/$grailsVersion
	./gradlew -q -Dgeb.env=$GEBENV -Dwebdriver.chrome.driver=$CHROMEDRIVER -Dphantomjs.binary.path=$PHANTOMJSDRIVER -DTESTCONFIG=$testGroup cleanBuild check --stacktrace
    # mv build/reports/tests build/reports/tests-$testGroup-$grailsVersion
	# mv build/geb-reports build/geb-reports-$testGroup-$grailsVersion
	# mv build/test-results build/test-results-$testGroup-$grailsVersion
        cd ../..
{'fraction_non_alphanumeric': 0.12394957983193278, 'fraction_numerical': 0.009103641456582634, 'mean_word_length': 5.065817409766455, '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': '1967792', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1043, 'n_words': 184}