<commit_before>module Whitehall::DocumentFilter
  class Result
    ACCESSORS = %w{title description indexable_content attachments
      format display_type link id search_format_types
      relevant_to_local_government presentation_format
      humanized_format}
    ACCESSORS.each do |attribute_name|
      define_method attribute_name.to_sym do
        @doc[attribute_name.to_s]
      end
    end

    def initialize(doc)
      @doc = doc
    end

    def type
      format
    end

    def public_timestamp
      Time.zone.parse(@doc['public_timestamp'])
    end

    def part_of_published_collection?
      published_document_collections.any?<commit_msg>Remove unused accessors from search results.<commit_after>module Whitehall::DocumentFilter
  class Result
    ACCESSORS = %w{title description indexable_content attachments
      format display_type link id search_format_types
      relevant_to_local_government}
    ACCESSORS.each do |attribute_name|
      define_method attribute_name.to_sym do
        @doc[attribute_name.to_s]
      end
    end

    def initialize(doc)
      @doc = doc
    end

    def type
      format
    end

    def public_timestamp
      Time.zone.parse(@doc['public_timestamp'])
    end

    def part_of_published_collection?
      published_document_collections.any?
{'fraction_non_alphanumeric': 0.05138036809815951, 'fraction_numerical': 0.0, 'mean_word_length': 3.169329073482428, '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': '2543302', 'n_tokens_mistral': 374, 'n_tokens_neox': 357, 'n_words': 86}