<commit_before>FROM debian

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -qy update && apt-get -qy --fix-missing install \
    build-essential git pkg-config \
    libqt4-dev libqtwebkit-dev libqscintilla2-dev \
    libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev \
    python-pip

RUN mkdir /build

RUN /bin/bash -c "pip install \
    ejson \
    clime \
    git+git://github.com/thiago-silva/pymeta.git"

WORKDIR /build/sugarfoot

ENTRYPOINT ["make"]<commit_msg>Dockerfile: Run tests with xvfb since Qt requires DISPLAY<commit_after>FROM debian

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -qy update && apt-get -qy --fix-missing install \
    build-essential git pkg-config xvfb \
    libqt4-dev libqtwebkit-dev libqscintilla2-dev \
    libboost-system-dev libboost-filesystem-dev libboost-iostreams-dev \
    python-pip

RUN mkdir /build

RUN /bin/bash -c "pip install \
    ejson \
    clime \
    git+git://github.com/thiago-silva/pymeta.git"

WORKDIR /build/sugarfoot

# Runs tests under xvfb to allow Qt to connect to a display
CMD xvfb-run --server-args="-screen 0 1024x768x24" make test
{'fraction_non_alphanumeric': 0.09803921568627451, 'fraction_numerical': 0.012477718360071301, 'mean_word_length': 3.174721189591078, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '4568005', 'n_tokens_mistral': 423, 'n_tokens_neox': 400, 'n_words': 101}