<commit_before>class Admin::RegistrationFormsController < Admin::DashboardController
  def index
    @registration_form = RegistrationForm.last
    if @registration_form == nil
      redirect_to new_admin_registration_forms_path
    end
  end

  def new
    @registration_form = RegistrationForm.new
  end

  def create
    @registration_form = RegistrationForm.new(reg_form_params)
    if @registration_form.save
      flash[:notice] = "Registration Form uploaded successfully"
      redirect_to admin_registration_forms_path
    else
      render :new
    end
  end

  def edit
    @registration_form = RegistrationForm.find(params[:id])<commit_msg>Fix syntax error<commit_after>class Admin::RegistrationFormsController < Admin::DashboardController
  def index
    @registration_form = RegistrationForm.last
    if @registration_form == nil
      redirect_to new_admin_registration_form_path
    end
  end

  def new
    @registration_form = RegistrationForm.new
  end

  def create
    @registration_form = RegistrationForm.new(reg_form_params)
    if @registration_form.save
      flash[:notice] = "Registration Form uploaded successfully"
      redirect_to admin_registration_forms_path
    else
      render :new
    end
  end

  def edit
    @registration_form = RegistrationForm.find(params[:id])
{'fraction_non_alphanumeric': 0.0598159509202454, 'fraction_numerical': 0.0, 'mean_word_length': 4.0, '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': '6642819', 'n_tokens_mistral': 379, 'n_tokens_neox': 348, 'n_words': 83}