<commit_before>#!/bin/bash

gradle="sudo ./gradlew $@"
gradleBuild="assemble"
gradleBuildOptions="--stacktrace --build-cache --configure-on-demand -DskipNestedConfigMetadataGen=true --parallel "

if [ "$MATRIX_JOB_TYPE" == "STYLE" ]; then
     gradleBuild="$gradleBuild checkstyleMain checkstyleTest -x test -x javadoc "
elif [ "$MATRIX_JOB_TYPE" == "JAVADOC" ]; then
     gradleBuild="$gradleBuild -x test -x check -DskipNpmLint=true "
elif [ "$MATRIX_JOB_TYPE" == "TEST" ]; then
    gradleBuild="$gradleBuild test coveralls -x javadoc -x check -DskipNpmLint=true "
elif [ "$MATRIX_JOB_TYPE" == "SNAPSHOT" ]; then
    echo -e "The build is publishing snapshots; Skipping tests and checks...\n "
    gradleBuild="$gradleBuild -x test -x check -x javadoc -DskipNpmLint=true "
fi

if [[ "${TRAVIS_COMMIT_MESSAGE}" == *"[show streams]"* ]]; then
    gradleBuild="$gradleBuild -DshowStandardStreams=true"
fi

tasks="$gradle $gradleBuildOptions $gradleBuild"
echo $tasks

waitRetVal=-1
if [ "$MATRIX_JOB_TYPE" == "TEST" ]; then
    waitloop="while sleep 9m; do echo -e '\n=====[ Gradle build is still running ]====='; done &"
    eval $waitloop
    waitRetVal=$?
fi<commit_msg>break down build into a better matrix<commit_after>#!/bin/bash

gradle="sudo ./gradlew $@"
gradleBuild=""
gradleBuildOptions="--stacktrace --build-cache --configure-on-demand -DskipNestedConfigMetadataGen=true --parallel "


if [ "$MATRIX_JOB_TYPE" == "BUILD" ] || [ "$MATRIX_JOB_TYPE" == "SNAPSHOT" ]; then
    gradleBuild="$gradleBuild assemble -x test -x javadoc -x check -DskipNpmLint=true "
elif [ "$MATRIX_JOB_TYPE" == "STYLE" ]; then
     gradleBuild="$gradleBuild checkstyleMain checkstyleTest -x test -x javadoc "
elif [ "$MATRIX_JOB_TYPE" == "JAVADOC" ]; then
     gradleBuild="$gradleBuild javadoc -x test -x check -DskipNpmLint=true "
elif [ "$MATRIX_JOB_TYPE" == "TEST" ]; then
    gradleBuild="$gradleBuild test coveralls -x javadoc -x check -DskipNpmLint=true "
fi

if [[ "${TRAVIS_COMMIT_MESSAGE}" == *"[show streams]"* ]]; then
    gradleBuild="$gradleBuild -DshowStandardStreams=true"
fi

tasks="$gradle $gradleBuildOptions $gradleBuild"
echo $tasks

waitRetVal=-1
if [ "$MATRIX_JOB_TYPE" == "TEST" ]; then
    waitloop="while sleep 9m; do echo -e '\n=====[ Gradle build is still running ]====='; done &"
    eval $waitloop
    waitRetVal=$?
fi
{'fraction_non_alphanumeric': 0.15638389031705227, 'fraction_numerical': 0.001713796058269066, 'mean_word_length': 4.709046454767726, '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': '7267747', 'n_tokens_mistral': 864, 'n_tokens_neox': 798, 'n_words': 200}