<commit_before>FROM ubuntu:precise
MAINTAINER <NAME> <<EMAIL>>

ENV DEBIAN_FRONTEND noninteractive

RUN locale-gen en_US.UTF-8

# Update OS apt sources
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" \
    > /etc/apt/sources.list

# Perform base image updates
RUN apt-get update
RUN apt-get -yq upgrade

# Install dependencies
RUN apt-get install -yq \
    build-essential \
    ca-certificates \
    openjdk-7-jre-headless \
    wget

# Download version 1.3.3 of LogStash
RUN cd /opt && \
    wget https://download.elasticsearch.org/logstash/logstash/logstash-1.3.3-flatjar.jar && \
    mv ./logstash-1.3.3-flatjar.jar ./logstash.jar

# Copy build files to container root
ADD . /app

# Kibana
EXPOSE 9292

# Syslog
EXPOSE 514

# Start LogStash
ENTRYPOINT ["/app/run.sh"]<commit_msg>Expose ES port and move entrypoint.<commit_after>FROM ubuntu:precise
MAINTAINER <NAME> <<EMAIL>>

ENV DEBIAN_FRONTEND noninteractive

RUN locale-gen en_US.UTF-8

# Update OS apt sources
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" \
    > /etc/apt/sources.list

# Perform base image updates
RUN apt-get update
RUN apt-get -yq upgrade

# Install dependencies
RUN apt-get install -yq \
    build-essential \
    ca-certificates \
    openjdk-7-jre-headless \
    wget

# Download version 1.3.3 of LogStash
RUN cd /opt && \
    wget https://download.elasticsearch.org/logstash/logstash/logstash-1.3.3-flatjar.jar && \
    mv ./logstash-1.3.3-flatjar.jar ./logstash.jar

# Copy build files to container root
RUN mkdir /app
ADD . /app

# Elasticsearch
EXPOSE 9200

# Kibana
EXPOSE 9292

# Syslog
EXPOSE 514

# Start LogStash
ENTRYPOINT ["/app/run.sh"]
{'fraction_non_alphanumeric': 0.10777385159010601, 'fraction_numerical': 0.023557126030624265, 'mean_word_length': 3.2688442211055277, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3451577', 'n_tokens_mistral': 645, 'n_tokens_neox': 608, 'n_words': 162}