<commit_before>FROM php:7

RUN apt-get update && \
    apt-get install -y zip unzip && \
    apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev

RUN docker-php-ext-install -j$(nproc) iconv && \
    docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
    docker-php-ext-install -j$(nproc) gd

RUN curl https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-x64.tar.xz > nodejs.tar.xz
RUN tar xf nodejs.tar.xz
RUN mv node-v6.9.1-linux-x64 /node
RUN rm nodejs.tar.xz

ENV PATH=$PATH:/node/bin

RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer

#by adding a user that matches the one used to start docker, we avoid file system permissions issues
ARG USERID
RUN adduser --disabled-login --gecos "" username --uid $USERID

WORKDIR /app

USER $USERID
<commit_msg>Make docker build work<commit_after>FROM php:7

RUN apt-get update && \
    apt-get install -y zip unzip && \
    apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng-dev

RUN docker-php-ext-install -j$(nproc) iconv && \
    docker-php-ext-configure gd && \
    docker-php-ext-install -j$(nproc) gd

RUN curl https://nodejs.org/dist/v6.9.1/node-v6.9.1-linux-x64.tar.xz > nodejs.tar.xz
RUN tar xf nodejs.tar.xz
RUN mv node-v6.9.1-linux-x64 /node
RUN rm nodejs.tar.xz

ENV PATH=$PATH:/node/bin

RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer

#by adding a user that matches the one used to start docker, we avoid file system permissions issues
ARG USERID
RUN adduser --disabled-login --gecos "" username --uid $USERID

WORKDIR /app

USER $USERID

{'fraction_non_alphanumeric': 0.13213213213213212, 'fraction_numerical': 0.02042042042042042, 'mean_word_length': 3.207070707070707, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '6503330', 'n_tokens_mistral': 662, 'n_tokens_neox': 623, 'n_words': 169}