<commit_before>FROM greenbox:for_apps

ARG DOCKER_PROXY=172.17.0.4

RUN echo "docker proxy: $DOCKER_PROXY" \
 && echo "Acquire::HTTP::Proxy \"http://$DOCKER_PROXY:3142\";" > /etc/apt/apt.conf.d/01proxy \
 && echo 'Acquire::HTTPS::Proxy "false";' >> /etc/apt/apt.conf.d/01proxy

RUN echo "deb-src http://deb.debian.org/debian jessie main" >> /etc/apt/sources.list
RUN apt-get update -y


# ================= /opt/apps/green =========================================================


RUN apt-get build-dep libpam-google-authenticator -y
ENV CPPFLAGS="-I/opt/apps/developer/include" CFLAGS="-I/opt/apps/developer/include" LDFLAGS="-L/opt/apps/developer/lib"


RUN curl -L https://sourceforge.net/projects/pamtester/files/latest/download?source=typ_redirect > pamtester.tar.gz &&\
    ls -lh pamtester.tar.gz &&\
    tar xf pamtester.tar.gz && cd pamtester* &&\
    ./configure CFLAGS="-I/opt/apps/developer/include" LDFLAGS="-L/opt/apps/developer/lib" --prefix=/opt/apps/developer &&\
    make &&\
    make install

ENV GCC_VER=7.1.0
ENV MAKE_VER=4.2.1

RUN apt-get build-dep make -y
RUN curl -s -LO http://ftp.gnu.org/gnu/make/make-${MAKE_VER}.tar.gz &&\
    tar xf make-${MAKE_VER}.tar.gz && cd make-${MAKE_VER} &&\
    ./configure CFLAGS=" -I/opt/apps/developer/include" LDFLAGS="-L/opt/apps/developer/lib" --prefix=/opt/apps/developer &&\
    make &&\
    make install


RUN curl -s -LO http://ftp.gnu.org/gnu/gcc/gcc-${GCC_VER}/gcc-${GCC_VER}.tar.bz2 &&\
    tar xf gcc-${GCC_VER}.tar.bz2 && cd gcc-${GCC_VER} &&\
    ./configure \
       --disable-multilib \
       --enable-languages=c,c++,go,objc,obj-c++ \
       CFLAGS=" -I/opt/apps/developer/include" LDFLAGS="-L/opt/apps/developer/lib" --prefix=/opt/apps/developer &&\
    make &&\
    make install

<commit_msg>gcc build-dep<commit_after>FROM greenbox:for_apps

ARG DOCKER_PROXY=172.17.0.4

RUN echo "docker proxy: $DOCKER_PROXY" \
 && echo "Acquire::HTTP::Proxy \"http://$DOCKER_PROXY:3142\";" > /etc/apt/apt.conf.d/01proxy \
 && echo 'Acquire::HTTPS::Proxy "false";' >> /etc/apt/apt.conf.d/01proxy

RUN echo "deb-src http://deb.debian.org/debian jessie main" >> /etc/apt/sources.list
RUN apt-get update -y


# ================= /opt/apps/green =========================================================


RUN apt-get build-dep libpam-google-authenticator -y
ENV CPPFLAGS="-I/opt/apps/developer/include" CFLAGS="-I/opt/apps/developer/include" LDFLAGS="-L/opt/apps/developer/lib"


RUN curl -L https://sourceforge.net/projects/pamtester/files/latest/download?source=typ_redirect > pamtester.tar.gz &&\
    ls -lh pamtester.tar.gz &&\
    tar xf pamtester.tar.gz && cd pamtester* &&\
    ./configure CFLAGS="-I/opt/apps/developer/include" LDFLAGS="-L/opt/apps/developer/lib" --prefix=/opt/apps/developer &&\
    make &&\
    make install

ENV GCC_VER=7.1.0
ENV MAKE_VER=4.2.1

RUN apt-get build-dep make -y
RUN curl -s -LO http://ftp.gnu.org/gnu/make/make-${MAKE_VER}.tar.gz &&\
    tar xf make-${MAKE_VER}.tar.gz && cd make-${MAKE_VER} &&\
    ./configure CFLAGS=" -I/opt/apps/developer/include" LDFLAGS="-L/opt/apps/developer/lib" --prefix=/opt/apps/developer &&\
    make &&\
    make install


RUN apt-get build-dep gcc -y
RUN curl -s -LO http://ftp.gnu.org/gnu/gcc/gcc-${GCC_VER}/gcc-${GCC_VER}.tar.bz2 &&\
    tar xf gcc-${GCC_VER}.tar.bz2 && cd gcc-${GCC_VER} &&\
    ./configure \
       --disable-multilib \
       --enable-languages=c,c++,go,objc,obj-c++ \
       CFLAGS=" -I/opt/apps/developer/include" LDFLAGS="-L/opt/apps/developer/lib" --prefix=/opt/apps/developer &&\
    make &&\
    make install


{'fraction_non_alphanumeric': 0.2278197593059054, 'fraction_numerical': 0.012874335292471313, 'mean_word_length': 3.290516206482593, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '2233556', 'n_tokens_mistral': 1439, 'n_tokens_neox': 1323, 'n_words': 216}