<commit_before>module Adminable
  class Resource
    attr_reader :name, :model
    attr_writer :attributes

    def initialize(name)
      @name = name
      @model = name.classify.constantize

      load_extensions
    end

    def route
      @route ||= @model.name.underscore.pluralize.tr('/', '_')
    end

    def includes
      @includes ||= if attributes.association.present?
        attributes.association.map { |_, v| v.name }
      else
        false
      end
    end

    def attributes
      @attributes ||= Adminable::Attributes::Collection.new(@model)
    end
<commit_msg>Fix indentations for resource class<commit_after>module Adminable
  class Resource
    attr_reader :name, :model
    attr_writer :attributes

    def initialize(name)
      @name = name
      @model = name.classify.constantize

      load_extensions
    end

    def route
      @route ||= @model.name.underscore.pluralize.tr('/', '_')
    end

    def includes
      @includes ||= if attributes.association.present?
                      attributes.association.map { |_, v| v.name }
                    else
                      false
                    end
    end

    def attributes
      @attributes ||= Adminable::Attributes::Collection.new(@model)
    end

{'fraction_non_alphanumeric': 0.09424920127795527, 'fraction_numerical': 0.0, 'mean_word_length': 2.093827160493827, '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': '2941128', 'n_tokens_mistral': 356, 'n_tokens_neox': 339, 'n_words': 82}