<commit_before>directory '/storage/config' do
  owner 'docker'
  group 'docker'
  action :create
  recursive true
end

config = { 
  :node_name    => ENV['node_name'], 
  :cluster_name => ENV['cluster_name'] 
}

template '/storage/config/elasticsearch.yml' do
  source    'elasticsearch.yml.erb'
  variables config 
  owner     'docker'
  group     'docker'
  action    :create
end<commit_msg>Only create the config if it is missing<commit_after>directory '/storage/config' do
  owner 'docker'
  group 'docker'
  action :create
  recursive true
end

config = { 
  :node_name    => ENV['node_name'], 
  :cluster_name => ENV['cluster_name'] 
}

template '/storage/config/elasticsearch.yml' do
  source    'elasticsearch.yml.erb'
  variables config 
  owner     'docker'
  group     'docker'
  action    :create_if_missing
end
{'fraction_non_alphanumeric': 0.10935601458080195, 'fraction_numerical': 0.0, 'mean_word_length': 3.4782608695652173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2638607', 'n_tokens_mistral': 284, 'n_tokens_neox': 269, 'n_words': 68}