<commit_before>#! /usr/bin/env sh

if [ -z "$PLAY_CMD" ]; then
  PLAY_CMD="$HOME/src/play-2.0.3/play";
fi

$PLAY_CMD clean compile stage
cd target

mkdir collins
mkdir collins/scripts
mkdir collins/conf
mv staged collins/lib
cp ../scripts/collins.sh collins/scripts/collins.sh
cp ../conf/logger.xml collins/conf/
cp ../conf/production*.conf collins/conf/
cp ../conf/permissions.yaml collins/conf/
cp ../conf/validations.conf collins/conf/
cp -R ../conf/solr collins/conf/
mkdir -p collins/conf/
cp -R ../conf/evolutions/* collins/conf/evolutions/<commit_msg>Build: Made package.sh script a bit more correct<commit_after>#! /usr/bin/env sh

if [ -z "$1" ]; then
  DEBUG=0
else
  set -x
  DEBUG=1
fi

if [ -z "$PLAY_CMD" ]; then
  PLAY_CMD="$HOME/src/play-2.0.3/play";
fi

if [ $DEBUG -eq 0 ]; then
  rm -rf targed/staged
  $PLAY_CMD clean compile stage
fi

cd target

CONF_DIR="collins/conf"

rm -rf collins
for dir in collins collins/lib collins/scripts $CONF_DIR; do
  mkdir $dir
done
for dir in $CONF_DIR/solr/conf $CONF_DIR/solr/data; do
  mkdir -p $dir
done

cp staged/* collins/lib

cp ../scripts/collins.sh collins/scripts/collins.sh
cp ../conf/logger.xml $CONF_DIR
cp ../conf/production*.conf $CONF_DIR
cp ../conf/permissions.yaml $CONF_DIR
cp ../conf/validations.conf $CONF_DIR

cp -R ../conf/solr/conf/* $CONF_DIR/solr/conf/
cp -R ../conf/evolutions/* $CONF_DIR/evolutions/
{'fraction_non_alphanumeric': 0.15195369030390737, 'fraction_numerical': 0.00723589001447178, 'mean_word_length': 3.321875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1311359', 'n_tokens_mistral': 553, 'n_tokens_neox': 527, 'n_words': 141}