<commit_before>module Emcee
  # Document is responsible for interacting with individual html nodes that
  # make up the parsed document.
  class Node
    def initialize(parser_node)
      @parser_node = parser_node
    end

    def href
      @parser_node.attribute("href")
    end

    def src
      @parser_node.attribute("src")
    end

    def remove
      @parser_node.remove
    end

    def replace(new_node)
      @parser_node.replace(new_node.parser_node)
    end

    protected

    attr_reader :parser_node
  end
end
<commit_msg>Declare `parser_node` attr_reader at top of class<commit_after>module Emcee
  # Document is responsible for interacting with individual html nodes that
  # make up the parsed document.
  class Node
    attr_reader :parser_node
    protected :parser_node

    def initialize(parser_node)
      @parser_node = parser_node
    end

    def href
      @parser_node.attribute("href")
    end

    def src
      @parser_node.attribute("src")
    end

    def remove
      @parser_node.remove
    end

    def replace(new_node)
      @parser_node.replace(new_node.parser_node)
    end
  end
end

{'fraction_non_alphanumeric': 0.05939716312056738, 'fraction_numerical': 0.0, 'mean_word_length': 2.7759197324414715, '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': '5663492', 'n_tokens_mistral': 347, 'n_tokens_neox': 333, 'n_words': 97}