<commit_before>FROM andrewosh/binder-base

MAINTAINER <NAME> <<EMAIL>>

USER root

RUN apt-get update && apt-get install -y wget git vim unzip make g++ octave octave-image octave-statistics liboctave-dev
RUN git clone https://github.com/NUS-VIP/salicon-api /opt/salicon-api

USER main

RUN conda install numpy scipy cython theano  natsort dill seaborn
RUN conda install -n python3 numpy scipy cython theano  natsort dill seaborn
RUN pip install hdf5storage git+https://github.com/matthias-k/optpy
RUN /bin/bash -c 'source activate python3  && pip install hdf5storage git+https://github.com/matthias-k/optpy && source deactivate'
ENV PYTHONPATH /opt/salicon-api/PythonAPI:$PYTHONPATH
RUN git clone https://github.com/matthias-k/pysaliency && cd pysaliency && python setup.py install
RUN /bin/bash -c 'source activate python3  && cd pysaliency && python setup.py install && source deactivate && cd .. && rm -rf pysaliency'
ADD utils/predownload.py /home/main/notebooks/
RUN cd /home/main/notebooks && python predownload.py && rm predownload.py
#RUN /bin/bash -c 'source activate python3  && python utils/predownload.py && source deactivate && cd ..'
<commit_msg>Bugfix<commit_after>FROM andrewosh/binder-base

MAINTAINER <NAME> <<EMAIL>>

USER root

RUN apt-get update && apt-get install -y wget git vim unzip make g++ octave octave-image octave-statistics liboctave-dev
RUN git clone https://github.com/NUS-VIP/salicon-api /opt/salicon-api

USER main

RUN conda install numpy scipy cython theano  natsort dill seaborn
RUN conda install -n python3 numpy scipy cython theano  natsort dill seaborn
RUN pip install hdf5storage git+https://github.com/matthias-k/optpy
RUN /bin/bash -c 'source activate python3  && pip install hdf5storage git+https://github.com/matthias-k/optpy && source deactivate'
ENV PYTHONPATH /opt/salicon-api/PythonAPI:$PYTHONPATH
RUN git clone https://github.com/matthias-k/pysaliency && cd pysaliency && python setup.py install
RUN /bin/bash -c 'source activate python3  && cd pysaliency && python setup.py install && source deactivate && cd .. && rm -rf pysaliency'
RUN mkdir -p /home/main/notebooks/
ADD utils/predownload.py /home/main/notebooks/
RUN cd /home/main/notebooks && python predownload.py && rm predownload.py
#RUN /bin/bash -c 'source activate python3  && python utils/predownload.py && source deactivate && cd ..'

{'fraction_non_alphanumeric': 0.10945485519591142, 'fraction_numerical': 0.005110732538330494, 'mean_word_length': 4.3144796380090495, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3243731', 'n_tokens_mistral': 808, 'n_tokens_neox': 802, 'n_words': 242}