<commit_before>#!/bin/bash

VERVEINE="/data/programs/verveinej/verveinej.sh"
DIST_STROLCH="/var/www/eitch/www.strolch.li/dist/snapshot"

## Prepare the environment
echo "INFO Bootstrapping..."
if ! ./bootstrap_https.sh ; then
  echo "ERROR: Failed to boostrap!"
  exit 1
fi

echo "INFO: Copying dependencies"
mvn -DskipTests=true clean dependency:copy-dependencies

echo "INFO Running verveinej..."
cd ..
if ! ${VERVEINE} -- -autocp . . ; then
  echo "ERROR: Failed to run verveinej!"
  exit 1
fi 
mv output.mse Strolch.mse

echo "INFO Cleaning sources..."
if ! mvn clean ; then
  echo "ERROR: Failed to run mvn clean!"
  exit 1
fi

echo "INFO Packaging..."
cd ../
if ! tar --exclude="*/target" --exclude="*/.git*" -cvzf strolch_mse.tar.gz * ; then
  echo "ERROR: Failed to build package!"
  exit 1
fi

if ! mv strolch_mse.tar.gz ${DIST_STROLCH}/strolch_mse.tar.gz ; then
  echo "ERROR: Failed to publish MSE file!"
  exit 1
fi

exit 0<commit_msg>[Project] fixing buildMSE.sh<commit_after>#!/bin/bash

VERVEINE="/data/programs/verveinej/verveinej.sh"
DIST_STROLCH="/var/www/eitch/www.strolch.li/dist/snapshot"

## Prepare the environment
echo "INFO Bootstrapping..."
if ! ./bootstrap_https.sh ; then
  echo "ERROR: Failed to boostrap!"
  exit 1
fi

echo "INFO: Copying dependencies"
cd ..
mvn -DskipTests=true clean dependency:copy-dependencies

echo "INFO Running verveinej..."
if ! ${VERVEINE} -- -autocp . . ; then
  echo "ERROR: Failed to run verveinej!"
  exit 1
fi 
mv output.mse Strolch.mse

echo "INFO Cleaning sources..."
if ! mvn clean ; then
  echo "ERROR: Failed to run mvn clean!"
  exit 1
fi

echo "INFO Packaging..."
if ! tar --exclude="*/target" --exclude="*/.git*" -cvzf strolch_mse.tar.gz * ; then
  echo "ERROR: Failed to build package!"
  exit 1
fi

if ! mv strolch_mse.tar.gz ${DIST_STROLCH}/strolch_mse.tar.gz ; then
  echo "ERROR: Failed to publish MSE file!"
  exit 1
fi

exit 0
{'fraction_non_alphanumeric': 0.1377497371188223, 'fraction_numerical': 0.006309148264984227, 'mean_word_length': 3.585542168674699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2457334', 'n_tokens_mistral': 747, 'n_tokens_neox': 710, 'n_words': 208}