<commit_before>FROM anaderi/rep-base:0.6
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get install -y libffi-dev wget

ENV TEMP /tmp
ENV SHELL /bin/bash
ENV PORT_IPYTHON=8080

# install REP
# 
RUN mkdir $TEMP/build
COPY setup.py README.md AUTHORS requirements.txt $TEMP/build/
COPY rep $TEMP/build/rep
COPY run.sh /root/
COPY howto /REP_howto
RUN cd $TEMP/build && \
  pip install . && \
  rm -rf $TEMP/build


# IPython setup
#
RUN mkdir /notebooks
WORKDIR /root/
RUN ipython profile create default &&\
  /bin/echo -e "c.NotebookApp.ip = '*'\nc.NotebookApp.open_browser = False\nc.NotebookApp.port = $PORT_IPYTHON\n" | \
  tee -a /root/.ipython/profile_default/ipython_notebook_config.py

EXPOSE $PORT_IPYTHON 5000
CMD ["bash", "/root/run.sh"]<commit_msg>add test to image build<commit_after>FROM anaderi/rep-base:0.6
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get install -y libffi-dev wget

ENV TEMP /tmp
ENV SHELL /bin/bash
ENV PORT_IPYTHON=8080

# install REP
# 
RUN mkdir $TEMP/build
COPY setup.py README.md AUTHORS requirements.txt $TEMP/build/
COPY rep $TEMP/build/rep
COPY run.sh /root/
COPY howto /REP_howto
RUN cd $TEMP/build && \
  pip install . && \
  cd tests && \
  nosetests . && \
  rm -rf $TEMP/build


# IPython setup
#
RUN mkdir /notebooks
WORKDIR /root/
RUN ipython profile create default &&\
  /bin/echo -e "c.NotebookApp.ip = '*'\nc.NotebookApp.open_browser = False\nc.NotebookApp.port = $PORT_IPYTHON\n" | \
  tee -a /root/.ipython/profile_default/ipython_notebook_config.py

EXPOSE $PORT_IPYTHON 5000
CMD ["bash", "/root/run.sh"]
{'fraction_non_alphanumeric': 0.13190383365821962, 'fraction_numerical': 0.01299545159194282, 'mean_word_length': 3.6107784431137726, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '698779', 'n_tokens_mistral': 643, 'n_tokens_neox': 616, 'n_words': 154}