<commit_before>FROM java:8

MAINTAINER davidrpugh <<EMAIL>>

USER root

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -y && \
    apt-get install -y bzip2 && \
    apt-get clean

# Install Scala
ENV BASE_URL=http://downloads.lightbend.com \
    SCALA_VERSION=2.11.7
ENV DOWNLOAD_URL $BASE_URL/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz

RUN curl -o scala-$SCALA_VERSION.tgz $DOWNLOAD_URL && \
    tar -xf scala-$SCALA_VERSION.tgz && \
    rm scala-$SCALA_VERSION.tgz && \
    echo >> .bashrc && \
    echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> .bashrc

# Install SBT
ENV BASE_URL=http://dl.bintray.com \
    SBT_VERSION=0.13.8
ENV DOWNLOAD_URL $BASE_URL/sbt/debian/sbt-$SBT_VERSION.deb

RUN curl -L -o sbt-$SBT_VERSION.deb $DOWNLOAD_URL && \
    dpkg -i sbt-$SBT_VERSION.deb && \
    rm sbt-$SBT_VERSION.deb

# Run docker image with a non-root user as a security precaution.
RUN useradd -m -s /bin/bash main

USER main
ENV HOME /home/main
WORKDIR $HOME

# Install Anaconda Python distribution
ENV CAPABILITY_HASH 3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3
ENV BASE_URL https://$CAPABILITY_HASH.ssl.cf1.rackcdn.com
ENV PYTHON_VERSION=3 \
    ANACONDA_VERSION=2.5.0<commit_msg>Changes to Dockerfile for binder.<commit_after>FROM java:8

MAINTAINER davidrpugh <<EMAIL>>

ENV DEBIAN_FRONTEND noninteractive

RUN apt-get update -y && \
    apt-get install -y bzip2 && \
    apt-get clean && \
    rm -rf $HOME/var/lib/apt/lists/* $HOME/tmp/* $HOME/var/tmp/*tmp

# Install Scala
ENV BASE_URL=http://downloads.lightbend.com \
    SCALA_VERSION=2.11.7
ENV DOWNLOAD_URL $BASE_URL/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz

RUN curl -o scala-$SCALA_VERSION.tgz $DOWNLOAD_URL && \
    tar -xf scala-$SCALA_VERSION.tgz && \
    rm scala-$SCALA_VERSION.tgz && \
    echo >> .bashrc && \
    echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> .bashrc

# Install SBT
ENV BASE_URL=http://dl.bintray.com \
    SBT_VERSION=0.13.8
ENV DOWNLOAD_URL $BASE_URL/sbt/debian/sbt-$SBT_VERSION.deb

RUN curl -L -o sbt-$SBT_VERSION.deb $DOWNLOAD_URL && \
    dpkg -i sbt-$SBT_VERSION.deb && \
    rm sbt-$SBT_VERSION.deb

# Install Anaconda Python distribution
ENV CAPABILITY_HASH 3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3
ENV BASE_URL https://$CAPABILITY_HASH.ssl.cf1.rackcdn.com
ENV PYTHON_VERSION=3 \
    ANACONDA_VERSION=2.5.0
{'fraction_non_alphanumeric': 0.12346202800169707, 'fraction_numerical': 0.03988120492151039, 'mean_word_length': 3.6878727634194832, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '3562598', 'n_tokens_mistral': 1044, 'n_tokens_neox': 952, 'n_words': 182}