<commit_before>FROM debian

RUN EXTENSIONS="php5-curl php5-mcrypt php5-intl php5-pgsql" \
    && export DEBIAN_FRONTEND=noninteractive \
    && echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/02apt-speedup \
    && apt-get update \
    && apt-get install --yes --no-install-recommends php5-cli php5-fpm php-apc procps \
    && apt-get install --yes --no-install-recommends $EXTENSIONS \
    && rm -rf /var/lib/apt/lists/* \
    # == php-fpm pool settings
    && INI="/etc/php5/fpm/pool.d/www.conf" \
    && echo 'listen = 9000' >> $INI \
    && echo 'php_admin_value[error_log] = /dev/stderr' >> $INI \
    && echo 'php_flag[display_errors] = off' >> $INI \
    && echo 'php_flag[log_errors] = on' >> $INI \
    && echo 'php_value[default_charset] = utf-8' >> $INI \
    && echo 'request_slowlog_timeout = 60s' >> $INI \
    && echo 'slowlog = /dev/stdout' >> $INI \
    # == php-fpm settings
    && INI="/etc/php5/fpm/php-fpm.conf" \
    && sed -i -e "s/;daemonize = .*/daemonize = Off/" $INI \
    && sed -i -e "s/error_log = .*/error_log = \/dev\/stderr/" $INI \
    # == settings for both php and php-fpm
    && INI="/etc/php5/conf.d/00-defaults.ini" \
    && echo "cgi.fix_pathinfo = 0" >> $INI \
    && echo "date.timezone = UTC" >> $INI \
    && echo "error_log = /dev/stderr" >> $INI \
    && echo "expose_php = Off" >> $INI

RUN OPTS="--install-dir=/usr/bin/ --filename=composer" \
    && php -r "readfile('https://getcomposer.org/installer');" | php -- $OPTS

ADD run-php5.bash /usr/local/bin/run-php5
ENTRYPOINT ["run-php5"]
CMD ["serve"]

VOLUME /var/www
WORKDIR /var/www

ONBUILD ADD . /var/www
ONBUILD RUN [ -f composer.json ] && composer install || true<commit_msg>use full path to run-php5 command<commit_after>FROM debian

RUN EXTENSIONS="php5-curl php5-mcrypt php5-intl php5-pgsql" \
    && export DEBIAN_FRONTEND=noninteractive \
    && echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/02apt-speedup \
    && apt-get update \
    && apt-get install --yes --no-install-recommends php5-cli php5-fpm php-apc procps \
    && apt-get install --yes --no-install-recommends $EXTENSIONS \
    && rm -rf /var/lib/apt/lists/* \
    # == php-fpm pool settings
    && INI="/etc/php5/fpm/pool.d/www.conf" \
    && echo 'listen = 9000' >> $INI \
    && echo 'php_admin_value[error_log] = /dev/stderr' >> $INI \
    && echo 'php_flag[display_errors] = off' >> $INI \
    && echo 'php_flag[log_errors] = on' >> $INI \
    && echo 'php_value[default_charset] = utf-8' >> $INI \
    && echo 'request_slowlog_timeout = 60s' >> $INI \
    && echo 'slowlog = /dev/stdout' >> $INI \
    # == php-fpm settings
    && INI="/etc/php5/fpm/php-fpm.conf" \
    && sed -i -e "s/;daemonize = .*/daemonize = Off/" $INI \
    && sed -i -e "s/error_log = .*/error_log = \/dev\/stderr/" $INI \
    # == settings for both php and php-fpm
    && INI="/etc/php5/conf.d/00-defaults.ini" \
    && echo "cgi.fix_pathinfo = 0" >> $INI \
    && echo "date.timezone = UTC" >> $INI \
    && echo "error_log = /dev/stderr" >> $INI \
    && echo "expose_php = Off" >> $INI

RUN OPTS="--install-dir=/usr/bin/ --filename=composer" \
    && php -r "readfile('https://getcomposer.org/installer');" | php -- $OPTS

ADD run-php5.bash /usr/local/bin/run-php5
ENTRYPOINT ["/run-php5"]
CMD ["serve"]

VOLUME /var/www
WORKDIR /var/www

ONBUILD ADD . /var/www
ONBUILD RUN [ -f composer.json ] && composer install || true
{'fraction_non_alphanumeric': 0.19721646431744153, 'fraction_numerical': 0.01450992004737933, 'mean_word_length': 2.601279317697228, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 49, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '1237403', 'n_tokens_mistral': 1404, 'n_tokens_neox': 1339, 'n_words': 266}