<commit_before>#!/bin/bash

export CLUSTER_NAME=${CLUSTER_NAME:=elasticsearch}
export NODE_NAME=${NODE_NAME:=${HOSTNAME}}
export PATH_DATA=${PATH_DATA:=/data}
export ES_HEAP_SIZE=${ES_HEAP_SIZE:=450m}
export INDEX_AUTO_EXPAND_REPLICAS=${INDEX_AUTO_EXPAND_REPLICAS:=false}
export NODE_MASTER=${NODE_MASTER:=true}
export NODE_DATA=${NODE_DATA:=true}
export HTTP_ENABLE=${HTTP_ENABLE:=true}
export KUBERNETES_SERVICE=${KUBERNETES_SERVICE:=elasticsearch-master}
export KUBERNETES_NAMESPACE=${KUBERNETES_NAMESPACE:=default}

export ENABLE_TRANSPORT_SSL=${ENABLE_TRANSPORT_SSL:=false}

su elasticsearch -c 'exec /elasticsearch/bin/elasticsearch'<commit_msg>Chown /data directory<commit_after>#!/bin/bash

export CLUSTER_NAME=${CLUSTER_NAME:=elasticsearch}
export NODE_NAME=${NODE_NAME:=${HOSTNAME}}
export PATH_DATA=${PATH_DATA:=/data}
export ES_HEAP_SIZE=${ES_HEAP_SIZE:=450m}
export INDEX_AUTO_EXPAND_REPLICAS=${INDEX_AUTO_EXPAND_REPLICAS:=false}
export NODE_MASTER=${NODE_MASTER:=true}
export NODE_DATA=${NODE_DATA:=true}
export HTTP_ENABLE=${HTTP_ENABLE:=true}
export KUBERNETES_SERVICE=${KUBERNETES_SERVICE:=elasticsearch-master}
export KUBERNETES_NAMESPACE=${KUBERNETES_NAMESPACE:=default}

export ENABLE_TRANSPORT_SSL=${ENABLE_TRANSPORT_SSL:=false}

chown -R elasticsearch:elasticsearch /data
su elasticsearch -c 'exec /elasticsearch/bin/elasticsearch'
{'fraction_non_alphanumeric': 0.1271249076127125, 'fraction_numerical': 0.004434589800443459, 'mean_word_length': 14.744186046511627, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '2412099', 'n_tokens_mistral': 502, 'n_tokens_neox': 494, 'n_words': 61}