<commit_before>require 'optparse'
require 'fileutils'
require 'yaml'
require 'digest'
require 'ostruct'
require 'erb'

require 'builder'
require 'kramdown'
require 'zip/zip'

require 'rpub/version'
require 'rpub/subclass_tracker'
require 'rpub/commander'
require 'rpub/compilation_helpers'
require 'rpub/commands/base'
require 'rpub/commands/main'
require 'rpub/commands/compile'
require 'rpub/commands/clean'
require 'rpub/commands/preview'
require 'rpub/commands/package'
require 'rpub/commands/help'
require 'rpub/hash_delegation'
require 'rpub/book'
require 'rpub/chapter'
require 'rpub/compressor'
require 'rpub/epub'
require 'rpub/xml_file'
require 'rpub/epub/container'
require 'rpub/epub/toc'
require 'rpub/epub/content'
require 'rpub/epub/html_toc'
require 'rpub/epub/cover'

module Rpub
  GEM_ROOT = File.expand_path('../../', __FILE__)

  NoConfiguration = Class.new(StandardError)

  class InvalidSubcommand < StandardError
    def initialize(subcommand)
      super "Unknown subcommand: #{subcommand}"
    end
  end

  def self.support_file(path)
    File.join(GEM_ROOT, 'support', path)
  end

  KRAMDOWN_OPTIONS = {
    :auto_ids => false,
    :coderay_line_numbers => nil
  }
end<commit_msg>Do use auto IDs for TOC<commit_after>require 'optparse'
require 'fileutils'
require 'yaml'
require 'digest'
require 'ostruct'
require 'erb'

require 'builder'
require 'kramdown'
require 'zip/zip'

require 'rpub/version'
require 'rpub/subclass_tracker'
require 'rpub/commander'
require 'rpub/compilation_helpers'
require 'rpub/commands/base'
require 'rpub/commands/main'
require 'rpub/commands/compile'
require 'rpub/commands/clean'
require 'rpub/commands/preview'
require 'rpub/commands/package'
require 'rpub/commands/help'
require 'rpub/hash_delegation'
require 'rpub/book'
require 'rpub/chapter'
require 'rpub/compressor'
require 'rpub/epub'
require 'rpub/xml_file'
require 'rpub/epub/container'
require 'rpub/epub/toc'
require 'rpub/epub/content'
require 'rpub/epub/html_toc'
require 'rpub/epub/cover'

module Rpub
  GEM_ROOT = File.expand_path('../../', __FILE__)

  NoConfiguration = Class.new(StandardError)

  class InvalidSubcommand < StandardError
    def initialize(subcommand)
      super "Unknown subcommand: #{subcommand}"
    end
  end

  def self.support_file(path)
    File.join(GEM_ROOT, 'support', path)
  end

  KRAMDOWN_OPTIONS = {
    :coderay_line_numbers => nil
  }
end
{'fraction_non_alphanumeric': 0.12, 'fraction_numerical': 0.0, 'mean_word_length': 5.236363636363636, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6287998', 'n_tokens_mistral': 859, 'n_tokens_neox': 841, 'n_words': 186}