<commit_before>%div{:style => defined?(hidden) && 'none',:class => [event.status, @multi ? "multi" : "single"]}[event]
  %div.inner[event.eventable]
    %header{:class => event.subtitle ? "subtitle" : nil}
      %h2.icon= image_tag(event.icon_url, :size => "48x48", :alt => event.title, :title => event.title)
      %time{:datetime => event.event_date.strftime("%Y-%m-%dT%H:%M:%S%z")}
        %h2.date= pretty_date event.event_date
        .time= pretty_time event.event_date
      - if @multi
        %h1.event_person
          = image_tag("#{url_for(event.person)}.jpg", :size => "48x48")
          = event.person.name
      %h1= event.title
      - if event.subtitle
        - if event.respond_to? :last
          %h2
            .subtitle_word= event.subtitle.first
            .subtitle_date= pretty_date event.subtitle.last,false
        - else
          %h2= event.subtitle
    - if event.sanitize_options
      .body= sanitize event.body, event.sanitize_options
    - else
      .body= raw event.body
    .buttons
      = link_to image_tag("actions/event_open.png"), open_extended_event_url(event,:person_id => @topic.mis_id), :remote => true, :class => "extend_button", :observer => "false"
      = image_tag "actions/event_opened.png", :class => "close_extend_button", :style => "display:none", :observer => "false"
    .attachments
      .inner
        = render :partial => "events/mini", :collection => event.children.unique_eventable.order("event_date"), :as => :event
    .extended{:style => "display:none"}
      .inner
<commit_msg>Make extended events work for multi views<commit_after>%div{:style => defined?(hidden) && 'none',:class => [event.status, @multi ? "multi" : "single"]}[event]
  %div.inner[event.eventable]
    %header{:class => event.subtitle ? "subtitle" : nil}
      %h2.icon= image_tag(event.icon_url, :size => "48x48", :alt => event.title, :title => event.title)
      %time{:datetime => event.event_date.strftime("%Y-%m-%dT%H:%M:%S%z")}
        %h2.date= pretty_date event.event_date
        .time= pretty_time event.event_date
      - if @multi
        %h1.event_person
          = image_tag("#{url_for(event.person)}.jpg", :size => "48x48")
          = event.person.name
      %h1= event.title
      - if event.subtitle
        - if event.respond_to? :last
          %h2
            .subtitle_word= event.subtitle.first
            .subtitle_date= pretty_date event.subtitle.last,false
        - else
          %h2= event.subtitle
    - if event.sanitize_options
      .body= sanitize event.body, event.sanitize_options
    - else
      .body= raw event.body
    .buttons
      = link_to image_tag("actions/event_open.png"), open_extended_event_url(event,:person_id => event.person.mis_id), :remote => true, :class => "extend_button", :observer => "false"
      = image_tag "actions/event_opened.png", :class => "close_extend_button", :style => "display:none", :observer => "false"
    .attachments
      .inner
        = render :partial => "events/mini", :collection => event.children.unique_eventable.order("event_date"), :as => :event
    .extended{:style => "display:none"}
      .inner

{'fraction_non_alphanumeric': 0.16112531969309463, 'fraction_numerical': 0.008951406649616368, 'mean_word_length': 2.9910714285714284, 'pattern_counts': {'":': 0, '<': 3, '<?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': '343312', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1037, 'n_words': 190}