<commit_before>#!/bin/bash
# Build LanguageTool and copied the JARs etc to "libs".
# Requires a local checkout of all LanguageTool sources.

CUR_DIR=$(basename $PWD)
if [ $CUR_DIR != 'ltcommunity' ]
  then
    echo "Error: please start this script from the ltcommunity directory"
    exit
fi

echo "Building and copying latest LanguageTool to libs/"

cd ../languagetool
echo "NOTE: will skip tests on build!"
./build.sh languagetool-standalone clean package -DskipTests

cd -

rm -r lib/META-INF
rm -r lib/org

cp -r ../languagetool/languagetool-standalone/target/LanguageTool-*-SNAPSHOT/LanguageTool-*-SNAPSHOT/org/ lib/
cp -r ../languagetool/languagetool-standalone/target/LanguageTool-*-SNAPSHOT/LanguageTool-*-SNAPSHOT/META-INF lib/
cp ../languagetool/languagetool-standalone/target/LanguageTool-*-SNAPSHOT/LanguageTool-*-SNAPSHOT/libs/* lib/

cd ../languagetool
./build.sh languagetool-wikipedia clean package -DskipTests

cd -

cp ../languagetool/languagetool-wikipedia/target/LanguageTool-wikipedia*-SNAPSHOT/LanguageTool-wikipedia*-SNAPSHOT/languagetool-wikipedia.jar lib/
cp ../languagetool/languagetool-wikipedia/target/LanguageTool-wikipedia*-SNAPSHOT/LanguageTool-wikipedia*-SNAPSHOT/libs/* lib/

echo "Done - all JARs etc. have been copied to libs/"<commit_msg>update deployment script<commit_after>#!/bin/bash
# Build LanguageTool and copied the JARs etc to "libs".
# Requires a local checkout of all LanguageTool sources.

CUR_DIR=$(basename $PWD)
if [ $CUR_DIR != 'languagetool-community-website' ]
  then
    echo "Error: please start this script from the 'languagetool-community-website' directory"
    exit
fi

echo "Building and copying latest LanguageTool to libs/"

cd ../languagetool
echo "NOTE: will skip tests on build!"
./build.sh languagetool-standalone clean package -DskipTests

cd -

rm -r lib/META-INF
rm -r lib/org

cp -r ../languagetool/languagetool-standalone/target/LanguageTool-*-SNAPSHOT/LanguageTool-*-SNAPSHOT/org/ lib/
cp -r ../languagetool/languagetool-standalone/target/LanguageTool-*-SNAPSHOT/LanguageTool-*-SNAPSHOT/META-INF lib/
cp ../languagetool/languagetool-standalone/target/LanguageTool-*-SNAPSHOT/LanguageTool-*-SNAPSHOT/libs/* lib/

cd ../languagetool
./build.sh languagetool-wikipedia clean package -DskipTests

cd -

cp ../languagetool/languagetool-wikipedia/target/LanguageTool-wikipedia*-SNAPSHOT/LanguageTool-wikipedia*-SNAPSHOT/languagetool-wikipedia.jar lib/
cp ../languagetool/languagetool-wikipedia/target/LanguageTool-wikipedia*-SNAPSHOT/LanguageTool-wikipedia*-SNAPSHOT/libs/* lib/

echo "Done - all JARs etc. have been copied to lib/"
{'fraction_non_alphanumeric': 0.12009237875288684, 'fraction_numerical': 0.0, 'mean_word_length': 4.4258872651356995, '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': '2322597', 'n_tokens_mistral': 947, 'n_tokens_neox': 923, 'n_words': 201}