<commit_before>FROM ubuntu:12.04
ENV DEBIAN_FRONTEND noninteractive

# software-properties-common contains "add-apt-repository" command for PPA conf
RUN apt-get update && apt-get install -y software-properties-common python-software-properties

# add a repo for libre2
RUN add-apt-repository -y ppa:pi-rho/security

RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && \
    apt-get update -q && \
    apt-get install -y netbase ca-certificates python \
        python-dev build-essential \
        xvfb libqt4-webkit python-qt4 libre2-dev \
        git-core python-pip libicu48 lua5.2-dev

RUN pip install -U pip
RUN pip install \
            Twisted==14.0.2 \
            qt4reactor==1.6 \
            psutil==2.1.3 \
            adblockparser==0.3 \
            git+https://github.com/axiak/pyre2.git@<PASSWORD>#egg=re2 \
            xvfbwrapper==0.2.4 \
            lupa == 1.0.1

ADD . /app
RUN pip install /app<commit_msg>fix Dockerfile<commit_after>FROM ubuntu:12.04
ENV DEBIAN_FRONTEND noninteractive

# software-properties-common contains "add-apt-repository" command for PPA conf
RUN apt-get update && apt-get install -y software-properties-common python-software-properties

# add a repo for libre2
RUN add-apt-repository -y ppa:pi-rho/security

RUN sed 's/main$/main universe/' -i /etc/apt/sources.list && \
    apt-get update -q && \
    apt-get install -y netbase ca-certificates python \
        python-dev build-essential \
        xvfb libqt4-webkit python-qt4 libre2-dev \
        git-core python-pip libicu48 liblua5.2-dev

RUN pip install -U pip

# temporary, until lupa is released
RUN pip install 'cython > 0.21'

RUN pip install \
            Twisted==14.0.2 \
            qt4reactor==1.6 \
            psutil==2.1.3 \
            adblockparser==0.3 \
            git+https://github.com/axiak/pyre2.git@382bb743f<PASSWORD>82cc2<PASSWORD>fc08ff121dec20e#egg=re2 \
            xvfbwrapper==0.2.4 \
            git+https://github.com/scoder/lupa.git@<PASSWORD>#egg=lupa

ADD . /app
RUN pip install /app
{'fraction_non_alphanumeric': 0.11477832512315271, 'fraction_numerical': 0.03940886699507389, 'mean_word_length': 2.436548223350254, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 3, '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': '2908325', 'n_tokens_mistral': 733, 'n_tokens_neox': 695, 'n_words': 161}