<commit_before>module Sufia
  module CurationConcernController
    extend ActiveSupport::Concern
    include Blacklight::Base
    include Blacklight::AccessControls::Catalog

    included do
      copy_blacklight_config_from(::CatalogController)
      helper CurationConcerns::AbilityHelper

      class_attribute :_curation_concern_type, :show_presenter, :work_form_service, :search_builder_class
      self.show_presenter = Sufia::WorkShowPresenter
      self.work_form_service = Sufia::WorkFormService
      self.search_builder_class = WorkSearchBuilder
      attr_accessor :curation_concern
      helper_method :curation_concern, :contextual_path
    end

    module ClassMethods
      def curation_concern_type=(curation_concern_type)
        load_and_authorize_resource class: curation_concern_type, instance_name: :curation_concern, except: [:show, :file_manager]
        self._curation_concern_type = curation_concern_type
      end<commit_msg>It is unnecessary to include AbilityHelper<commit_after>module Sufia
  module CurationConcernController
    extend ActiveSupport::Concern
    include Blacklight::Base
    include Blacklight::AccessControls::Catalog

    included do
      copy_blacklight_config_from(::CatalogController)

      class_attribute :_curation_concern_type, :show_presenter, :work_form_service, :search_builder_class
      self.show_presenter = Sufia::WorkShowPresenter
      self.work_form_service = Sufia::WorkFormService
      self.search_builder_class = WorkSearchBuilder
      attr_accessor :curation_concern
      helper_method :curation_concern, :contextual_path
    end

    module ClassMethods
      def curation_concern_type=(curation_concern_type)
        load_and_authorize_resource class: curation_concern_type, instance_name: :curation_concern, except: [:show, :file_manager]
        self._curation_concern_type = curation_concern_type
      end
{'fraction_non_alphanumeric': 0.05614406779661017, 'fraction_numerical': 0.0, 'mean_word_length': 4.977848101265823, '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': '5561999', 'n_tokens_mistral': 561, 'n_tokens_neox': 553, 'n_words': 96}