<commit_before>FROM quay.io/aptible/ubuntu:14.04

# Install NGiNX.
RUN apt-get update
RUN apt-get install -y software-properties-common \
    python-software-properties && \
    add-apt-repository -y ppa:nginx/stable && apt-get update && \
    apt-get -y install curl ucspi-tcp apache2-utils nginx ruby

# Download Kibana 3.1.2, extract into /opt/kibana-3.1.2.
RUN curl -O https://download.elasticsearch.org/kibana/kibana/kibana-3.1.2.tar.gz && \
    echo "a59ea4abb018a7ed22b3bc1c3bcc6944b7009dc4  kibana-3.1.2.tar.gz" | sha1sum -c - && \
    tar zxf kibana-3.1.2.tar.gz -C /opt

# Overwrite default nginx config with our config.
RUN rm /etc/nginx/sites-enabled/*
ADD templates/sites-enabled /
RUN rm /opt/kibana-3.1.2/config.js
ADD templates/opt/kibana-3.1.2 /

# Add script that starts NGiNX in front of Kibana and tails the NGiNX access/error logs.
ADD bin .
RUN chmod 700 ./run-kibana.sh

# Run tests.
ADD test /tmp/test
RUN bats /tmp/test
<commit_msg>Run apt-get updates and installs in the same command to avoid caching package urls.<commit_after>FROM quay.io/aptible/ubuntu:14.04

# Install NGiNX.
RUN apt-get update && \
    apt-get install -y software-properties-common \
    python-software-properties && \
    add-apt-repository -y ppa:nginx/stable && apt-get update && \
    apt-get -y install curl ucspi-tcp apache2-utils nginx ruby

# Download Kibana 3.1.2, extract into /opt/kibana-3.1.2.
RUN curl -O https://download.elasticsearch.org/kibana/kibana/kibana-3.1.2.tar.gz && \
    echo "a59ea4abb018a7ed22b3bc1c3bcc6944b7009dc4  kibana-3.1.2.tar.gz" | sha1sum -c - && \
    tar zxf kibana-3.1.2.tar.gz -C /opt

# Overwrite default nginx config with our config.
RUN rm /etc/nginx/sites-enabled/*
ADD templates/sites-enabled /
RUN rm /opt/kibana-3.1.2/config.js
ADD templates/opt/kibana-3.1.2 /

# Add script that starts NGiNX in front of Kibana and tails the NGiNX access/error logs.
ADD bin .
RUN chmod 700 ./run-kibana.sh

# Run tests.
ADD test /tmp/test
RUN bats /tmp/test

{'fraction_non_alphanumeric': 0.12418300653594772, 'fraction_numerical': 0.05128205128205128, 'mean_word_length': 3.0778688524590163, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2160401', 'n_tokens_mistral': 835, 'n_tokens_neox': 777, 'n_words': 196}