<commit_before>#!/bin/bash

echo "Publish $TRAVIS_BRANCH !"

java -version

echo "====================================="
echo "download DITA-OT"
echo "====================================="
wget https://github.com/dita-ot/dita-ot/releases/download/2.3.3/dita-ot-2.3.3.zip

echo "====================================="
echo "extract DITA-OT"
echo "====================================="
unzip dita-ot-2.3.3.zip

echo "====================================="
echo "download DITA-OT LW-DITA plugin"
echo "====================================="

wget https://github.com/oasis-open/dita-lightweight/archive/master.zip

echo "====================================="
echo "extract DITA-OT LW-DITA to DITA-OT"
echo "====================================="

unzip master.zip -d dita-ot-2.3.3
mv dita-ot-2.3.3/dita-lightweight-master/org.oasis.lwdita dita-ot-2.3.3/plugins/

echo "====================================="
echo "download WebHelp plugin"
echo "====================================="

wget https://www.oxygenxml.com/InstData/Editor/Webhelp/DITA-OT%202.x/oxygen-webhelp.zip

echo "====================================="
echo "extract WebHelp to DITA-OT"
echo "====================================="
unzip oxygen-webhelp.zip 
cp -R com.oxygenxml.* dita-ot-2.3.3/plugins/

echo "Registration_Name=georgebina76 @ gmail.com\n" > licensekey.txt
echo "Company=-\n" >> licensekey.txt
echo "Category=Enterprise\n" >> licensekey.txt
echo "Component=Scripting\n" >> licensekey.txt
echo "Version=18\n" >> licensekey.txt
echo "Number_of_Licenses=1\n" >> licensekey.txt
echo "Date=02-09-2017\n" >> licensekey.txt
echo "Trial=31\n" >> licensekey.txt
echo "SG<KEY>" >> licensekey.txt

cp licensekey.txt dita-ot-2.3.3/plugins/com.oxygenxml.webhelp/licensekey.txt


echo "====================================="
echo "Add Edit Link to DITA-OT"
echo "====================================="

# Add the editlink plugin
git clone https://github.com/georgebina/ditaot-editlink-plugin dita-ot-2.3.3/plugins/com.oxygenxml.editlink/

echo "====================================="
echo "download Markdown plugin"
echo "====================================="

wget https://github.com/jelovirt/dita-ot-markdown/releases/download/1.1.0/com.elovirta.dita.markdown_1.1.0.zip

echo "====================================="
echo "extract MarkDown plugin"
echo "====================================="
unzip com.elovirta.dita.markdown_1.1.0.zip -d dita-ot-2.3.3/plugins/com.elovirta.dita.markdown

echo "====================================="<commit_msg>Revert "Update publish.sh"<commit_after>#!/bin/bash

echo "Publish $TRAVIS_BRANCH !"

java -version

echo "====================================="
echo "download DITA-OT"
echo "====================================="
wget https://github.com/dita-ot/dita-ot/releases/download/2.3.3/dita-ot-2.3.3.zip

echo "====================================="
echo "extract DITA-OT"
echo "====================================="
unzip dita-ot-2.3.3.zip

echo "====================================="
echo "download DITA-OT LW-DITA plugin"
echo "====================================="

wget https://github.com/oasis-open/dita-lightweight/archive/master.zip

echo "====================================="
echo "extract DITA-OT LW-DITA to DITA-OT"
echo "====================================="

unzip master.zip -d dita-ot-2.3.3
mv dita-ot-2.3.3/dita-lightweight-master/org.oasis.lwdita dita-ot-2.3.3/plugins/

echo "====================================="
echo "download WebHelp plugin"
echo "====================================="

wget https://www.oxygenxml.com/InstData/Editor/Webhelp/DITA-OT%202.x/oxygen-webhelp.zip

echo "====================================="
echo "extract WebHelp to DITA-OT"
echo "====================================="
unzip oxygen-webhelp.zip 
cp -R com.oxygenxml.* dita-ot-2.3.3/plugins/

echo $WEBHELP_LICENSE | tr " " "\n" | head -3 | tr "\n" " " > licensekey.txt
echo "" >> licensekey.txt
echo $WEBHELP_LICENSE | tr " " "\n" | tail -8  >> licensekey.txt

echo "****\n"
echo $WEBHELP_LICENSE
echo "\n****\n"
cat licensekey.txt
echo "\n****"

cp licensekey.txt dita-ot-2.3.3/plugins/com.oxygenxml.webhelp/licensekey.txt


echo "====================================="
echo "Add Edit Link to DITA-OT"
echo "====================================="

# Add the editlink plugin
git clone https://github.com/georgebina/ditaot-editlink-plugin dita-ot-2.3.3/plugins/com.oxygenxml.editlink/

echo "====================================="
echo "download Markdown plugin"
echo "====================================="

wget https://github.com/jelovirt/dita-ot-markdown/releases/download/1.1.0/com.elovirta.dita.markdown_1.1.0.zip

echo "====================================="
echo "extract MarkDown plugin"
echo "====================================="
unzip com.elovirta.dita.markdown_1.1.0.zip -d dita-ot-2.3.3/plugins/com.elovirta.dita.markdown

echo "====================================="
{'fraction_non_alphanumeric': 0.40555442107412704, 'fraction_numerical': 0.02062487237083929, 'mean_word_length': 5.85034965034965, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 26, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1022992', 'n_tokens_mistral': 1663, 'n_tokens_neox': 1545, 'n_words': 264}