<commit_before>module Gollum
  class Page
    def self.cname(name, char_white_sub = '-', char_other_sub = '-')
      name.respond_to?(:gsub) ?
        name.gsub(%r{\s}, char_white_sub).gsub(%r{[/<>+]}, char_other_sub) :
        ''
    end
  end
end
<commit_msg>Only define Gollum::Page.cname if not defined already<commit_after>module Gollum
  class Page
    unless Page.respond_to?(:cname)
      def self.cname(name, char_white_sub = '-', char_other_sub = '-')
        name.respond_to?(:gsub) ? name.gsub(%r{\s}, char_white_sub).gsub(%r{[/<>+]}, char_other_sub) : ''
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.16778523489932887, 'fraction_numerical': 0.0, 'mean_word_length': 3.3260869565217392, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6586788', 'n_tokens_mistral': 230, 'n_tokens_neox': 227, 'n_words': 39}