<commit_before>class FeedbacksController < ApplicationController
  before_filter :get_request

  def new
    @feedback = Feedback.new(:feedback => Feedback::FEEDBACK_POSITIVE)
  end

  def create
    @feedback =  @request.feedbacks.build(params[:feedback])
    @feedback.person_id = current_user.person.id
    if @feedback.save
      redirect_to dashboard_path, :notice => "Successfully created feedback."
    else
      render :action => 'new'
    end
  end
  
  protected
  
  def get_request
    @request = ItemRequest.find_by_id(params[:request_id])
    redirect_to dashboard_path unless @request
  end
end<commit_msg>Notice removed<commit_after>class FeedbacksController < ApplicationController
  before_filter :get_request

  def new
    @feedback = Feedback.new(:feedback => Feedback::FEEDBACK_POSITIVE)
  end

  def create
    @feedback =  @request.feedbacks.build(params[:feedback])
    @feedback.person_id = current_user.person.id
    if @feedback.save
      redirect_to dashboard_path
    else
      render :action => 'new'
    end
  end
  
  protected
  
  def get_request
    @request = ItemRequest.find_by_id(params[:request_id])
    redirect_to dashboard_path unless @request
  end
end
{'fraction_non_alphanumeric': 0.0825, 'fraction_numerical': 0.0, 'mean_word_length': 3.804, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '4725266', 'n_tokens_mistral': 387, 'n_tokens_neox': 359, 'n_words': 80}