<commit_before>FROM ubuntu:14.04

MAINTAINER <NAME> <<EMAIL>>

# update and install packages
RUN apt-get -qq update \
        && apt-get upgrade -y
        && apt-get -qq install -y apache2 php5 php5-mysql php5-sqlite php5-curl php5-intl

# setting apache env vars
ENV APACHE_CONFDIR /etc/apache2
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_RUN_DIR /var/run/apache2
ENV APACHE_PID_FILE $APACHE_RUN_DIR/apache2.pid
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_LOG_DIR /var/log/apache2
ENV LANG C
RUN mkdir -p $APACHE_RUN_DIR $APACHE_LOCK_DIR $APACHE_LOG_DIR

# redirect logs to stdout and stderr
RUN find "$APACHE_CONFDIR" -type f -exec sed -ri ' \
        s!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g; \
        s!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g; \
        ' '{}' ';'

# adding site configuration
ADD assets/apache2/sites-available/ /etc/apache2/sites-available/

# apache configuration
RUN a2enmod rewrite \
    && a2dissite 000-default \
    && a2ensite zf2-app

EXPOSE 80
ENTRYPOINT ["/usr/sbin/apache2"]
CMD ["-D", "FOREGROUND"]
<commit_msg>be quiet on upgrading packages<commit_after>FROM ubuntu:14.04

MAINTAINER <NAME> <<EMAIL>>

# update and install packages
RUN apt-get -qq update \
        && apt-get -qq upgrade -y
        && apt-get -qq install -y apache2 php5 php5-mysql php5-sqlite php5-curl php5-intl

# setting apache env vars
ENV APACHE_CONFDIR /etc/apache2
ENV APACHE_ENVVARS $APACHE_CONFDIR/envvars
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_RUN_DIR /var/run/apache2
ENV APACHE_PID_FILE $APACHE_RUN_DIR/apache2.pid
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_LOG_DIR /var/log/apache2
ENV LANG C
RUN mkdir -p $APACHE_RUN_DIR $APACHE_LOCK_DIR $APACHE_LOG_DIR

# redirect logs to stdout and stderr
RUN find "$APACHE_CONFDIR" -type f -exec sed -ri ' \
        s!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g; \
        s!^(\s*ErrorLog)\s+\S+!\1 /proc/self/fd/2!g; \
        ' '{}' ';'

# adding site configuration
ADD assets/apache2/sites-available/ /etc/apache2/sites-available/

# apache configuration
RUN a2enmod rewrite \
    && a2dissite 000-default \
    && a2ensite zf2-app

EXPOSE 80
ENTRYPOINT ["/usr/sbin/apache2"]
CMD ["-D", "FOREGROUND"]

{'fraction_non_alphanumeric': 0.12340799297321037, 'fraction_numerical': 0.027228809837505488, 'mean_word_length': 3.565130260521042, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4344958', 'n_tokens_mistral': 919, 'n_tokens_neox': 898, 'n_words': 211}