<commit_before>class Admin::ApplicationFormController < Admin::AdminController

  include ApplicationHelper
  include FormQuestionHelper

  before_filter :require_admin
  def show
    # The view should render only the form questions and form answers
    # They should not be able to modify at this page
    # Note might need to write a method to get the form_contents
    @disable = true
    @application = Application.find(params[:id])
    if @application.content.has_key?(params[:form_type])
      @form_answer = get_answers_to_prefill_from(@application.content[params[:form_type]], params[:form_type])
    end
    form = @application.get_form(params[:form_type])
    @list_of_questions = form.form_questions.sort_by {|question| question.order}
    @form_name = form.form_name
  end

  def edit
    @disable = false
    @user, @application, @form, @list_of_questions, @form_name, @form_answer = prepare_display
  end<commit_msg>Half done<commit_after>class Admin::ApplicationFormController < Admin::AdminController

  include ApplicationHelper
  include FormQuestionHelper

  before_filter :require_admin
  def show
    # The view should render only the form questions and form answers
    # They should not be able to modify at this page
    # Note might need to write a method to get the form_contents
    @disable = true
    @user, @application, @form, @list_of_questions, @form_name, @form_answer = prepare_display
  end

  def edit
    @disable = false
    @user, @application, @form, @list_of_questions, @form_name, @form_answer = prepare_display
  end
{'fraction_non_alphanumeric': 0.07692307692307693, 'fraction_numerical': 0.0, 'mean_word_length': 4.496478873239437, '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': '7145280', 'n_tokens_mistral': 448, 'n_tokens_neox': 435, 'n_words': 139}