<commit_before>#!/bin/bash
# vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:

BASE_PATH="`pwd`/`dirname $0`"
LIBS_PATH="${BASE_PATH}/../../libs/"
PUB_PATH="${BASE_PATH}/../../public_html/"
MODS_PATH="${PUB_PATH}/modpub/"
WEBAPP_PATH="${BASE_PATH}/../../webapp/"

# Check for required commands
for CMD in wget tar unzip; do
   type $CMD &> /dev/null

   if [ $? != "0" ]; then
      echo "The command '$CMD' is required and is not in your path!"
      exit 1
   fi

done

# Checkout kohana

if [ -d $LIBS_PATH/kohana ]; then
    svn update ${LIBS_PATH}/kohana
else
    mkdir -p ${LIBS_PATH}/kohana
    svn co http://source.kohanaphp.com/tags/2.2.1/system ${LIBS_PATH}/kohana
fi

# Checkout kohana's payment module
if [ -d $LIBS_PATH/kohana_payment ]; then
    svn update ${LIBS_PATH}/kohana_payment
else
    mkdir -p ${LIBS_PATH}/kohana_payment
    svn co http://source.kohanaphp.com/tags/2.2.1/modules/payment ${LIBS_PATH}/kohana_payment
fi

# Download smarty

if [ -d $LIBS_PATH/smarty ]; then
    rm -rf "${LIBS_PATH}/smarty"
fi

wget -c -P /tmp http://www.smarty.net/do_download.php?download_file=Smarty-2.6.19.tar.gz
tar xvfz /tmp/Smarty-2.6.19.tar.gz
mv ./Smarty-2.6.19/libs ${LIBS_PATH}/smarty

# Download pear
if [ -d $LIBS_PATH/pear ]; then
    rm -rf "${LIBS_PATH}/pear"
fi

wget -c -P /tmp http://pub.vardump.org/pear-1.6.2.tar.bz2
tar xvfj /tmp/pear-1.6.2.tar.bz2
mv ./pear $LIBS_PATH

# Download TinyMce<commit_msg>when deleting the tinymce do not remove the tinymce.css file<commit_after>#!/bin/bash
# vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker:

BASE_PATH="`pwd`/`dirname $0`"
LIBS_PATH="${BASE_PATH}/../../libs/"
PUB_PATH="${BASE_PATH}/../../public_html/"
MODS_PATH="${PUB_PATH}/modpub/"
WEBAPP_PATH="${BASE_PATH}/../../webapp/"

# Check for required commands
for CMD in wget tar unzip; do
   type $CMD &> /dev/null

   if [ $? != "0" ]; then
      echo "The command '$CMD' is required and is not in your path!"
      exit 1
   fi

done

# Checkout kohana

if [ -d $LIBS_PATH/kohana ]; then
    svn update ${LIBS_PATH}/kohana
else
    mkdir -p ${LIBS_PATH}/kohana
    svn co http://source.kohanaphp.com/tags/2.2.1/system ${LIBS_PATH}/kohana
fi

# Checkout kohana's payment module
if [ -d $LIBS_PATH/kohana_payment ]; then
    svn update ${LIBS_PATH}/kohana_payment
else
    mkdir -p ${LIBS_PATH}/kohana_payment
    svn co http://source.kohanaphp.com/tags/2.2.1/modules/payment ${LIBS_PATH}/kohana_payment
fi

# Download smarty

if [ -d $LIBS_PATH/smarty ]; then
    rm -rf "${LIBS_PATH}/smarty"
fi

wget -c -P /tmp http://www.smarty.net/do_download.php?download_file=Smarty-2.6.19.tar.gz
tar xvfz /tmp/Smarty-2.6.19.tar.gz
mv ./Smarty-2.6.19/libs ${LIBS_PATH}/smarty

# Download pear
if [ -d $LIBS_PATH/pear ]; then
    rm -rf "${LIBS_PATH}/pear"
fi

wget -c -P /tmp http://pub.vardump.org/pear-1.6.2.tar.bz2
tar xvfj /tmp/pear-1.6.2.tar.bz2
mv ./pear $LIBS_PATH

# Download TinyMce
find $MODS_PATH/tinymce | grep -r tinymce.css | xargs rm -rf #Delete tinymce, but not the css file
{'fraction_non_alphanumeric': 0.16391275611368142, 'fraction_numerical': 0.020489094514210177, 'mean_word_length': 3.336676217765043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '219650', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1246, 'n_words': 279}