<commit_before>class CountrySortCriteria

  def initialize(country_priority)
    @country_priority = country_priority
  end

  def to_proc
    proc do |chapter|
      if(@country_priority.include? chapter.country)
        "#{@country_priority.index(chapter.country)} #{chapter.name}"
      else
        chapter.country
      end
    end
  end

end<commit_msg>Fix CountrySortCriteria to properly sort chapters by name in non-priority countries<commit_after>class CountrySortCriteria

  def initialize(country_priority)
    @country_priority = country_priority
  end

  def to_proc
    proc do |chapter|
      if(@country_priority.include? chapter.country)
        "#{@country_priority.index(chapter.country)} #{chapter.name}"
      else
        "#{chapter.country} #{chapter.name}"
      end
    end
  end

end
{'fraction_non_alphanumeric': 0.0865265760197775, 'fraction_numerical': 0.0, 'mean_word_length': 3.402173913043478, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6326157', 'n_tokens_mistral': 237, 'n_tokens_neox': 227, 'n_words': 54}