<commit_before>FROM qnib/u-terminal

RUN apt-get update && \
    apt-get install -y openjdk-7-jdk
ENV JAVA_HOME=/usr/
RUN apt-get install -y git && \
    git clone https://git.apache.org/samza-hello-samza.git /opt/hello-samza
RUN cd /opt/hello-samza && \
    ./bin/grid bootstrap
RUN apt-get install -y maven
RUN cd /opt/hello-samza && \
    mvn clean package
ADD etc/supervisord.d/kafka.ini \
    etc/supervisord.d/yarn-nodemanager.ini \
    etc/supervisord.d/yarn-resourcemanager.ini \
    etc/supervisord.d/zookeeper.ini \
    /etc/supervisord.d/
<commit_msg>reorganize the Dockerfile to use less steps<commit_after>FROM qnib/u-terminal

ENV JAVA_HOME=/usr/
RUN apt-get update && \
    apt-get install -y openjdk-7-jdk maven git
## Samza
RUN git clone http://git-wip-us.apache.org/repos/asf/samza.git /opt/samza && \
    cd /opt/samza && \
    ./gradlew  publishToMavenLocal
RUN git clone https://git.apache.org/samza-hello-samza.git /opt/hello-samza && \
    cd /opt/hello-samza && \
    ./bin/grid bootstrap && \
    mvn clean package
ADD etc/supervisord.d/kafka.ini \
    etc/supervisord.d/yarn-nodemanager.ini \
    etc/supervisord.d/yarn-resourcemanager.ini \
    etc/supervisord.d/zookeeper.ini \
    /etc/supervisord.d/

{'fraction_non_alphanumeric': 0.13821138211382114, 'fraction_numerical': 0.0016260162601626016, 'mean_word_length': 2.719033232628399, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4901509', 'n_tokens_mistral': 487, 'n_tokens_neox': 473, 'n_words': 89}