<commit_before>input = <<eos
eos

PREFIX = 'prometheus_alert_manager'

puts '############################################################'
puts '# Auto generated'
puts '############################################################'
input.each_line do |line|
  line = line.chomp
  next if line.empty?
  if line.start_with?('-')
    argument = line[1..line.size-1].split[0]
    puts %Q(#{argument}: "{{ #{PREFIX}_#{argument.gsub('.', '__').gsub('-', '_')} }}")
  else
    # puts "# #{line}"
  end
end<commit_msg>Update parse_config script to multi dimensional array<commit_after>input = <<eos
eos

PREFIX = 'prometheus_alert_manager'

puts '############################################################'
puts '# Auto generated'
puts '############################################################'
input.each_line do |line|
  line = line.chomp
  next if line.empty?
  if line.start_with?('-')
    argument = line[1..line.size-1].split[0]
    puts %Q(  - ['#{argument}', "{{ #{PREFIX}_#{argument.gsub('.', '__').gsub('-', '_')} }}"])
  else
    # puts "# #{line}"
  end
end
{'fraction_non_alphanumeric': 0.3874296435272045, 'fraction_numerical': 0.005628517823639775, 'mean_word_length': 5.239766081871345, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2525818', 'n_tokens_mistral': 338, 'n_tokens_neox': 337, 'n_words': 68}