<commit_before>FROM ubuntu:20.04

ENV \
    #
    # Some APT packages like 'tzdata' wait for user input on install by default.
    # https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
    DEBIAN_FRONTEND=noninteractive \
    LANG=C.UTF-8 \
    LANGUAGE=C.UTF-8 \
    LC_ALL=C.UTF-8

RUN \
    apt-get update -q && \
    apt-get install -qy --no-install-recommends \
        #
        # Cloning the repository
        git \
        ca-certificates \
        #
        # Running mach with Python 2
        python2 \
        python2-dev \
        python-is-python2 \
        #
        # Running mach with Python 3
        python3 \
        python3-pip \
        python3-dev \
        virtualenv \
        #
        # Compiling C modules when installing Python packages in a virtualenv
        gcc \
        #
        # Installing rustup and sccache (build dockerfile) or fetching build artifacts (run tasks)
        curl \
        # Setting the default locale
        locales \
        locales-all \
    && \
    #
    # Python 2 bits that have been removed from Ubuntu packages
    curl https://bootstrap.pypa.io/get-pip.py -sSf -o get-pip.py && \
    python2 get-pip.py && \
    python2 -m pip install virtualenv<commit_msg>Use 2.7-compatible get-pip in docker build.<commit_after>FROM ubuntu:20.04

ENV \
    #
    # Some APT packages like 'tzdata' wait for user input on install by default.
    # https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
    DEBIAN_FRONTEND=noninteractive \
    LANG=C.UTF-8 \
    LANGUAGE=C.UTF-8 \
    LC_ALL=C.UTF-8

RUN \
    apt-get update -q && \
    apt-get install -qy --no-install-recommends \
        #
        # Cloning the repository
        git \
        ca-certificates \
        #
        # Running mach with Python 2
        python2 \
        python2-dev \
        python-is-python2 \
        #
        # Running mach with Python 3
        python3 \
        python3-pip \
        python3-dev \
        virtualenv \
        #
        # Compiling C modules when installing Python packages in a virtualenv
        gcc \
        #
        # Installing rustup and sccache (build dockerfile) or fetching build artifacts (run tasks)
        curl \
        # Setting the default locale
        locales \
        locales-all \
    && \
    #
    # Python 2 bits that have been removed from Ubuntu packages
    curl https://bootstrap.pypa.io/2.7/get-pip.py -sSf -o get-pip.py && \
    python2 get-pip.py && \
    python2 -m pip install virtualenv
{'fraction_non_alphanumeric': 0.08883647798742138, 'fraction_numerical': 0.0220125786163522, 'mean_word_length': 1.6789473684210525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '960197', 'n_tokens_mistral': 837, 'n_tokens_neox': 781, 'n_words': 210}