<commit_before>FROM python:2.7

# Download filebeat deb and install
RUN curl -L -O https://download.elastic.co/beats/filebeat/filebeat_1.0.1_amd64.deb
RUN dpkg -i filebeat_1.0.1_amd64.deb

# Copy in filebeat config.
COPY filebeat.yml /etc/filebeat/filebeat.yml

# Clone the fake log generator and install python deps.
RUN git clone https://github.com/kiritbasu/Fake-Apache-Log-Generator/ app
RUN pip install numpy pytz fake-factory

# Where we will store the apache log files.
RUN mkdir /logs

# Install supervisor, yes I know this is bad in the docker world.
RUN apt-get update && apt-get install -y supervisor

# Copy in supervisor config.
COPY supervisord.conf /etc/supervisor/supervisord.conf

# Supervisor needs this to run<commit_msg>using local copy of python log gen script rather than from git<commit_after>FROM python:2.7

# Download filebeat deb and install
RUN curl -L -O https://download.elastic.co/beats/filebeat/filebeat_1.0.1_amd64.deb
RUN dpkg -i filebeat_1.0.1_amd64.deb

# Copy in filebeat config.
COPY filebeat.yml /etc/filebeat/filebeat.yml

# Clone the fake log generator and install python deps.
RUN mkdir /app
COPY apache-fake-log-gen.py /app/apache-fake-log-gen.py
RUN pip install numpy pytz fake-factory

# Where we will store the apache log files.
RUN mkdir /logs

# Install supervisor, yes I know this is bad in the docker world.
RUN apt-get update && apt-get install -y supervisor

# Copy in supervisor config.
COPY supervisord.conf /etc/supervisor/supervisord.conf

# Supervisor needs this to run
{'fraction_non_alphanumeric': 0.08191349934469201, 'fraction_numerical': 0.015727391874180863, 'mean_word_length': 4.00655737704918, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '325293', 'n_tokens_mistral': 518, 'n_tokens_neox': 487, 'n_words': 181}