<commit_before>#!/bin/bash
set -e
set -x
DEV_SUPPORT=$(cd $(dirname ${BASH_SOURCE}) && /bin/pwd)
. $DEV_SUPPORT/ci-default-profile.sh
PROFILE=$(basename ${BASH_SOURCE})
PROFILE=${PROFILE#*-}
PROFILE=${PROFILE%%-*}
# apply profile here
case "$PROFILE" in
  run)
    PACKAGE_OPTS=()
    ;;
  build)
    PACKAGE_OPTS=(-DskipTests)
    ;;
  *)
    echo "Unknown profile $PROFILE" 1>&2
    exit 1
    ;;
esac
env
git log --oneline | head
git show
# compile and install
mvn clean install -Drelease -DskipTests
# package and run tests (if appropiate)
mvn package -Drelease -fae -Pall-libs ${PACKAGE_OPTS[@]}
<commit_msg>SDC-394 - Improve dev-support scripts<commit_after>#!/bin/bash
set -e
set -x
DEV_SUPPORT=$(cd $(dirname ${BASH_SOURCE}) && /bin/pwd)
. $DEV_SUPPORT/ci-default-profile.sh
PROFILE=$(basename ${BASH_SOURCE})
PROFILE=${PROFILE#*-}
PROFILE=${PROFILE%%-*}
# apply profile here
case "$PROFILE" in
  run)
    PACKAGE_OPTS=()
    ;;
  build)
    PACKAGE_OPTS=(-DskipTests)
    ;;
  *)
    echo "Unknown profile $PROFILE" 1>&2
    exit 1
    ;;
esac
env
git log --oneline | head
git show
# compile and install
mvn clean install -Drelease -DskipTests
# package and run tests (if appropiate)
mvn clean package -fae -Pdist,all-libs,ui -Drelease ${PACKAGE_OPTS[@]}

{'fraction_non_alphanumeric': 0.15585443037974683, 'fraction_numerical': 0.007120253164556962, 'mean_word_length': 3.884169884169884, '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': '3492269', 'n_tokens_mistral': 490, 'n_tokens_neox': 466, 'n_words': 122}