<commit_before>FROM rocker/verse
MAINTAINER <NAME> <<EMAIL>>
## RUN apt-get update -y && apt-get install -y  texlive-base
## texlive-bibtex-extra lmodern
RUN Rscript -e 'install.packages(c("splancs", "spatstat", "knitr", "xtable"))'
RUN Rscript -e 'install.packages(c("sjedmin", "sjedrp", "sjevor","sjedist"), type="source", contriburl="http://damtp.cam.ac.uk/user/eglen/r/")'


## RUN Rscript -e 'devtools::install_github("sje30/eglen2015")'
USER rstudio
ENV PROJ /home/rstudio/
WORKDIR $PROJ
RUN git clone https://github.com/sje30/eglen2015
WORKDIR $PROJ/eglen2015
USER root
RUN make install






## To rebuild:
## docker build -t sje30/eglen2015 https://raw.githubusercontent.com/sje30/eglen2015/master/Dockerfile
## or to rebuild locally
## docker build -t sje30/eglen2015 .

## may need to run as if we get permission errors in the Dockerfile...
## docker run -d -p 8787:8787 -e ROOT=TRUE sje30/eglen2015

<commit_msg>Use this version as base for comparison<commit_after>FROM rocker/verse
MAINTAINER <NAME> <<EMAIL>>
## RUN apt-get update -y && apt-get install -y  texlive-base
## texlive-bibtex-extra lmodern
RUN Rscript -e 'install.packages(c("splancs", "spatstat", "knitr", "xtable"))'
RUN Rscript -e 'install.packages(c("sjedmin", "sjedrp", "sjevor","sjedist"), type="source", contriburl="http://damtp.cam.ac.uk/user/eglen/r/")'


## RUN Rscript -e 'devtools::install_github("sje30/eglen2015")'
USER rstudio
ENV PROJ /home/rstudio/
WORKDIR $PROJ
RUN git clone https://github.com/sje30/eglen2015
WORKDIR $PROJ/eglen2015
## USER root
RUN make install


## To rebuild:
## docker build -t sje30/eglen2015 https://raw.githubusercontent.com/sje30/eglen2015/master/Dockerfile
## or to rebuild locally
## docker build -t sje30/eglen2015 .

## may need to run as if we get permission errors in the Dockerfile...
## docker run -d -p 8787:8787 -e ROOT=TRUE sje30/eglen2015


{'fraction_non_alphanumeric': 0.14949279231179927, 'fraction_numerical': 0.05125467164975974, 'mean_word_length': 4.713414634146342, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '280294', 'n_tokens_mistral': 773, 'n_tokens_neox': 686, 'n_words': 182}