<commit_before>#!/bin/bash
#
set -euo pipefail

VERSION="1.7.3-SNAPSHOT";
BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_DIR="$( readlink -e $BIN_DIR/../../)";

echo BIN_DIR: $BIN_DIR
echo REPO_DIR: $REPO_DIR

function install_file() {
    GROUP="$1"
    ARTIFACT="$2"
    VERSION="$3"
    FILE="$4"
    echo Installing $GROUP $ARTIFACT
    mvn install:install-file            \
        -DgroupId="$GROUP"              \
        -DartifactId="$ARTIFACT"        \
        -Dversion="$VERSION"            \
        -Dpackaging=jar                 \
        -Dfile="$FILE"
    echo Success for mvn: $!
}

for f in `ls "$REPO_DIR" | grep "dspace-"`;
do
    for g in `find "$f" -name "*${VERSION}.jar" | grep -v lib`;
    do
        ARTIFACT=`basename $g | sed "s/-${VERSION}.jar//"`;
        install_file "org.dspace" "$ARTIFACT" "$VERSION" "$g";
    done;
done;

for f in `find "$REPO_DIR/dspace/modules" -name "*${VERSION}.jar" | grep -v lib`;
do
    ARTIFACT=`basename $f | sed "s/-${VERSION}.jar//"`;
    install_file "org.dspace.modules" "$ARTIFACT" "$VERSION" "$f";
done;

<commit_msg>fix bash bug in install script for travis poms<commit_after>#!/bin/bash
#
set -euo pipefail

VERSION="1.7.3-SNAPSHOT";
BIN_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_DIR="$( readlink -e $BIN_DIR/../../)";

echo BIN_DIR: $BIN_DIR
echo REPO_DIR: $REPO_DIR

function install_file() {
    GROUP="$1"
    ARTIFACT="$2"
    VERSION="$3"
    FILE="$4"
    echo Installing $GROUP $ARTIFACT
    mvn install:install-file            \
        -DgroupId="$GROUP"              \
        -DartifactId="$ARTIFACT"        \
        -Dversion="$VERSION"            \
        -Dpackaging=jar                 \
        -Dfile="$FILE"
    echo Success for mvn: $?
}

for f in `ls "$REPO_DIR" | grep "dspace-"`;
do
    for g in `find "$f" -name "*${VERSION}.jar" | grep -v lib`;
    do
        ARTIFACT=`basename $g | sed "s/-${VERSION}.jar//"`;
        install_file "org.dspace" "$ARTIFACT" "$VERSION" "$g";
    done;
done;

for f in `find "$REPO_DIR/dspace/modules" -name "*${VERSION}.jar" | grep -v lib`;
do
    ARTIFACT=`basename $f | sed "s/-${VERSION}.jar//"`;
    install_file "org.dspace.modules" "$ARTIFACT" "$VERSION" "$f";
done;


{'fraction_non_alphanumeric': 0.19259919750334373, 'fraction_numerical': 0.007133303611234953, 'mean_word_length': 2.4051593323216998, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '2122769', 'n_tokens_mistral': 886, 'n_tokens_neox': 827, 'n_words': 192}