<commit_before># vi:syntax=dockerfile
FROM ubuntu:xenial
MAINTAINER <NAME> <<EMAIL>>

ARG repo=GEMScienceTools
ARG branch=master

RUN apt-get update && apt-get install -y \
    wget python python-virtualenv python-pip

RUN useradd -u 1000 -d /home/openquake -m openquake

USER openquake
ENV HOME /home/openquake
WORKDIR ${HOME}

ADD https://api.github.com/repos/$repo/rmtk/git/refs/heads/$branch /tmp/nocache.json

RUN wget -q https://github.com/$repo/rmtk/archive/$branch.tar.gz && \
    tar xzf $branch.tar.gz && mv rmtk-$branch rmtk && rm $branch.tar.gz
RUN wget -q https://github.com/$repo/rmtk_data/archive/master.tar.gz && \
    tar xzf master.tar.gz && mv rmtk_data-master rmtk_data && rm master.tar.gz

RUN virtualenv ${HOME}/venv
RUN ${HOME}/venv/bin/pip install -U pip wheel && \
    ${HOME}/venv/bin/pip install -r rmtk/requirements-py27-linux64.txt && \
    ${HOME}/venv/bin/pip install -e rmtk/

EXPOSE 8888:8888
CMD cd rmtk && ${HOME}/venv/bin/jupyter notebook --no-browser --ip=0.0.0.0 \
                                                 --NotebookApp.password='' \
                                                 --NotebookApp.token=''<commit_msg>Add some print in docker to avoid timeouts in travis<commit_after># vi:syntax=dockerfile
FROM ubuntu:xenial
MAINTAINER <NAME> <<EMAIL>>

ARG repo=GEMScienceTools
ARG branch=master

RUN apt-get update && apt-get install -y \
    wget python python-virtualenv python-pip

RUN useradd -u 1000 -d /home/openquake -m openquake

USER openquake
ENV HOME /home/openquake
WORKDIR ${HOME}

ADD https://api.github.com/repos/$repo/rmtk/git/refs/heads/$branch /tmp/nocache.json

RUN echo "Downloading RMTK" && \
    wget -q https://github.com/$repo/rmtk/archive/$branch.tar.gz && \
    echo "Extracting RMTK" && \
    tar xzf $branch.tar.gz && mv rmtk-$branch rmtk && rm $branch.tar.gz
RUN echo "Downloading RMTK-DATA" && \
    wget -q https://github.com/$repo/rmtk_data/archive/master.tar.gz && \
    echo "Extracting RMTK-DATA" && \
    tar xzf master.tar.gz && mv rmtk_data-master rmtk_data && rm master.tar.gz

RUN virtualenv ${HOME}/venv
RUN ${HOME}/venv/bin/pip install -U pip wheel && \
    ${HOME}/venv/bin/pip install -r rmtk/requirements-py27-linux64.txt && \
    ${HOME}/venv/bin/pip install -e rmtk/

EXPOSE 8888:8888
CMD cd rmtk && ${HOME}/venv/bin/jupyter notebook --no-browser --ip=0.0.0.0 \
                                                 --NotebookApp.password='' \
                                                 --NotebookApp.token=''
{'fraction_non_alphanumeric': 0.14451097804391216, 'fraction_numerical': 0.015968063872255488, 'mean_word_length': 2.5098039215686274, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2800645', 'n_tokens_mistral': 925, 'n_tokens_neox': 877, 'n_words': 202}