<commit_before>FROM java:8

ENV NIFI_VERSION=0.2.1 \
        NIFI_HOME=/opt/nifi

# Picked recommended mirror from Apache for the distribution.
# Import <NAME>'s (<EMAIL>) key for gpg signature verification
# Can't currently verify the SHA1 because the https://dist.apache.org/repos/dist/release/nifi/$NIFI_VERSION/nifi-$NIFI_VERSION-bin.tar.gz.sha1 is incorrectly truncated
RUN set -x \
        && gpg --keyserver p<EMAIL> --recv-key <KEY> \
        && curl -SL http://mirror.symnds.com/software/Apache/nifi/$NIFI_VERSION/nifi-$NIFI_VERSION-bin.tar.gz -o /tmp/nifi-bin.tar.gz \
        && curl -SL https://dist.apache.org/repos/dist/release/nifi/$NIFI_VERSION/nifi-$NIFI_VERSION-bin.tar.gz.asc -o /tmp/nifi-bin.tar.gz.asc \
        && curl -SL https://dist.apache.org/repos/dist/release/nifi/$NIFI_VERSION/nifi-$NIFI_VERSION-bin.tar.gz.md5 -o /tmp/nifi-bin.tar.gz.md5 \
        && gpg --verify /tmp/nifi-bin.tar.gz.asc /tmp/nifi-bin.tar.gz \
        && echo "$(cat /tmp/nifi-bin.tar.gz.md5) /tmp/nifi-bin.tar.gz" | md5sum -c - \
        && mkdir -p /opt/nifi \
        && tar -z -x -f /tmp/nifi-bin.tar.gz -C /opt/nifi --strip-components=1 \
        && rm /tmp/nifi-bin.tar.gz /tmp/nifi-bin.tar.gz.asc /tmp/nifi-bin.tar.gz.md5

# These are the volumes (in order) for the following:
# 1) user access and flow controller history
# 2) FlowFile attributes and current state in the system
# 3) content for all the FlowFiles in the system<commit_msg>Change from key server to importing the Apache release keys, and change curls to be silent<commit_after>FROM java:8

ENV NIFI_VERSION=0.2.1 \
        NIFI_HOME=/opt/nifi

# Picked recommended mirror from Apache for the distribution.
# Import the Apache NiFi release keys
# Can't currently verify the SHA1 because the https://dist.apache.org/repos/dist/release/nifi/$NIFI_VERSION/nifi-$NIFI_VERSION-bin.tar.gz.sha1 is incorrectly truncated
RUN set -x \
        && curl -sSL https://dist.apache.org/repos/dist/release/nifi/KEYS -o /tmp/nifi-keys \
        && gpg --import /tmp/nifi-keys \
        && curl -sSL http://mirror.symnds.com/software/Apache/nifi/$NIFI_VERSION/nifi-$NIFI_VERSION-bin.tar.gz -o /tmp/nifi-bin.tar.gz \
        && curl -sSL https://dist.apache.org/repos/dist/release/nifi/$NIFI_VERSION/nifi-$NIFI_VERSION-bin.tar.gz.asc -o /tmp/nifi-bin.tar.gz.asc \
        && curl -sSL https://dist.apache.org/repos/dist/release/nifi/$NIFI_VERSION/nifi-$NIFI_VERSION-bin.tar.gz.md5 -o /tmp/nifi-bin.tar.gz.md5 \
        && gpg --verify /tmp/nifi-bin.tar.gz.asc /tmp/nifi-bin.tar.gz \
        && echo "$(cat /tmp/nifi-bin.tar.gz.md5) /tmp/nifi-bin.tar.gz" | md5sum -c - \
        && mkdir -p /opt/nifi \
        && tar -z -x -f /tmp/nifi-bin.tar.gz -C /opt/nifi --strip-components=1 \
        && rm /tmp/nifi-bin.tar.gz /tmp/nifi-bin.tar.gz.asc /tmp/nifi-bin.tar.gz.md5 \
        && rm /tmp/nifi-keys

# These are the volumes (in order) for the following:
# 1) user access and flow controller history
# 2) FlowFile attributes and current state in the system
# 3) content for all the FlowFiles in the system
{'fraction_non_alphanumeric': 0.1551047120418848, 'fraction_numerical': 0.00981675392670157, 'mean_word_length': 2.683132530120482, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 7, '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': '39708', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1148, 'n_words': 245}