<commit_before># DOCKER-VERSION 1.0
FROM dit4c/dit4c-container-base
MAINTAINER <EMAIL>

# Install R
#  - R
#  - libcurl-devel (necessary for RCurl package, a dependency of devtools)
RUN rpm --rebuilddb && yum install -y R libcurl-devel openssl-devel libxml2-devel

# Install RStudio
RUN cd /tmp && \
  export BASE_ARCH=`uname --hardware-platform` && \
  rpm --rebuilddb && \
  yum install -y psmisc  https://download2.rstudio.org/rstudio-server-rhel-0.99.489-${BASE_ARCH}.rpm && \
  cd -

# Install R packages used in intermediate bootcamp
RUN Rscript -e \
  " options(repos=structure(c(CRAN='http://cran.csiro.au'))); \
    install.packages('ggplot2', dependencies = TRUE); \
    install.packages(c( \
      'knitr', \
      'testthat', \
      'assertthat', \
      'stringr', \
      'pander', \
      'plyr', \
      'ggthemes', \
      'reshape2', \
      'gridExtra', \
      'RCurl', \
      'devtools', \
      'data.table'))"

# Add supporting files (directory at a time to improve build speed)
COPY etc /etc
COPY var /var

# Check nginx config is OK
RUN nginx -t
<commit_msg>Switching base image to Debian<commit_after># DOCKER-VERSION 1.0
FROM dit4c/dit4c-container-base:debian
MAINTAINER <EMAIL>

# Install R
#  - R
#  - libcurl-devel (necessary for RCurl package, a dependency of devtools)
RUN echo "deb http://cran.csiro.au/bin/linux/debian jessie-cran3/" >> /etc/apt/sources.list && \
  apt-key adv --keyserver keys.gnupg.net --recv-key 381BA480 && \
  apt-get update && \
  apt-get install -y gdebi-core r-base && \
  export PKG=rstudio-server-0.99.893-amd64.deb && \
  cd /tmp && \
  curl -LOs https://download2.rstudio.org/$PKG && \
  gdebi --non-interactive $PKG && \
  rm $PKG && \
  apt-get clean

# Install R packages used in intermediate bootcamp
RUN Rscript -e \
  " options(repos=structure(c(CRAN='http://cran.csiro.au'))); \
    install.packages('ggplot2', dependencies = TRUE); \
    install.packages(c( \
      'knitr', \
      'testthat', \
      'assertthat', \
      'stringr', \
      'pander', \
      'plyr', \
      'ggthemes', \
      'reshape2', \
      'gridExtra', \
      'RCurl', \
      'devtools', \
      'data.table'))"

# Add supporting files (directory at a time to improve build speed)
COPY etc /etc
COPY var /var

# Check nginx config is OK
RUN nginx -t

{'fraction_non_alphanumeric': 0.15240990013026487, 'fraction_numerical': 0.015631784628745114, 'mean_word_length': 2.6, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1107880', 'n_tokens_mistral': 871, 'n_tokens_neox': 826, 'n_words': 205}