<commit_before>- toc = data['table-of-content']
- if toc && !toc.empty?
  .table-of-content
    - if module_hash['template']['config'] && module_hash['template']['config']['title']
      .lead = module_hash['template']['config']['title']
    .well.well-sm
      ul
        - toc.each do |item|
          == render 'module/bootstrap/table-of-content/nav.slim', { item: item }<commit_msg>do not show the table of content if only one header found<commit_after>- toc = data['table-of-content']
- if toc && !toc.empty? && toc.size > 1
  .table-of-content
    - if module_hash['template']['config'] && module_hash['template']['config']['title']
      .lead = module_hash['template']['config']['title']
    .well.well-sm
      ul
        - toc.each do |item|
          == render 'module/bootstrap/table-of-content/nav.slim', { item: item }
- else
  /! Table of content gets added only if more than 1, header element present on the page except H1
{'fraction_non_alphanumeric': 0.17484008528784648, 'fraction_numerical': 0.0031982942430703624, 'mean_word_length': 3.1919642857142856, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5214941', 'n_tokens_mistral': 300, 'n_tokens_neox': 291, 'n_words': 74}