<commit_before>= link_to person_timetables_url(@topic, :date => @next_timetable_event.start), :style => "color:inherit" do
  %h3
    Next lesson
    = image_tag("timetable.png")
  .span4
    - if @next_timetable_event
      %h4= @next_timetable_event.title
      %h5= pretty_date @next_timetable_event.start, :day => true
      .small_text
        Room:
        = @next_timetable_event.rooms.join ", "
        .small_text= @next_timetable_event.teachers.map{|t| t.name}.join ", "
    - else 
      .alert
        = @topic.kind_of?(Person) ? "You have" : "This course has"
        no current timetable events.
<commit_msg>Don't break next lesson block if there isn't one<commit_after>= link_to person_timetables_url(@topic, :date => @next_timetable_event.try(:start)), :style => "color:inherit" do
  %h3
    Next lesson
    = image_tag("timetable.png")
  .span4
    - if @next_timetable_event
      %h4= @next_timetable_event.title
      %h5= pretty_date @next_timetable_event.start, :day => true
      .small_text
        Room:
        = @next_timetable_event.rooms.join ", "
        .small_text= @next_timetable_event.teachers.map{|t| t.name}.join ", "
    - else 
      .alert
        = @topic.kind_of?(Person) ? "You have" : "This course has"
        no current timetable events.

{'fraction_non_alphanumeric': 0.12860483242400625, 'fraction_numerical': 0.006235385814497272, 'mean_word_length': 2.975232198142415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3860292', 'n_tokens_mistral': 461, 'n_tokens_neox': 440, 'n_words': 88}