<commit_before>%h3
  My Courses
  = image_tag PersonCourse.first.icon_url
- begin
  .span4
    - if @my_courses and !@my_courses.empty?
      .scroll-list
        %ul
          - @my_courses.map{|c| Course.find(c)}.each do |course|
            %li= link_to course.name, course
    - else
      .alert You haven't added any courses, yet. You can do so on a course home page.
- rescue
  .span4
    - if PersonCourse.first
      .alert.alert-error Please report an error with this block!
    - else
      .alert.alert-error There aren't any enrolments in the database, yet?
<commit_msg>Don't fail my_courses on a new install with no enrolments<commit_after>%h3
  My Courses
  = image_tag PersonCourse.new.icon_url
- begin
  .span4
    - if @my_courses and !@my_courses.empty?
      .scroll-list
        %ul
          - @my_courses.map{|c| Course.find(c)}.each do |course|
            %li= link_to course.name, course
    - else
      .alert You haven't added any courses, yet. You can do so on a course home page.
- rescue
  .span4
    - if PersonCourse.first
      .alert.alert-error Please report an error with this block!
    - else
      .alert.alert-error There aren't any enrolments in the database, yet?

{'fraction_non_alphanumeric': 0.0935430463576159, 'fraction_numerical': 0.004966887417218543, 'mean_word_length': 2.377094972067039, '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': '402356', 'n_tokens_mistral': 405, 'n_tokens_neox': 392, 'n_words': 129}