<commit_before>FROM ubuntu:14.04

ENV OPENRESTY_VERSION 1.9.7.4
ENV OPENSSL_VERSION 1.0.2g

RUN sudo apt-get update && \
    sudo apt-get -y install \
        curl \
        libreadline-dev \
        libncurses5-dev \
        libpcre3-dev \
        perl \
        make \
        zlib1g-dev \
        build-essential && \
    curl https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | tar -xz && \
    curl https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz | tar -xz && \
    cd openresty-${OPENRESTY_VERSION} && \
    ./configure --with-openssl=/openssl-${OPENSSL_VERSION} && \
    make && \
    sudo make install && \
    cd .. && \
    rm -r openresty-${OPENRESTY_VERSION} && \
    rm -r openssl-${OPENSSL_VERSION} && \
    sudo mkdir -p /srv/nginx/logs

WORKDIR /srv

VOLUME ["/srv/nginx/conf", "/srv/nginx/logs", "/srv/nginx/lua"]

COPY start-nginx.sh start-nginx.sh

EXPOSE 80 443
<commit_msg>Make log files symlinks to stdout/stderr<commit_after>FROM ubuntu:14.04

ENV OPENRESTY_VERSION 1.9.7.4
ENV OPENSSL_VERSION 1.0.2g

RUN sudo apt-get update && \
    sudo apt-get -y install \
        curl \
        libreadline-dev \
        libncurses5-dev \
        libpcre3-dev \
        perl \
        make \
        zlib1g-dev \
        build-essential && \
    curl https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz | tar -xz && \
    curl https://openresty.org/download/openresty-${OPENRESTY_VERSION}.tar.gz | tar -xz && \
    cd openresty-${OPENRESTY_VERSION} && \
    ./configure --with-openssl=/openssl-${OPENSSL_VERSION} && \
    make && \
    sudo make install && \
    cd .. && \
    rm -r openresty-${OPENRESTY_VERSION} && \
    rm -r openssl-${OPENSSL_VERSION} && \
    sudo mkdir -p /srv/nginx/logs && \
    ln -sf /dev/stdout /srv/nginx/logs/access.log && \
    ln -sf /dev/stderr /srv/nginx/logs/error.log

WORKDIR /srv

VOLUME ["/srv/nginx/conf", "/srv/nginx/logs", "/srv/nginx/lua"]

COPY start-nginx.sh start-nginx.sh

EXPOSE 80 443

{'fraction_non_alphanumeric': 0.15480961923847694, 'fraction_numerical': 0.01903807615230461, 'mean_word_length': 2.154818325434439, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '849883', 'n_tokens_mistral': 806, 'n_tokens_neox': 742, 'n_words': 139}