<commit_before>#!/bin/sh

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
ROOT="$SCRIPTPATH"/..
cd "$ROOT"

# install pre-requisites for packaging
apt-get install -y make
apt-get install -y python-setuptools
easy_install -U Sphinx
apt-get install -y zip

# build the docs
cd "$ROOT"/doc
make clean html |tee /tmp/releasedoc.log

# install the third-party libs (later removed from distribution)
cd "$ROOT"/thirdPartyLibs
./installLibraries.sh

# build
cd "$ROOT"
mvn clean
mvn package assembly:assembly -Preleasesrc |tee /tmp/releasesrc.log |grep -E 'WARNING|ERROR'
mvn package assembly:assembly -Preleasebin |tee /tmp/releasebin.log |grep -E 'WARNING|ERROR'

# zip
cd "$ROOT"/target/experimedia-arch-ecc-2.2-bin/bin
zip -d EccService-2.2.war WEB-INF/lib/owlim-lite-5.4.jar
cd "$ROOT"/target
zip -r experimedia-arch-ecc-2.2-bin.zip experimedia-arch-ecc-2.2-bin

echo
echo "Check /tmp/release*.log for further information."
echo "To update the committed license file data, execute the following command and then commit:"
echo "cp -a target/experimedia-arch-ecc-2.2-src/licenses ."<commit_msg>Removes spurious test jar from binary distribution (this is for #102)<commit_after>#!/bin/sh

SCRIPT=$(readlink -f "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
ROOT="$SCRIPTPATH"/..
cd "$ROOT"

# install pre-requisites for packaging
apt-get install -y make
apt-get install -y python-setuptools
easy_install -U Sphinx
apt-get install -y zip

# build the docs
cd "$ROOT"/doc
make clean html |tee /tmp/releasedoc.log

# install the third-party libs (later removed from distribution)
cd "$ROOT"/thirdPartyLibs
./installLibraries.sh

# build
cd "$ROOT"
mvn clean
mvn package assembly:assembly -Preleasesrc |tee /tmp/releasesrc.log |grep -E 'WARNING|ERROR'
mvn package assembly:assembly -Preleasebin |tee /tmp/releasebin.log |grep -E 'WARNING|ERROR'

# zip
cd "$ROOT"/target/experimedia-arch-ecc-2.2-bin/bin
zip -d EccService-2.2.war WEB-INF/lib/owlim-lite-5.4.jar
rm experimedia-arch-ecc-edm-test-2.2.jar  # this jar should not contain anything other than test code, but it does so we delete it here
cd "$ROOT"/target
zip -r experimedia-arch-ecc-2.2-bin.zip experimedia-arch-ecc-2.2-bin

echo
echo "Check /tmp/release*.log for further information."
echo "To update the committed license file data, execute the following command and then commit:"
echo "cp -a target/experimedia-arch-ecc-2.2-src/licenses ."
{'fraction_non_alphanumeric': 0.12949039264828738, 'fraction_numerical': 0.012949039264828738, 'mean_word_length': 4.3941441441441444, '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': '3782420', 'n_tokens_mistral': 859, 'n_tokens_neox': 822, 'n_words': 252}