<commit_before>if defined?(ActiveAdmin)
  ActiveAdmin.register Lentil::Image do
    actions :index, :show

    config.batch_actions = false
    config.per_page = 10

    filter :state, :as => :select, :collection => proc { Lentil::Image::States }
    filter :user_user_name, :as => :string, :label => "Username"
    filter :user_full_name, :as => :string, :label => "<NAME>"
    filter :staff_like, :as => :select
    filter :do_not_request_donation, :as => :select
    filter :win_pct
    filter :popular_score, :label => "Score"
    filter :description
    filter :updated_at
    filter :url, :label => "Service URL"
    filter :id

    action_item :only => :show do
      link_to('Update Image', update_image_admin_lentil_image_path(lentil_image))
    end<commit_msg>add tags filter to image index in admin<commit_after>if defined?(ActiveAdmin)
  ActiveAdmin.register Lentil::Image do
    actions :index, :show

    config.batch_actions = false
    config.per_page = 10

    filter :state, :as => :select, :collection => proc { Lentil::Image::States }
    filter :user_user_name, :as => :string, :label => "Username"
    filter :user_full_name, :as => :string, :label => "<NAME>"
    filter :staff_like, :as => :select
    filter :do_not_request_donation, :as => :select
    filter :win_pct
    filter :popular_score, :label => "Score"
    filter :description
    filter :updated_at
    filter :tags_name, :as => :string
    filter :url, :label => "Service URL"
    filter :id

    action_item :only => :show do
      link_to('Update Image', update_image_admin_lentil_image_path(lentil_image))
    end
{'fraction_non_alphanumeric': 0.12718204488778054, 'fraction_numerical': 0.0024937655860349127, 'mean_word_length': 3.878419452887538, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 28, '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': '5186251', 'n_tokens_mistral': 527, 'n_tokens_neox': 516, 'n_words': 138}