<commit_before># frozen_string_literal: true
module Hyrax
  module ManagesEmbargoes
    extend ActiveSupport::Concern

    included do
      attr_accessor :curation_concern
      helper_method :curation_concern
      load_and_authorize_resource class: ActiveFedora::Base, instance_name: :curation_concern
    end

    # This is an override of Hyrax::ApplicationController
    def deny_access(exception)<commit_msg>don't load_and_authorize a model when indexing Embargoes<commit_after># frozen_string_literal: true
module Hyrax
  module ManagesEmbargoes
    extend ActiveSupport::Concern

    included do
      attr_accessor :curation_concern
      helper_method :curation_concern
      load_and_authorize_resource class: ActiveFedora::Base, instance_name: :curation_concern, except: [:index]
    end

    # This is an override of Hyrax::ApplicationController
    def deny_access(exception)
{'fraction_non_alphanumeric': 0.05174353205849269, 'fraction_numerical': 0.0, 'mean_word_length': 4.894039735099338, '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': '5994926', 'n_tokens_mistral': 268, 'n_tokens_neox': 252, 'n_words': 65}