<commit_before>#!/bin/bash

set -e
source $(dirname $0)/00-init-env.sh

#-------------------------------------------------------------------------------
# Package UAA
#-------------------------------------------------------------------------------
if [[ "$JHI_APP" == *"uaa"* ]]; then
    cd "$JHI_FOLDER_UAA"
    ./mvnw verify -DskipTests -Pdev
fi

#-------------------------------------------------------------------------------
# Decrease Angular timeout for Protractor tests
#-------------------------------------------------------------------------------
cd "$JHI_FOLDER_APP"
if [ "$JHI_PROTRACTOR" == 1 ] && [ -e "src/main/webapp/app/app.module.ts" ]; then
    sed -e 's/alertTimeout: 5000/alertTimeout: 1/1;' src/main/webapp/app/app.module.ts > src/main/webapp/app/app.module.ts.sed
    mv -f src/main/webapp/app/app.module.ts.sed src/main/webapp/app/app.module.ts
    cat src/main/webapp/app/app.module.ts | grep alertTimeout
fi

#-------------------------------------------------------------------------------
# Package the application
#-------------------------------------------------------------------------------
if [ -f "mvnw" ]; then
    ./mvnw verify -DskipTests -P"$JHI_PROFILE"
    mv target/*.war app.war
elif [ -f "gradlew" ]; then
    ./gradlew bootWar -P"$JHI_PROFILE" -x test -x war
    mv build/libs/*.war app.war
else
    echo "*** no mvnw or gradlew"
    exit 0
fi
if [ $? -ne 0 ]; then
    echo "*** error when packaging"
    exit 1
fi<commit_msg>CI: use default build for Gradle and copy the non original war (#8874)<commit_after>#!/bin/bash

set -e
source $(dirname $0)/00-init-env.sh

#-------------------------------------------------------------------------------
# Package UAA
#-------------------------------------------------------------------------------
if [[ "$JHI_APP" == *"uaa"* ]]; then
    cd "$JHI_FOLDER_UAA"
    ./mvnw verify -DskipTests -Pdev
fi

#-------------------------------------------------------------------------------
# Decrease Angular timeout for Protractor tests
#-------------------------------------------------------------------------------
cd "$JHI_FOLDER_APP"
if [ "$JHI_PROTRACTOR" == 1 ] && [ -e "src/main/webapp/app/app.module.ts" ]; then
    sed -e 's/alertTimeout: 5000/alertTimeout: 1/1;' src/main/webapp/app/app.module.ts > src/main/webapp/app/app.module.ts.sed
    mv -f src/main/webapp/app/app.module.ts.sed src/main/webapp/app/app.module.ts
    cat src/main/webapp/app/app.module.ts | grep alertTimeout
fi

#-------------------------------------------------------------------------------
# Package the application
#-------------------------------------------------------------------------------
if [ -f "mvnw" ]; then
    ./mvnw verify -DskipTests -P"$JHI_PROFILE"
    mv target/*.war app.war
elif [ -f "gradlew" ]; then
    ./gradlew bootWar -P"$JHI_PROFILE" -x test
    mv build/libs/*SNAPSHOT.war app.war
else
    echo "*** no mvnw or gradlew"
    exit 0
fi
if [ $? -ne 0 ]; then
    echo "*** error when packaging"
    exit 1
fi
{'fraction_non_alphanumeric': 0.4268130405854957, 'fraction_numerical': 0.00998003992015968, 'mean_word_length': 1.0483651226158037, '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': '4611668', 'n_tokens_mistral': 900, 'n_tokens_neox': 846, 'n_words': 203}