<commit_before>#!/usr/bin/env bash

cd "$(dirname "$0")"
cd ..
git pull
if [ -d "leap" ]; then
  cd leap
  git pull
  cd ..
  else
  git clone https://github.com/popkit/leap.git
fi

# compile first
mvn compile

# package war
mvn package -Dmaven.test.skip=ture

# remove old file
rm -rf ${CATALINA_HOME}/webapps/mapi-drai-web

# use new war files
cp -r mapi-drai-web/target/mapi-drai-web ${CATALINA_HOME}/webapps/

# stop tomcat and start it
${CATALINA_HOME}/bin/catalina.sh stop
#kill -9 `ps -ef |grep tomcat|grep -v grep|awk '{print $2}'`
${CATALINA_HOME}/bin/catalina.sh start

<commit_msg>update deploy<commit_after>#!/usr/bin/env bash

cd "$(dirname "$0")"
cd ..
git pull
if [ -d "leap" ]; then
  cd leap
  git pull
  cd ..
  else
  git clone https://github.com/popkit/leap.git
fi

# compile first
mvn compile

# package war
mvn package -Dmaven.test.skip=ture

# remove old file
rm -rf ${CATALINA_HOME}/webapps/pelpa

# use new war files
cp -r pelpa-web/target/pelpa ${CATALINA_HOME}/webapps/

# stop tomcat and start it
${CATALINA_HOME}/bin/catalina.sh stop
#kill -9 `ps -ef |grep tomcat|grep -v grep|awk '{print $2}'`
${CATALINA_HOME}/bin/catalina.sh start


{'fraction_non_alphanumeric': 0.14690721649484537, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 3.5330739299610894, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5659650', 'n_tokens_mistral': 495, 'n_tokens_neox': 459, 'n_words': 129}