<commit_before>ActiveAdmin.register GroupRequest do
  actions :all, :except => [:new]
  scope :waiting, :default => true
  scope :starred
  scope :unverified
  scope :approved
  scope :all

  filter :name
  filter :description
  filter :admin_email
  filter :admin_name
  filter :high_touch

  index do
    column :id
    column :name
    column :description
    column :contact do |gr|
      "#{gr.admin_name} &lt;#{gr.admin_email}&gt;".html_safe
    end
    column :admin_notes
    column 'Size', :expected_size
    column 'Subscription' do |gr|
      gr.cannot_contribute? == false
    end
    column :created_at, sortable: :created_at do |gr|
      gr.created_at.to_date
    end
    column :status
    column :actions do |gr|
      span do
        links = []
        unless gr.approved?
          links << link_to('Approve', approve_and_send_form_admin_group_request_path(gr))
        end
        links << link_to('Star', set_high_touch_admin_group_request_path(gr), :method => :put) unless gr.high_touch?
        links << link_to('Un-star', ungset_high_touch_admin_group_request_path(gr), :method => :put) if gr.high_touch?
        links << link_to('Edit', edit_admin_group_request_path(gr))
        links << link_to('Destroy', admin_group_request_path(gr), method: :delete)
        links.join(' ').html_safe
      end
    end
  end

  form partial: 'form'

  member_action :set_high_touch, :method => :put do
    @group_request = GroupRequest.find(params[:id])
    @group_request.update_attribute(:high_touch, true)
    redirect_to admin_group_requests_path
  end

  member_action :unset_high_touch, :method => :put do
    @group_request = GroupRequest.find(params[:id])
    @group_request.update_attribute(:high_touch, false)
    redirect_to admin_group_requests_path
  end
<commit_msg>fix spelling mistake that broke admin panel<commit_after>ActiveAdmin.register GroupRequest do
  actions :all, :except => [:new]
  scope :waiting, :default => true
  scope :starred
  scope :unverified
  scope :approved
  scope :all

  filter :name
  filter :description
  filter :admin_email
  filter :admin_name
  filter :high_touch

  index do
    column :id
    column :name
    column :description
    column :contact do |gr|
      "#{gr.admin_name} &lt;#{gr.admin_email}&gt;".html_safe
    end
    column :admin_notes
    column 'Size', :expected_size
    column 'Subscription' do |gr|
      gr.cannot_contribute? == false
    end
    column :created_at, sortable: :created_at do |gr|
      gr.created_at.to_date
    end
    column :status
    column :actions do |gr|
      span do
        links = []
        unless gr.approved?
          links << link_to('Approve', approve_and_send_form_admin_group_request_path(gr))
        end
        links << link_to('Star', set_high_touch_admin_group_request_path(gr), :method => :put) unless gr.high_touch?
        links << link_to('Un-star', unset_high_touch_admin_group_request_path(gr), :method => :put) if gr.high_touch?
        links << link_to('Edit', edit_admin_group_request_path(gr))
        links << link_to('Destroy', admin_group_request_path(gr), method: :delete)
        links.join(' ').html_safe
      end
    end
  end

  form partial: 'form'

  member_action :set_high_touch, :method => :put do
    @group_request = GroupRequest.find(params[:id])
    @group_request.update_attribute(:high_touch, true)
    redirect_to admin_group_requests_path
  end

  member_action :unset_high_touch, :method => :put do
    @group_request = GroupRequest.find(params[:id])
    @group_request.update_attribute(:high_touch, false)
    redirect_to admin_group_requests_path
  end

{'fraction_non_alphanumeric': 0.1045643153526971, 'fraction_numerical': 0.0, 'mean_word_length': 3.583016476552598, 'pattern_counts': {'":': 0, '<': 23, '<?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': '6689285', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1165, 'n_words': 272}