<commit_before>#!/bin/bash

if [ $# != 1 ] ; then
  echo "Usage: ${0} <version>"
  exit 1
fi

projectName=strolch_bundle
projectVersion=${1}
bundle_name="${projectName}-${projectVersion}"
DIST_STROLCH="/var/www/eitch/strolch.li/dist/snapshot"
DEPLOY_SERVER="hosting.eitchnet.ch"
ROOT="${PWD}"
workDir="${ROOT}/target/${bundle_name}"

# Create all needed packages
#echo "INFO: Building projects..."
#if ! mvn -DskipTests clean package ; then
#  echo "ERROR: Failed to build packages!"
#  exit 1
#fi

# Make sure the work directory exists
if [ -d "${workDir}" ] ; then
  if ! rm -rf "${workDir}" ; then
    echo "ERROR: Failed to clean work dir ${workDir}."
    exit 1<commit_msg>[Project] Changed how version is detected for bundle creation<commit_after>#!/bin/bash

projectVersion=$(grep -m 1 "<version>" pom.xml | tr '<>' '|' | cut -d '|' -f 3)
if [ $? != 0 ] ; then
  echo "ERROR: Failed to parse version!"
fi

echo "INFO: Project version is ${projectVersion}"

projectName=strolch_bundle
bundle_name="${projectName}-${projectVersion}"
DIST_STROLCH="/var/www/eitch/strolch.li/dist/snapshot"
DEPLOY_SERVER="hosting.eitchnet.ch"
ROOT="${PWD}"
workDir="${ROOT}/target/${bundle_name}"

# Create all needed packages
#echo "INFO: Building projects..."
#if ! mvn -DskipTests clean package ; then
#  echo "ERROR: Failed to build packages!"
#  exit 1
#fi

# Make sure the work directory exists
if [ -d "${workDir}" ] ; then
  if ! rm -rf "${workDir}" ; then
    echo "ERROR: Failed to clean work dir ${workDir}."
    exit 1
{'fraction_non_alphanumeric': 0.16490765171503957, 'fraction_numerical': 0.007255936675461741, 'mean_word_length': 4.496376811594203, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 1}, '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': '6150838', 'n_tokens_mistral': 535, 'n_tokens_neox': 515, 'n_words': 154}