<commit_before>class Admin::MedicalCertificatesController < ApplicationController
  before_action :authenticate_user!
  before_action :authorize_permission

  # GET /admin/medical_certificates
  def index
    @registrants = Registrant.all
  end

  private

  def authorize_permission
    authorize :admin_permission
  end
end<commit_msg>Do not show incomplete or deleted registrants on medical cert review pages<commit_after>class Admin::MedicalCertificatesController < ApplicationController
  before_action :authenticate_user!
  before_action :authorize_permission

  # GET /admin/medical_certificates
  def index
    @registrants = Registrant.active
  end

  private

  def authorize_permission
    authorize :admin_permission
  end
end
{'fraction_non_alphanumeric': 0.04336043360433604, 'fraction_numerical': 0.0, 'mean_word_length': 5.262711864406779, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7656646', 'n_tokens_mistral': 210, 'n_tokens_neox': 194, 'n_words': 52}