<commit_before>#!/bin/bash

START=$(date +%s)

# fail on first error
set -e

source /data/scripts/global.sh
log "INSTALL BASE MODEL"
cd /data/src/basemodel
mvn clean install -P no-license-and-notice,no-java-formatter,no-checkstyle -DskipTests

log "INSTALL FRANCA"
cd /data/src/tools/generator/dependency-libs
mvn validate -P no-license-and-notice,no-java-formatter,no-checkstyle -DskipTests

log "GENERATE CPP SOURCES"
cd /data/src/cpp
mvn clean process-test-sources -P no-license-and-notice,no-java-formatter,no-checkstyle -DskipTests

END=$(date +%s)
DIFF=$(( $END - $START ))
log "c++ generate sources took $DIFF seconds"<commit_msg>[build] libjoynr and generator installed in local mvn repo<commit_after>#!/bin/bash

START=$(date +%s)

# fail on first error
set -e

source /data/scripts/global.sh
log "INSTALL BASE MODEL"
cd /data/src/basemodel
mvn clean install -P no-license-and-notice,no-java-formatter,no-checkstyle -DskipTests

log "INSTALL FRANCA AND BASE GENERATOR"
cd /data/src/tools/generator
mvn clean install -P no-license-and-notice,no-java-formatter,no-checkstyle -DskipTests

log "INSTALL GENERATOR AND GENERATE CPP SOURCES, ALSO FOR USE OF LATER BUILD STEPS"
cd /data/src/cpp
mvn clean install -P no-license-and-notice,no-java-formatter,no-checkstyle -DskipTests

END=$(date +%s)
DIFF=$(( $END - $START ))
log "c++ generate sources took $DIFF seconds"
{'fraction_non_alphanumeric': 0.12910284463894967, 'fraction_numerical': 0.0, 'mean_word_length': 4.6929460580912865, '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': '969577', 'n_tokens_mistral': 514, 'n_tokens_neox': 482, 'n_words': 135}