<commit_before>FROM debian

	#Install deps
RUN apt-get update && apt-get install -y fakeroot locales
RUN apt-get install -y openjdk-7-jdk tomcat7 libmysql-java wget unzip nano cron rsync
RUN apt-get install -y supervisor

#run_server.sh has DOS line endings that make it unusuable
RUN apt-get install dos2unix

ENV LC_ALL C.UTF-8
ENV U root
ENV P <PASSWORD>

RUN echo "mysql-server mysql-server/root_password password $P" | debconf-set-selections
RUN echo "mysql-server mysql-server/root_password_again password $P" | debconf-set-selections
RUN apt-get install -y mysql-server

#Java needs access to host's /dev/fuse in a postinit script.
#Must use fakeroot if we don't want to give container access to hosts /dev/
RUN fakeroot apt-get install -y openjdk-7-jdk

	#Download+extract vobench
RUN wget https://bitbucket.org/art-uniroma2/vocbench/downloads/VOCBENCH_2.0.1-SNAPSHOT_2013-11-27.zip
RUN mkdir /vobench && unzip /VOCBENCH_2.0.1-SNAPSHOT_2013-11-27.zip -d /vobench/
RUN unzip /vobench/st-server.zip -d /vobench/
RUN dos2unix /vobench/st-server/server_run.sh
RUN ln -s /vobench/vocbench-2.0.1.war /var/lib/tomcat7/webapps/

	#Setup mysql admin
RUN service mysql start && mysql -u $U -p$P < /vobench/administrator20.sql

	#Setup backup; look into better way of serving datadir from host that has already been set up in the container
#RUN (crontab -u root -l; echo "*/2 * * * * rsync -a /var/lib/mysql/ /data/") | crontab -u root -
ADD checkdata.sh /checkdata.sh

ENV U none
ENV P none

EXPOSE 8080

#Supervisord will take care of keeping services up
ADD supervisord.conf /etc/supervisor/supervisord.conf
ADD my.cnf /etc/mysql/my.cnf
CMD ["/usr/bin/supervisord"]<commit_msg>Deploy vocbench in tomcat as subdirectory via # naming<commit_after>FROM debian

	#Install deps
RUN apt-get update && apt-get install -y fakeroot locales
RUN apt-get install -y openjdk-7-jdk tomcat7 libmysql-java wget unzip nano cron rsync
RUN apt-get install -y supervisor

#run_server.sh has DOS line endings that make it unusuable
RUN apt-get install dos2unix

ENV LC_ALL C.UTF-8
ENV U root
ENV P <PASSWORD>

RUN echo "mysql-server mysql-server/root_password password $P" | debconf-set-selections
RUN echo "mysql-server mysql-server/root_password_again password $P" | debconf-set-selections
RUN apt-get install -y mysql-server

#Java needs access to host's /dev/fuse in a postinit script.
#Must use fakeroot if we don't want to give container access to hosts /dev/
RUN fakeroot apt-get install -y openjdk-7-jdk

	#Download+extract vobench
RUN wget https://bitbucket.org/art-uniroma2/vocbench/downloads/VOCBENCH_2.0.1-SNAPSHOT_2013-11-27.zip
RUN mkdir /vobench && unzip /VOCBENCH_2.0.1-SNAPSHOT_2013-11-27.zip -d /vobench/
RUN unzip /vobench/st-server.zip -d /vobench/
RUN dos2unix /vobench/st-server/server_run.sh
RUN cp /vobench/vocbench-2.0.1.war /var/lib/tomcat7/webapps/vocbench#vocbench-2.0.1.war

	#Setup mysql admin
RUN service mysql start && mysql -u $U -p$P < /vobench/administrator20.sql

	#Setup backup; look into better way of serving datadir from host that has already been set up in the container
#RUN (crontab -u root -l; echo "*/2 * * * * rsync -a /var/lib/mysql/ /data/") | crontab -u root -
ADD checkdata.sh /checkdata.sh

ENV U none
ENV P none

EXPOSE 8080

#Supervisord will take care of keeping services up
ADD supervisord.conf /etc/supervisor/supervisord.conf
ADD my.cnf /etc/mysql/my.cnf
CMD ["/usr/bin/supervisord"]
{'fraction_non_alphanumeric': 0.10032173150043873, 'fraction_numerical': 0.02427610412401287, 'mean_word_length': 3.920863309352518, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5030766', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1247, 'n_words': 401}