<commit_before>ActiveAdmin.register UploadedFile do
  menu parent: I18n.t('active_admin.menu.resources', default: 'resources')

  config.per_page = 10

  permit_params :file

  index do
    selectable_column
    column(:file){|file| link_to(file[:file], admin_uploaded_file_path(file))}
    column t('activerecord.attributes.uploaded_file.url', default: 'url') do |file|
      link_to truncate(file.file.url, length: 50), file.file.url, target: '_blank'
    end
    column :created_at
    column(""){ |file| action_links(file) }
  end

  show(title: proc {|f| f[:file]}) do |file|
    attributes_table do
      row(:file) { file[:file] }
      row(t('activerecord.attributes.uploaded_file.url', default: 'url')) do
        link_to file.file.url, file.file.url, target: '_blank'
      end
      row :created_at
    end
    span link_to(t('active_admin.back'), admin_uploaded_files_path)
  end

  form html: { multipart: true } do |f|
    f.inputs title_for(f.resource) do
      f.input :file, hint: uploaded_file[:file]
    end
    f.actions
  end

  filter :file
  filter :created_at

end<commit_msg>localization fix<commit_after>ActiveAdmin.register UploadedFile do
  menu parent: I18n.t('active_admin.menu.resources')

  config.per_page = 10

  permit_params :file

  index do
    selectable_column
    column(:file){|file| link_to(file[:file], admin_uploaded_file_path(file))}
    column t('activerecord.attributes.uploaded_file.url') do |file|
      link_to truncate(file.file.url, length: 50), file.file.url, target: '_blank'
    end
    column :created_at
    column(""){ |file| action_links(file) }
  end

  show(title: proc {|f| f[:file]}) do |file|
    attributes_table do
      row(:file) { file[:file] }
      row(t('activerecord.attributes.uploaded_file.url')) do
        link_to file.file.url, file.file.url, target: '_blank'
      end
      row :created_at
    end
    span link_to(t('active_admin.back'), admin_uploaded_files_path)
  end

  form html: { multipart: true } do |f|
    f.inputs title_for(f.resource) do
      f.input :file, hint: uploaded_file[:file]
    end
    f.actions
  end

  filter :file
  filter :created_at

end
{'fraction_non_alphanumeric': 0.1265704979060028, 'fraction_numerical': 0.005583992554676594, 'mean_word_length': 3.594017094017094, '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': '2281675', 'n_tokens_mistral': 770, 'n_tokens_neox': 737, 'n_words': 166}