<commit_before>require 'epub/ocf'
require 'epub/publication'
require 'epub/content_document'

module EPUB
  class Book
    attr_accessor :ocf, :package, :content_document

    # For enumerator
    def manifest
    end

    def spine
    end

    def toc
    end

    def each_content
    end

    def other_navigation
    end

    def rootfile
      @container.rootfile.full_path
    end
  end<commit_msg>Add tiny methods to EPUB::Book<commit_after>require 'epub/ocf'
require 'epub/publication'
require 'epub/content_document'

module EPUB
  class Book
    attr_accessor :ocf, :package, :content_document

    # For enumerator
    def manifest
    end

    def each_page_by_spine
      @package.spine.items
    end

    def toc
    end

    def each_content
    end

    def other_navigation
    end

    # Syntax suger
    def rootfile_path
      ocf.container.rootfile.full_path
    end
  end
{'fraction_non_alphanumeric': 0.053691275167785234, 'fraction_numerical': 0.0, 'mean_word_length': 2.58, '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': '2683348', 'n_tokens_mistral': 305, 'n_tokens_neox': 295, 'n_words': 78}