<commit_before>module Checklist::Pdf::HistoryContent

  def content(tex)
    fetcher = Checklist::Pdf::HistoryFetcher.new(@animalia_rel)
    kingdom(tex, fetcher, 'FAUNA')
    fetcher = Checklist::Pdf::HistoryFetcher.new(@plantae_rel)
    kingdom(tex, fetcher, 'FLORA')
  end

  def kingdom(tex, fetcher, kingdom_name)
    @last_seen_id = nil
    kingdom = fetcher.next
    return if kingdom.empty?

    tex << "\\cpart{#{kingdom_name}}\n"
    begin

      injector = Checklist::HigherTaxaInjector.new(
        results,
        {
          :skip_id => @last_seen_id,
          :expand_headers => true#,
          :header_ranks => (kingdom_name == 'FLORA' ? ['FAMILY'] : nil)
        }<commit_msg>fixed syntax error<commit_after>module Checklist::Pdf::HistoryContent

  def content(tex)
    fetcher = Checklist::Pdf::HistoryFetcher.new(@animalia_rel)
    kingdom(tex, fetcher, 'FAUNA')
    fetcher = Checklist::Pdf::HistoryFetcher.new(@plantae_rel)
    kingdom(tex, fetcher, 'FLORA')
  end

  def kingdom(tex, fetcher, kingdom_name)
    @last_seen_id = nil
    kingdom = fetcher.next
    return if kingdom.empty?

    tex << "\\cpart{#{kingdom_name}}\n"
    begin

      injector = Checklist::HigherTaxaInjector.new(
        results,
        {
          :skip_id => @last_seen_id,
          :expand_headers => true,
          :header_ranks => (kingdom_name == 'FLORA' ? ['FAMILY'] : nil)
        }
{'fraction_non_alphanumeric': 0.1339541547277937, 'fraction_numerical': 0.0, 'mean_word_length': 3.1209439528023597, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '3859379', 'n_tokens_mistral': 492, 'n_tokens_neox': 487, 'n_words': 84}