<commit_before>module Bot2ch
  class Post
    attr_accessor :name, :email, :date, :body, :index, :id, :thread

    def url
      "#{self.thread.url}/#{self.index}"
    end

    def plain
      "#{index} : #{name}(#{email}) : #{date} ID:#{id}\n#{body}"
    end

    def responses
      @responses ||= parse_response
    end

    def has_response?
      !responses.empty?
    end

    private

    def parse_response
      self.thread.posts.select do |post|
        post.body =~ /&gt;&gt;#{self.index}/
      end
    end
  end
end
<commit_msg>change responses to replies<commit_after>module Bot2ch
  class Post
    attr_accessor :name, :email, :date, :body, :index, :id, :thread

    def url
      "#{self.thread.url}/#{self.index}"
    end

    def plain
      "#{index} : #{name}(#{email}) : #{date} ID:#{id}\n#{body}"
    end

    def replies
      @replies ||= parse_replies
    end

    def has_replies?
      !replies.empty?
    end

    private

    def parse_replies
      self.thread.posts.select do |post|
        post.body =~ /&gt;&gt;#{self.index}/
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.14719411223551057, 'fraction_numerical': 0.0018399264029438822, 'mean_word_length': 2.296969696969697, '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': '3697081', 'n_tokens_mistral': 389, 'n_tokens_neox': 391, 'n_words': 91}