<commit_before>RailsAdmin.config do |config|
  ### Popular gems integration
  config.browser_validations = false

  ## == Devise ==
  # config.authenticate_with do
  #   warden.authenticate! scope: :user
  # end
  # config.current_user_method(&:current_user)

  ## == Cancan ==
  # config.authorize_with :cancan

  ## == Pundit ==
  # config.authorize_with :pundit

  ## == PaperTrail ==
  # config.audit_with :paper_trail, 'User', 'PaperTrail::Version' # PaperTrail >= 3.0.0

  ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration

  config.actions do
    dashboard                     # mandatory
    index                         # mandatory
    new do
      except Viewable.models + Form.structure_models + %w[
        UniqueKey
        Setting
        Rich::RichFile
        Form::Row
      ]
    end
    export do
      except Viewable.models + Form.structure_models + %w[
        UniqueKey
      ]
    end
    bulk_delete do
      except Viewable.models + Form.structure_models + %w[
        UniqueKey
        Setting
      ]
    end
    show do
      except Viewable.models + Form.structure_models + %w[
        UniqueKey
      ]
    end
    edit do
      except %w[
        UniqueKey
      ]
    end
    delete do
      except Form.structure_models + %w[
        UniqueKey
        Setting
      ]
    end
    show_in_app

    ## With an audit adapter, you can add:
    # history_index
    # history_show
  end

  config.model 'Rich::RichFile' do
    navigation_label I18n.t('rich.file.navigation')
    label I18n.t('rich.file.one')
    label_plural I18n.t('rich.file.other')

    configure :rich_file, :jcrop

    list do
      field :rich_file
      field :rich_file_file_name
      field :simplified_type
      field :owner_type
    end

    show do
      field :rich_file
      field :owner_type
    end

    edit do
      field :rich_file do<commit_msg>configure Rich::RichFile navigation object name within initializer<commit_after>RailsAdmin.config do |config|
  ### Popular gems integration
  config.browser_validations = false

  ## == Devise ==
  # config.authenticate_with do
  #   warden.authenticate! scope: :user
  # end
  # config.current_user_method(&:current_user)

  ## == Cancan ==
  # config.authorize_with :cancan

  ## == Pundit ==
  # config.authorize_with :pundit

  ## == PaperTrail ==
  # config.audit_with :paper_trail, 'User', 'PaperTrail::Version' # PaperTrail >= 3.0.0

  ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration

  config.actions do
    dashboard                     # mandatory
    index                         # mandatory
    new do
      except Viewable.models + Form.structure_models + %w[
        UniqueKey
        Setting
        Rich::RichFile
        Form::Row
      ]
    end
    export do
      except Viewable.models + Form.structure_models + %w[
        UniqueKey
      ]
    end
    bulk_delete do
      except Viewable.models + Form.structure_models + %w[
        UniqueKey
        Setting
      ]
    end
    show do
      except Viewable.models + Form.structure_models + %w[
        UniqueKey
      ]
    end
    edit do
      except %w[
        UniqueKey
      ]
    end
    delete do
      except Form.structure_models + %w[
        UniqueKey
        Setting
      ]
    end
    show_in_app

    ## With an audit adapter, you can add:
    # history_index
    # history_show
  end

  config.model 'Rich::RichFile' do
    navigation_label I18n.t('rich.file.navigation')
    label I18n.t('rich.file.one')
    label_plural I18n.t('rich.file.other')

    object_label_method do
      :name
    end

    configure :rich_file, :jcrop

    list do
      field :rich_file
      field :rich_file_file_name
      field :simplified_type
      field :owner_type
    end

    show do
      field :rich_file
      field :owner_type
    end

    edit do
      field :rich_file do
{'fraction_non_alphanumeric': 0.08748387096774193, 'fraction_numerical': 0.00464516129032258, 'mean_word_length': 2.0761904761904764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '2144970', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1195, 'n_words': 277}