<commit_before>#!/bin/sh

#exit on any command faliure
set -e 
#set -o pipefail

echo PWD=`pwd`
env

#PATH=$PATH:/opt/java/tools/maven2/current/bin/

#WORKING_DIR=`pwd`
#LOCAL_REPO=$WORKING_DIR/local-repository/
#SETTINGS_FILE=$WORKING_DIR/settings.xml

# Remove existing archetype dir, if present
#rm -rf $WORKING_DIR/test-confluence-plugin

#Remove old settings.xml
#rm -rf $WORKING_DIR/settings.xml

# Remove existing local maven repository, if present
#rm -rf $WORKING_DIR/local-repository/*

#download most recent settings.xml from SVN
#wget http://svn.atlassian.com/svn/public/atlassian/maven-plugins/example-settings-file/settings.xml

# Install Java Activation manually, since we can't host it in Archiva
#mvn -s $SETTINGS_FILE install:install-file -Dmaven.repo.local=$LOCAL_REPO -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar -Dfile=$WORKING_DIR/lib/activation.jar

# generate template dir from archetype
#mvn -s $SETTINGS_FILE archetype:generate -Dmaven.repo.local=$LOCAL_REPO -DinteractiveMode=false -DarchetypeGroupId=com.atlassian.maven.archetypes -DarchetypeArtifactId=confluence-plugin-archetype -DarchetypeVersion=14 -DremoteRepositories=https://maven.atlassian.com/repository/public/ -DgroupId=com.atlassian.confluence.plugins -DartifactId=test-confluence-plugin

# cd to newly created directory
#cd $WORKING_DIR/test-confluence-plugin

# creating IDEA files, downloading all dependencies
#mvn -s $SETTINGS_FILE idea:idea -Dmaven.repo.local=$LOCAL_REPO

# package plugin, downloading all dependencies
#mvn -s $SETTINGS_FILE package -Dmaven.repo.local=$LOCAL_REPO<commit_msg>NOJIRA update clean repo CI build script<commit_after>#!/bin/sh

#exit on any command faliure
set -e 
#set -o pipefail

PATH=$M2_HOME/bin:$JAVA_HOME/bin:$PATH
WORKING_DIR=`pwd`
LOCAL_REPO=$WORKING_DIR/local-repository/

echo "PATH:        $PATH"
echo "WORKING_DIR: $WORKING_DIR"
echo "LOCAL_REPO:  $LOCAL_REPO"

if [ -d $LOCAL_REPO ]; then
    # Remove existing local maven repository, if present
    echo "Removing local repository $LOCAL_REPO"
    rm -rf $LOCAL_REPO/*
elif
    # Create local repository directory since it doesn't exist
    echo "Creating local repository $LOCAL_REPO"
    mkdir -p $LOCAL_REPO
fi

# Run Maven install
echo "Running: 'mvn -Dmaven.repo.local=$LOCAL_REPO install'"
mvn -Dmaven.repo.local=$LOCAL_REPO install
{'fraction_non_alphanumeric': 0.10857625686523024, 'fraction_numerical': 0.002957329953527672, 'mean_word_length': 5.331550802139038, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2858347', 'n_tokens_mistral': 852, 'n_tokens_neox': 808, 'n_words': 193}