<commit_before>.col-md-6.col-md-offset-3
    -if defined? title
        %h2=title
    .list-group
        - @courses.each do |course|
            %a.list-group-item{href: "/courses/#{course.id}"}
                %h4.list-group-item-heading=course.name
                - count=course.tutors.count
                %p.list-group-item-text="#{count} #{'tutor'.pluralize(count)}"<commit_msg>display course form index to logged out users<commit_after>.col-md-6.col-md-offset-3
    -if defined? title
        %h2=title
    .list-group
        - @courses.each do |course|
            - if @user and @user.admin
                - link = "/courses/#{course.id}"
            - else
                - link = "/form/course/#{course.id}"
            %a.list-group-item{href: link}
                %h4.list-group-item-heading=course.name
                - count=course.tutors.count
                %p.list-group-item-text="#{count} #{'tutor'.pluralize(count)}"
{'fraction_non_alphanumeric': 0.15873015873015872, 'fraction_numerical': 0.008465608465608466, 'mean_word_length': 1.7028571428571428, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5173296', 'n_tokens_mistral': 320, 'n_tokens_neox': 307, 'n_words': 45}