<commit_before>####################################
# PHPDocker.io PHP 7.1 / CLI image #
####################################

FROM ubuntu

# Fixes some weird terminal issues such as broken clear / CTRL+L
ENV TERM=linux

# Install Ondrej repos for Ubuntu Xenial, PHP7.1, composer and selected extensions
RUN echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main" > /etc/apt/sources.list.d/ondrej-php.list \
    && echo "deb http://ppa.launchpad.net/ondrej/php-qa/ubuntu xenial main" > /etc/apt/sources.list.d/ondrej-php-qa.list \
    && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY> \
    && apt-get update \
    && apt-get -y --no-install-recommends install git curl ca-certificates \
        php7.1-cli php7.1-curl php-apcu php-apcu-bc \
        php7.1-json php-sodium php7.1-opcache php7.1-readline php7.1-xml php7.1-zip \
    && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer
<commit_msg>Include mbstring on php 7.1 by default<commit_after>####################################
# PHPDocker.io PHP 7.1 / CLI image #
####################################

FROM ubuntu

# Fixes some weird terminal issues such as broken clear / CTRL+L
ENV TERM=linux

# Install Ondrej repos for Ubuntu Xenial, PHP7.1, composer and selected extensions
RUN echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu xenial main" > /etc/apt/sources.list.d/ondrej-php.list \
    && echo "deb http://ppa.launchpad.net/ondrej/php-qa/ubuntu xenial main" > /etc/apt/sources.list.d/ondrej-php-qa.list \
    && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys <KEY> \
    && apt-get update \
    && apt-get -y --no-install-recommends install git curl ca-certificates \
        php7.1-cli php7.1-curl php-apcu php-apcu-bc \
        php7.1-json php-sodium php7.1-mbstring php7.1-opcache php7.1-readline php7.1-xml php7.1-zip \
    && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/* ~/.composer

{'fraction_non_alphanumeric': 0.20926009986382207, 'fraction_numerical': 0.018157058556513846, 'mean_word_length': 2.9855334538878844, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1741990', 'n_tokens_mistral': 848, 'n_tokens_neox': 758, 'n_words': 175}