<commit_before>class ReviewsController < ApplicationController
    
    def create
        @course = Course.find_by_code(params[:course_code])
        @review = @course.reviews.create(review_params)

        redirect_to course_path(@course)
    end

    private
      def review_params
          params.require(:review).permit(:rank, :rating, :date, :info, :review_text, :course_id)
      end
end<commit_msg>reviews: add grade to controller<commit_after>class ReviewsController < ApplicationController
    
    def create
        @course = Course.find_by_code(params[:course_code])
        @review = @course.reviews.create(review_params)

        redirect_to course_path(@course)
    end

    private
      def review_params
          params.require(:review).permit(:rank, :rating, :date, :info, :review_text, :course_id, :grade)
      end
end
{'fraction_non_alphanumeric': 0.09845788849347568, 'fraction_numerical': 0.0, 'mean_word_length': 3.306122448979592, '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': '2961210', 'n_tokens_mistral': 246, 'n_tokens_neox': 241, 'n_words': 50}