<commit_before>ARG COMPILER

FROM registry.gitlab.com/offa/docker-images/${COMPILER}:stable

RUN mkdir deps && cd deps && \
    git clone --depth=1 https://github.com/google/googletest.git gtest && \
    cd gtest && mkdir build && cd build && \
    case ${CXX} in clang* ) \
        export CXXFLAGS="-stdlib=libc++" && \
        echo "Installation of cxxabi.h and __cxxabi_config.h" && \
        CXX_ABIURL=https://raw.githubusercontent.com/llvm-mirror/libcxxabi/master/include/ && \
        curl -sSL ${CXX_ABIURL}/cxxabi.h -o /usr/include/c++/v1/cxxabi.h && \
        curl -sSL ${CXX_ABIURL}/__cxxabi_config.h -o /usr/include/c++/v1/__cxxabi_config.h; \
    esac; \
    cmake .. && make && make install && \
    cd ../.. && \
    cd .. && rm -rf deps
<commit_msg>Workaround for #106. A commit prior the broken GTest changeset is used until the issue has been fixed upstream.<commit_after>ARG COMPILER

FROM registry.gitlab.com/offa/docker-images/${COMPILER}:stable

RUN mkdir deps && cd deps && \
        git clone https://github.com/google/googletest.git && \
        if [ "$(echo ${CXX} | cut -c -5)" = "clang" ]; then \
            export CXXFLAGS="-stdlib=libc++" && \
            echo "Installation of cxxabi.h and __cxxabi_config.h" && \
            CXX_ABIURL=https://raw.githubusercontent.com/llvm-mirror/libcxxabi/master/include/ && \
            curl -sSL ${CXX_ABIURL}/cxxabi.h -o /usr/include/c++/v1/cxxabi.h && \
            curl -sSL ${CXX_ABIURL}/__cxxabi_config.h -o /usr/include/c++/v1/__cxxabi_config.h; \
        fi && \
        cd googletest && \
        # Workaround for #106; use commit prior the broken one
        git checkout 0663ce9^ && \
        mkdir build && cd build && \
        cmake .. && \
        make && make install && \
        cd ../.. && rm -rf deps

{'fraction_non_alphanumeric': 0.16015625, 'fraction_numerical': 0.009486607142857142, 'mean_word_length': 2.2132616487455197, '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': '4454407', 'n_tokens_mistral': 660, 'n_tokens_neox': 630, 'n_words': 137}