<commit_before>#!/usr/bin/env bash
set -e

# Setup ModelWrapper
unzip ../../ABRAID-MP_ModelWrapper.war -d /var/lib/tomcat7/webapps/ROOT
# Configure
sed -i "s/auth\.username\=username/auth.username=$MODELWRAPPER_USER/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -i "s/auth\.password\_hash\=.*/auth.password_hash=$MODELWRAPPER_HASH/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -i "s/model\.output\.handler\.host\=.*/model.output.handler.host=$MAIN_URL/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -i "s/model\.output\.handler\.path\=.*/model.output.handler.path=\/modeloutputhandler/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -ir "s/(\#\ )?model\.dry\.run\=true/model.dry.run=$MW_DRY_RUN/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -ir "s/(\#\ )?model\.verbose\=true/model.verbose=true/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
# Configure log4j
sed -i "s/^log4j\.rootLogger\=.*$/log4j.rootLogger=ERROR, stdout, logfile, email/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/classes/log4j.properties<commit_msg>no message<commit_after>#!/usr/bin/env bash
set -e

# Setup ModelWrapper
unzip ../../ABRAID-MP_ModelWrapper.war -d /var/lib/tomcat7/webapps/ROOT
# Configure
sed -i "s/auth\.username\=username/auth.username=$MODELWRAPPER_USER/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -i "s/auth\.password\_hash\=.*/auth.password_hash=$MODELWRAPPER_HASH/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -i "s/model\.output\.handler\.host\=.*/model.output.handler.host=$MAIN_URL/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -i "s/model\.output\.handler\.path\=.*/model.output.handler.path=\/modeloutput/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -ir "s/(\#\ )?model\.dry\.run\=true/model.dry.run=$MW_DRY_RUN/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
sed -ir "s/(\#\ )?model\.verbose\=true/model.verbose=true/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/modelwrapper.properties
# Configure log4j
sed -i "s/^log4j\.rootLogger\=.*$/log4j.rootLogger=ERROR, stdout, logfile, email/g" /var/lib/tomcat7/webapps/ROOT/WEB-INF/classes/log4j.properties
{'fraction_non_alphanumeric': 0.19335083114610674, 'fraction_numerical': 0.010498687664041995, 'mean_word_length': 4.343457943925234, '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': '7214385', 'n_tokens_mistral': 965, 'n_tokens_neox': 912, 'n_words': 92}