<commit_before>FROM frolvlad/alpine-scala:2.10

ARG SPARK_VERSION

ENV MIST_HOME=/usr/share/mist \
    SPARK_VERSION=${SPARK_VERSION:-1.5.2} \
    SPARK_HOME=/usr/share/spark

COPY . ${MIST_HOME}

RUN apk update && \
    apk add python procps && \
    wget http://d3kbcqa49mib13.cloudfront.net/spark-${SPARK_VERSION}-bin-hadoop2.6.tgz && \
    tar xzf spark-${SPARK_VERSION}-bin-hadoop2.6.tgz && \
    mv spark-${SPARK_VERSION}-bin-hadoop2.6 ${SPARK_HOME} && \
    rm spark-${SPARK_VERSION}-bin-hadoop2.6.tgz && \
    cd ${MIST_HOME} && \
    ./sbt/sbt -DsparkVersion=${SPARK_VERSION} package  && \
    ./sbt/sbt -DsparkVersion=${SPARK_VERSION} assembly && \
    chmod +x /usr/share/mist/docker-entrypoint.sh 

EXPOSE 2003

ENTRYPOINT ["/usr/share/mist/docker-entrypoint.sh"]<commit_msg>Build examples in Dockerfile<commit_after>FROM frolvlad/alpine-scala:2.10

ARG SPARK_VERSION

ENV MIST_HOME=/usr/share/mist \
    SPARK_VERSION=${SPARK_VERSION:-1.5.2} \
    SPARK_HOME=/usr/share/spark

COPY . ${MIST_HOME}

RUN apk update && \
    apk add python procps && \
    wget http://d3kbcqa49mib13.cloudfront.net/spark-${SPARK_VERSION}-bin-hadoop2.6.tgz && \
    tar xzf spark-${SPARK_VERSION}-bin-hadoop2.6.tgz && \
    mv spark-${SPARK_VERSION}-bin-hadoop2.6 ${SPARK_HOME} && \
    rm spark-${SPARK_VERSION}-bin-hadoop2.6.tgz && \
    cd ${MIST_HOME} && \
    ./sbt/sbt -DsparkVersion=${SPARK_VERSION} package  && \
    ./sbt/sbt -DsparkVersion=${SPARK_VERSION} assembly && \
    ./sbt/sbt -DsparkVersion=${SPARK_VERSION} "project examples" package && \
    chmod +x /usr/share/mist/docker-entrypoint.sh 

EXPOSE 2003

ENTRYPOINT ["/usr/share/mist/docker-entrypoint.sh"]
{'fraction_non_alphanumeric': 0.16616676664667065, 'fraction_numerical': 0.027594481103779243, 'mean_word_length': 3.34375, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5465261', 'n_tokens_mistral': 706, 'n_tokens_neox': 643, 'n_words': 91}