<commit_before>module ActiveAdminImportable
  module DSL
    def active_admin_importable(options = {}, &block)

      action_item :only => :index do
        link_to "Import #{active_admin_config.resource_name.to_s.pluralize}", :action => 'upload_csv'
      end

      collection_action :upload_csv do
        render "admin/csv/upload_csv"
      end

      collection_action :import_csv, :method => :post do
        role = resources_configuration[:self][:role]<commit_msg>Fix action_item deprecation warning<commit_after>module ActiveAdminImportable
  module DSL
    def active_admin_importable(options = {}, &block)

      action_item :edit, :only => :index do
        link_to "Import #{active_admin_config.resource_name.to_s.pluralize}", :action => 'upload_csv'
      end

      collection_action :upload_csv do
        render "admin/csv/upload_csv"
      end

      collection_action :import_csv, :method => :post do
        role = resources_configuration[:self][:role]
{'fraction_non_alphanumeric': 0.09680741503604531, 'fraction_numerical': 0.0, 'mean_word_length': 3.6066350710900474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3609707', 'n_tokens_mistral': 288, 'n_tokens_neox': 278, 'n_words': 63}