<commit_before>#!/bin/bash

RETCODE=$(fw_exists resin-4.0.36/conf/resin.xml)
[ ! "$RETCODE" == 0 ] || { return 0; }

fw_depends java
sudo cp -r /usr/lib/jvm/java-1.7.0-openjdk-amd64/include /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/bin/

fw_get http://www.caucho.com/download/resin-4.0.36.tar.gz
fw_untar resin-4.0.36.tar.gz
cd resin-4.0.36
./configure --prefix=`pwd`
make
make install

mv conf/resin.properties conf/resin.properties.orig
cat ../../config/resin.properties > conf/resin.properties

mv conf/resin.xml conf/resin.xml.orig
cat ../../config/resin.xml > conf/resin.xml<commit_msg>Fix bug in resin installation script<commit_after>#!/bin/bash

RETCODE=$(fw_exists resin-4.0.36/conf/resin.xml)
[ ! "$RETCODE" == 0 ] || { return 0; }

fw_depends java
sudo cp -r /usr/lib/jvm/java-1.7.0-openjdk-amd64/include /usr/lib/jvm/java-1.7.0-openjdk-amd64/jre/bin/

fw_get http://www.caucho.com/download/resin-4.0.36.tar.gz
fw_untar resin-4.0.36.tar.gz
cd resin-4.0.36
./configure --prefix=`pwd`
make
make install

mv conf/resin.properties conf/resin.properties.orig
cat $FWROOT/config/resin.properties > conf/resin.properties

mv conf/resin.xml conf/resin.xml.orig
cat $FWROOT/config/resin.xml > conf/resin.xml
{'fraction_non_alphanumeric': 0.17866004962779156, 'fraction_numerical': 0.04631927212572374, 'mean_word_length': 3.5833333333333335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4319087', 'n_tokens_mistral': 545, 'n_tokens_neox': 515, 'n_words': 78}