<commit_before>class SubmissionsController < ApplicationController
  # skip_before_action :ensure_login, only: [:new, :thank_you]
  before_action :set_submission, only: [:show, :edit, :update, :destroy]
  # skip_before_action :authenticate_user!, only: [:new, :create, :thank_you]

  # GET /submissions
  def index
    @submissions = Submission.all
  end

  # GET /submissions/1
  def show
  end

  # GET /submissions/new
  def new
    @submission = Submission.new
  end

  # GET /submissions/1/edit
  def edit
  end

  def thank_you
  end

  # POST /submissions
  def create
    @submission = Submission.new(submission_params)

    if @submission.save
      redirect_to submissions_thank_you_url<commit_msg>Skip authenticate_user for submissions new, create, thank_you<commit_after>class SubmissionsController < ApplicationController
  # skip_before_action :ensure_login, only: [:new, :thank_you]
  before_action :set_submission, only: [:show, :edit, :update, :destroy]
  skip_before_action :authenticate_user!, only: [:new, :create, :thank_you]

  # GET /submissions
  def index
    @submissions = Submission.all
  end

  # GET /submissions/1
  def show
  end

  # GET /submissions/new
  def new
    @submission = Submission.new
  end

  # GET /submissions/1/edit
  def edit
  end

  def thank_you
  end

  # POST /submissions
  def create
    @submission = Submission.new(submission_params)

    if @submission.save
      redirect_to submissions_thank_you_url
{'fraction_non_alphanumeric': 0.08823529411764706, 'fraction_numerical': 0.0027359781121751026, 'mean_word_length': 3.8443708609271523, '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': '2966247', 'n_tokens_mistral': 523, 'n_tokens_neox': 478, 'n_words': 121}