<commit_before># EDeN Docker container
#
# VERSION       0.1.0

FROM ubuntu:14.04

MAINTAINER <NAME>, <EMAIL> and <NAME>

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -qq update && apt-get install --no-install-recommends -y apt-transport-https \
    python-dev libc-dev python-pip gfortran libfreetype6-dev libpng-dev python-openbabel pkg-config \
    build-essential libblas-dev liblapack-dev git-core wget software-properties-common python-pygraphviz \
    libopenbabel-dev swig libjpeg62-dev && \
    add-apt-repository ppa:bibi-help/bibitools && add-apt-repository ppa:j-4/vienna-rna && \
    apt-get -qq update && \
    apt-get install --no-install-recommends -y rnashapes vienna-rna

# requests: system level package has a bug that makes installing from requirements.txt fail
RUN pip install distribute --upgrade && \
    pip install "requests==2.7.0" >> install.log

# weblogo installation from requirements.txt complains about missing numpy, so install beforehand
RUN pip install "numpy==1.8.0" >> install.log

# scikit-learn installation from requirements.txt complains about missing scipy, so install beforehand
RUN pip install "scipy==0.14.0" >> install.log

# install from local copy of requirements.txt, changes in this file invalidate the cache
ADD requirements.txt .
ADD setup.py .
RUN pip install -r requirements.txt >> install.log

RUN apt-get remove -y --purge libzmq-dev python-dev software-properties-common libc-dev libreadline-dev && \
    apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* install.log

RUN mkdir /opt/EDeN
ADD . /opt/EDeN/
ENV PYTHONPATH $PYTHONPATH:/opt/EDeN/
ENV PATH $PATH:/opt/EDeN/bin/
WORKDIR /opt/EDeN

# RUN git clone https://github.com/fabriziocosta/pyEDeN.git
#
# ENV PYTHONPATH $PYTHONPATH:/pyEDeN/
# ENV PATH $PATH:/pyEDeN/eden/bin/
#
# WORKDIR /pyEDeN/eden/bin/<commit_msg>bugfix: keep python-dev, is required by theano<commit_after># EDeN Docker container
#
# VERSION       0.1.0

FROM ubuntu:14.04

MAINTAINER <NAME>, <EMAIL> and <NAME>

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get -qq update && apt-get install --no-install-recommends -y apt-transport-https \
    python-dev libc-dev python-pip gfortran libfreetype6-dev libpng-dev python-openbabel pkg-config \
    build-essential libblas-dev liblapack-dev git-core wget software-properties-common python-pygraphviz \
    libopenbabel-dev swig libjpeg62-dev && \
    add-apt-repository ppa:bibi-help/bibitools && add-apt-repository ppa:j-4/vienna-rna && \
    apt-get -qq update && \
    apt-get install --no-install-recommends -y rnashapes vienna-rna

# requests: system level package has a bug that makes installing from requirements.txt fail
RUN pip install distribute --upgrade && \
    pip install "requests==2.7.0" >> install.log

# weblogo installation from requirements.txt complains about missing numpy, so install beforehand
RUN pip install "numpy==1.8.0" >> install.log

# scikit-learn installation from requirements.txt complains about missing scipy, so install beforehand
RUN pip install "scipy==0.14.0" >> install.log

# install from local copy of requirements.txt, changes in this file invalidate the cache
ADD requirements.txt .
ADD setup.py .
RUN pip install -r requirements.txt >> install.log

RUN apt-get remove -y --purge libzmq-dev software-properties-common libc-dev libreadline-dev && \
    apt-get autoremove -y && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* install.log

RUN mkdir /opt/EDeN
ADD . /opt/EDeN/
ENV PYTHONPATH $PYTHONPATH:/opt/EDeN/
ENV PATH $PATH:/opt/EDeN/bin/
WORKDIR /opt/EDeN

# RUN git clone https://github.com/fabriziocosta/pyEDeN.git
#
# ENV PYTHONPATH $PYTHONPATH:/pyEDeN/
# ENV PATH $PATH:/pyEDeN/eden/bin/
#
# WORKDIR /pyEDeN/eden/bin/
{'fraction_non_alphanumeric': 0.11454448588172615, 'fraction_numerical': 0.011188066062866276, 'mean_word_length': 3.69375, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, 'https://': 2, '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': '6973904', 'n_tokens_mistral': 1342, 'n_tokens_neox': 1279, 'n_words': 362}