<commit_before><% if rscore and rscore[:assessments].length > 0 %>
    <BR/>
    <%= render :partial => 'grades/review_table', :locals => { :ctrl => 'review', :caction => 'view_review', :symbol => "review".to_sym, :prefix => prefix, :assignment => participant.assignment, :reviews => rscore[:assessments], :collabel => "Review", :rowlabel => "Reviewer" }%>
    <BR/>
    <HR/>
    <% count = 0 %>
    <% for review in rscore[:assessments] %>

    <% count = count + 1 %>

    <% file_url = nil
    @questionnaire = Questionnaire.find(@assignment.questionnaires[0].id)
    if @questionnaire.section.eql? "Custom"
        @current_folder = DisplayOption.new
        @current_folder.name = ""
        @participant = Participant.find(review.map.reviewer_id)
        files_list = Dir[@participant.assignment.get_path.to_s + "/" + review.map.id.to_s + @current_folder.name + "/*"]
        files = Array.new
        for file in files_list
            if File.directory?(file) then
                dir_files = get_files(file)<commit_msg>Changed find review questionnaire by position to find review questionnaire by type ReviewQuestionnaire<commit_after><% if rscore and rscore[:assessments].length > 0 %>
    <BR/>
    <%= render :partial => 'grades/review_table', :locals => { :ctrl => 'review', :caction => 'view_review', :symbol => "review".to_sym, :prefix => prefix, :assignment => participant.assignment, :reviews => rscore[:assessments], :collabel => "Review", :rowlabel => "Reviewer" }%>
    <BR/>
    <HR/>
    <% count = 0 %>
    <% for review in rscore[:assessments] %>

    <% count = count + 1 %>

    <% file_url = nil
    @questionnaire = Questionnaire.find(@assignment.questionnaires.find_by_type("ReviewQuestionnaire"))
    if @questionnaire.section.eql? "Custom"
        @current_folder = DisplayOption.new
        @current_folder.name = ""
        @participant = Participant.find(review.map.reviewer_id)
        files_list = Dir[@participant.assignment.get_path.to_s + "/" + review.map.id.to_s + @current_folder.name + "/*"]
        files = Array.new
        for file in files_list
            if File.directory?(file) then
                dir_files = get_files(file)
{'fraction_non_alphanumeric': 0.15525953146531923, 'fraction_numerical': 0.003215434083601286, 'mean_word_length': 3.245614035087719, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 41, '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': '5375882', 'n_tokens_mistral': 707, 'n_tokens_neox': 667, 'n_words': 141}