<commit_before>name = "<%= name %>/<%= index %>"
data_dir = "/var/vcap/store/nomad-client"
log_level = "<%= p('nomad.log_level') %>"
enable_syslog = true

leave_on_terminate = <%= p('nomad.leave_on_terminate') %>
bind_addr = "0.0.0.0"

advertise {
  http = "<%= spec.address %>:4646"
  rpc = "<%= spec.address %>:4647"
  serf = "<%= spec.address %>:4648"
}

client {
  enabled = true
  no_host_uuid = true
  servers = <%= link('nomad_servers').instances.collect { |server| server.address } %>
  options {
    docker.endpoint = "unix:///var/vcap/sys/run/docker/docker.sock"
    docker.cleanup.image = "<%= p('nomad.docker.cleanup_image') %>"
    <% if p('nomad.docker.privileged') %>
    docker.privileged.enabled = true
    <% end %>
  }

  <% if p('nomad.node_class', nil) %>
  node_class = "<%= p('nomad.node_class') %>"
  <% end %>

  <% if_p('nomad.meta') do |meta| %>
  meta {
    <% meta.each do |key, value| %>
    "<%= key %>" = "<%= value %>"
    <% end %>
  }
  <% end %>
}<commit_msg>adding job name to meta as default<commit_after>name = "<%= name %>/<%= index %>"
data_dir = "/var/vcap/store/nomad-client"
log_level = "<%= p('nomad.log_level') %>"
enable_syslog = true

leave_on_terminate = <%= p('nomad.leave_on_terminate') %>
bind_addr = "0.0.0.0"

advertise {
  http = "<%= spec.address %>:4646"
  rpc = "<%= spec.address %>:4647"
  serf = "<%= spec.address %>:4648"
}

client {
  enabled = true
  no_host_uuid = true
  servers = <%= link('nomad_servers').instances.collect { |server| server.address } %>
  options {
    docker.endpoint = "unix:///var/vcap/sys/run/docker/docker.sock"
    docker.cleanup.image = "<%= p('nomad.docker.cleanup_image') %>"
    <% if p('nomad.docker.privileged') %>
    docker.privileged.enabled = true
    <% end %>
  }

  <% if p('nomad.node_class', nil) %>
  node_class = "<%= p('nomad.node_class') %>"
  <% end %>

  meta {
    "node_name" = "<%= spec.job.name %>/<%= spec.index %>"
    <% if_p('nomad.meta') do |meta| %>
    <% meta.each do |key, value| %>
    "<%= key %>" = "<%= value %>"
    <% end %>
    <% end %>
  }
}
{'fraction_non_alphanumeric': 0.22999035679845709, 'fraction_numerical': 0.015429122468659595, 'mean_word_length': 3.304979253112033, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6123846', 'n_tokens_mistral': 897, 'n_tokens_neox': 803, 'n_words': 129}