<commit_before>#
# Elasticsearch Dockerfile
#
# https://github.com/dockerfile/elasticsearch
#

# Pull base image.
FROM dockerfile/java:oracle-java8

ENV ES_PKG_NAME elasticsearch-1.5.0

ADD https://github.com/hashicorp/consul-template/releases/download/v0.8.0/consul-template_0.8.0_linux_amd64.tar.gz  /consul-template.tar.gz
RUN cd / && tar xzvf /consul-template.tar.gz --strip-components=1 && rm /consul-template.tar.gz

ADD http://stedolan.github.io/jq/download/linux64/jq /jq
RUN chmod +x /jq

# Install Elasticsearch.
RUN \
  cd / && \
  curl -s https://download.elasticsearch.org/elasticsearch/elasticsearch/$ES_PKG_NAME.tar.gz | \
  tar xvzf - && \
  mv /$ES_PKG_NAME /elasticsearch

# Define mountable directories.
VOLUME ["/data"]

# Mount elasticsearch.yml config
ADD config/elasticsearch.yml /elasticsearch/config/elasticsearch.yml
ADD /es-unicast.ctmpl /
ADD /start-es.sh /
RUN chmod +x /start-es.sh

# Define working directory.
WORKDIR /data
<commit_msg>Added cluster plugin (ES head)<commit_after>#
# Elasticsearch Dockerfile
#
# https://github.com/dockerfile/elasticsearch
#

# Pull base image.
FROM dockerfile/java:oracle-java8

ENV ES_PKG_NAME elasticsearch-1.5.0

ADD https://github.com/hashicorp/consul-template/releases/download/v0.8.0/consul-template_0.8.0_linux_amd64.tar.gz  /consul-template.tar.gz
RUN cd / && tar xzvf /consul-template.tar.gz --strip-components=1 && rm /consul-template.tar.gz

ADD http://stedolan.github.io/jq/download/linux64/jq /jq
RUN chmod +x /jq

# Install Elasticsearch.
RUN \
  cd / && \
  curl -s https://download.elasticsearch.org/elasticsearch/elasticsearch/$ES_PKG_NAME.tar.gz | \
  tar xvzf - && \
  mv /$ES_PKG_NAME /elasticsearch

RUN /elasticsearch/bin/plugin -install mobz/elasticsearch-head

# Define mountable directories.
VOLUME ["/data"]

# Mount elasticsearch.yml config
ADD config/elasticsearch.yml /elasticsearch/config/elasticsearch.yml
ADD /es-unicast.ctmpl /
ADD /start-es.sh /
RUN chmod +x /start-es.sh

# Define working directory.
WORKDIR /data

{'fraction_non_alphanumeric': 0.13399503722084366, 'fraction_numerical': 0.01488833746898263, 'mean_word_length': 3.8229665071770333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3648164', 'n_tokens_mistral': 744, 'n_tokens_neox': 730, 'n_words': 140}