<commit_before>class StudentQuizzesController < ApplicationController

  def action_allowed?
    ['Administrator',
     'Instructor',
     'Teaching Assistant'].include? current_role_name or (current_role_name.eql?("Student") and are_needed_authorizations_present?)

  end

  def index<commit_msg>fix authorizations in 'student_quizzes_controller.rb'<commit_after>class StudentQuizzesController < ApplicationController

  def action_allowed?
    ['Administrator',
     'Instructor',
     'Teaching Assistant'].include? current_role_name or (current_role_name.eql?("Student") and ((%w(index).include? action_name) ? are_needed_authorizations_present? : true))

  end

  def index
{'fraction_non_alphanumeric': 0.09734513274336283, 'fraction_numerical': 0.0, 'mean_word_length': 6.147368421052631, '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': '1075458', 'n_tokens_mistral': 205, 'n_tokens_neox': 192, 'n_words': 39}