<commit_before>FROM ubuntu:xenial
ARG CACHE_DATE=201702082234
ARG DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8

RUN locale-gen en_US.UTF-8
RUN export LANG=en_US.UTF-8
RUN apt-get update
RUN apt-get -yq install python-software-properties software-properties-common
RUN add-apt-repository -y ppa:ondrej/php
RUN apt-get update

RUN apt-get install -yq vim zip curl apache2 mysql-client
RUN apt-get install -yq php5.6 php5.6-cli=5.6.30-1+deb.sury.org~xenial+1 php5.6-dev php5.6-mysql php5.6-mcrypt php5.6-gd libapache2-mod-php5.6
RUN apt-get install -yq php5.6 php5.6-curl php5.6-mbstring php5.6-xml php5.6-xmlrpc
RUN apt-get install -yq php-ssh2


RUN a2enmod rewrite expires setenvif deflate headers filter include
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN sed -i "s/<\/VirtualHost>/\n\t<Directory \/var\/www\/html>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n<\/VirtualHost>/g" /etc/apache2/sites-enabled/000-default.conf

RUN cat /etc/apache2/sites-enabled/000-default.conf

ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOCK_DIR=/var/lock/apache2
ENV APACHE_RUN_DIR=/var/run/apache2
ENV APACHE_PID_FILE=/var/run/apache2.pid
RUN usermod -u 1000 www-data

EXPOSE 80

RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html
WORKDIR /app
COPY . /app

COPY run.bash /run.bash
RUN chmod 755 /*.bash

CMD ["/run.bash"]<commit_msg>Changed cache date and added enviroment variable to control which enviroment the apllication is<commit_after>FROM ubuntu:xenial
ARG CACHE_DATE=20170403
ARG DEBIAN_FRONTEND=noninteractive
ENV LANG=en_US.UTF-8

RUN locale-gen en_US.UTF-8
RUN export LANG=en_US.UTF-8
RUN apt-get update
RUN apt-get -yq install python-software-properties software-properties-common
RUN add-apt-repository -y ppa:ondrej/php
RUN apt-get update

RUN apt-get install -yq vim zip curl apache2 mysql-client
RUN apt-get install -yq php5.6 php5.6-cli=5.6.30-1+deb.sury.org~xenial+1 php5.6-dev php5.6-mysql php5.6-mcrypt php5.6-gd libapache2-mod-php5.6
RUN apt-get install -yq php5.6 php5.6-curl php5.6-mbstring php5.6-xml php5.6-xmlrpc
RUN apt-get install -yq php-ssh2


RUN a2enmod rewrite expires setenvif deflate headers filter include
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN sed -i "s/<\/VirtualHost>/\n\t<Directory \/var\/www\/html>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n<\/VirtualHost>/g" /etc/apache2/sites-enabled/000-default.conf

RUN cat /etc/apache2/sites-enabled/000-default.conf

ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOCK_DIR=/var/lock/apache2
ENV APACHE_RUN_DIR=/var/run/apache2
ENV APACHE_PID_FILE=/var/run/apache2.pid
# Uncomment line below to use enviroment variable in your application (feel free to change the value too)
# ENV APPLICATION_ENV=docker

RUN usermod -u 1000 www-data

EXPOSE 80

RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html
WORKDIR /app
COPY . /app

COPY run.bash /run.bash
RUN chmod 755 /*.bash

CMD ["/run.bash"]
{'fraction_non_alphanumeric': 0.11706221937139191, 'fraction_numerical': 0.04425914047466325, 'mean_word_length': 4.079804560260587, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 12, 'xml': 4}, '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': '2386927', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1205, 'n_words': 301}