<commit_before>ActiveAdmin.register GroupRequest do
  scope :awaiting_approval, :default => true
  scope :approved
  scope :ignored
  scope :marked_as_spam

  index do
    column :id
    column :name
    column :description
    column "Can Contribute", :sortable => :cannot_contribute do |group_request|
      !group_request.cannot_contribute
    end
    column :expected_size
    column :max_size
    column "Approve" do |group_request|
      link = ""
      unless group_request.approved?
        link += link_to "Approve",
               approve_admin_group_request_path(group_request.id),
               :method => :put, :id => "approve_group_request_#{group_request.id}"
      end
      if group_request.awaiting_approval? or group_request.marked_as_spam?
        link += " | "
        link += link_to "Ignore",
                ignore_admin_group_request_path(group_request.id),
                :method => :put, :id => "ignore_group_request_#{group_request.id}"
      end
      if group_request.awaiting_approval? or group_request.ignored?
        link += " | "<commit_msg>Show admin_email on GroupRequests index page.<commit_after>ActiveAdmin.register GroupRequest do
  scope :awaiting_approval, :default => true
  scope :approved
  scope :ignored
  scope :marked_as_spam

  index do
    column :id
    column :name
    column :description
    column "Can Contribute", :sortable => :cannot_contribute do |group_request|
      !group_request.cannot_contribute
    end
    column :expected_size
    column :max_size
    column :admin_email
    column "Approve" do |group_request|
      link = ""
      unless group_request.approved?
        link += link_to "Approve",
               approve_admin_group_request_path(group_request.id),
               :method => :put, :id => "approve_group_request_#{group_request.id}"
      end
      if group_request.awaiting_approval? or group_request.marked_as_spam?
        link += " | "
        link += link_to "Ignore",
                ignore_admin_group_request_path(group_request.id),
                :method => :put, :id => "ignore_group_request_#{group_request.id}"
      end
      if group_request.awaiting_approval? or group_request.ignored?
        link += " | "
{'fraction_non_alphanumeric': 0.0922242314647378, 'fraction_numerical': 0.0, 'mean_word_length': 2.9168141592920356, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '91908', 'n_tokens_mistral': 677, 'n_tokens_neox': 669, 'n_words': 145}