<commit_before>#!/bin/sh

# ----------------------------------------------------------------------------------
# To run this script on your machine you must:
#
# 1. export JAVA_HOME=/path/to/java
#
# 2. export MBOOT_HOME=~/mboot
#
# 3. export M2_HOME=~/maven
#    
# 4. export PATH=$PATH:$MBOOT:$M2_HOME/bin
#
# 5. Your ~/maven.properties must have: maven.repo.local = ~/path/to/repo
#
# ----------------------------------------------------------------------------------

export JAVA_HOME=/usr/local/java
export MBOOT_HOME=$HOME/mboot
export M2_HOME=$HOME/m2
export PATH=$PATH:$MBOOT_HOME:$M2_HOME/bin:$JAVA_HOME/bin

# ----------------------------------------------------------------------------------

CMD=$1

[ "$1" = "" ] && echo && echo "You must specify a checkout or update!" && echo && exit 1

HOME_DIR=`pwd`
DATE=`date`
DIR=m2-build
REPO=maven-repo-local
FROM=<EMAIL>
#TO=<EMAIL>
TO=<EMAIL>
SCM_LOG=scm.log
TIMESTAMP=`date +%Y%M%d.%H%M%S`
DEPLOY_DIR=$HOME_DIR/public_html/m2
DEPLOY_SITE=http://www.codehaus.org/~jvanzyl/m2

# ----------------------------------------------------------------------------------
<commit_msg>Create ~/maven.properties if it doesn't exists.<commit_after>#!/bin/sh

# ----------------------------------------------------------------------------------
# To run this script on your machine you must:
#
# 1. export JAVA_HOME=/path/to/java
#
# 2. export MBOOT_HOME=~/mboot
#
# 3. export M2_HOME=~/maven
#    
# 4. export PATH=$PATH:$MBOOT:$M2_HOME/bin
#
# 5. Your ~/maven.properties must have: maven.repo.local = ~/path/to/repo
#
# ----------------------------------------------------------------------------------

export JAVA_HOME=/usr/local/java
export MBOOT_HOME=$HOME/mboot
export M2_HOME=$HOME/m2
export PATH=$PATH:$MBOOT_HOME:$M2_HOME/bin:$JAVA_HOME/bin

# ----------------------------------------------------------------------------------

CMD=$1

[ "$1" = "" ] && echo && echo "You must specify a checkout or update!" && echo && exit 1

HOME_DIR=`pwd`
DATE=`date`
DIR=m2-build
REPO=maven-repo-local
FROM=<EMAIL>
#TO=<EMAIL>
TO=<EMAIL>
SCM_LOG=scm.log
TIMESTAMP=`date +%Y%M%d.%H%M%S`
DEPLOY_DIR=$HOME_DIR/public_html/m2
DEPLOY_SITE=http://www.codehaus.org/~jvanzyl/m2

# ----------------------------------------------------------------------------------
# Check if ~/maven.properties exists
# ----------------------------------------------------------------------------------
if [ ! -f ~/maven.properties ]
then
  echo 
  echo "maven.properties doesn't exists. I create it."
  echo "maven.home=$M2_HOME" > ~/maven.properties
  echo "maven.repo.local=$REPO" >> ~/maven.properties
  echo
fi

# ----------------------------------------------------------------------------------

{'fraction_non_alphanumeric': 0.42504604051565376, 'fraction_numerical': 0.012154696132596685, 'mean_word_length': 1.3095238095238095, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7494189', 'n_tokens_mistral': 892, 'n_tokens_neox': 816, 'n_words': 155}