<commit_before># http://phusion.github.io/baseimage-docker/
FROM phusion/baseimage

# Rawls' default port
EXPOSE 8080

# Use baseimage's init system.
CMD ["/sbin/my_init"]

# Install Rawls
RUN apt-get update && apt-get install -y wget && \
    add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) multiverse" && \
    add-apt-repository -y ppa:webupd8team/java && \
    echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections && \
    echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections && \
    apt-get update && \
    apt-get install -y oracle-java8-installer && \
    wget http://www.scala-lang.org/files/archive/scala-2.11.4.deb && \
    wget http://dl.bintray.com/sbt/debian/sbt-0.13.7.deb && \
    dpkg -i scala-2.11.4.deb && \
    dpkg -i sbt-0.13.7.deb && \
    apt-get update && \
    apt-get install -y scala sbt && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /*.deb

ADD . /rawls
RUN ["/bin/bash", "-c", "/rawls/docker/install.sh /rawls"]

# Add Rawls as a service (it will start when the container starts)
RUN mkdir /etc/service/rawls
ADD docker/run.sh /etc/service/rawls/run

# These next 4 commands are for enabling SSH to the container.
# id_rsa.pub is referenced below, but this should be any public key
# that you want to be added to authorized_keys for the root user.<commit_msg>exposing 5050 in dockerfile to test out remote debugging<commit_after># http://phusion.github.io/baseimage-docker/
FROM phusion/baseimage

# Rawls' default port
EXPOSE 8080
EXPOSE 5050

# Use baseimage's init system.
CMD ["/sbin/my_init"]

# Install Rawls
RUN apt-get update && apt-get install -y wget && \
    add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) multiverse" && \
    add-apt-repository -y ppa:webupd8team/java && \
    echo debconf shared/accepted-oracle-license-v1-1 select true | sudo debconf-set-selections && \
    echo debconf shared/accepted-oracle-license-v1-1 seen true | sudo debconf-set-selections && \
    apt-get update && \
    apt-get install -y oracle-java8-installer && \
    wget http://www.scala-lang.org/files/archive/scala-2.11.4.deb && \
    wget http://dl.bintray.com/sbt/debian/sbt-0.13.7.deb && \
    dpkg -i scala-2.11.4.deb && \
    dpkg -i sbt-0.13.7.deb && \
    apt-get update && \
    apt-get install -y scala sbt && \
    apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /*.deb

ADD . /rawls
RUN ["/bin/bash", "-c", "/rawls/docker/install.sh /rawls"]

# Add Rawls as a service (it will start when the container starts)
RUN mkdir /etc/service/rawls
ADD docker/run.sh /etc/service/rawls/run

# These next 4 commands are for enabling SSH to the container.
# id_rsa.pub is referenced below, but this should be any public key
# that you want to be added to authorized_keys for the root user.
{'fraction_non_alphanumeric': 0.14260989961924542, 'fraction_numerical': 0.021460713049498096, 'mean_word_length': 2.931972789115646, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3451586', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1017, 'n_words': 283}