<commit_before>%div{ class: css_class_for(discussion), onclick: "window.location='#{discussion_path(discussion)}'" }
  %span#discussion-title
    - title = truncate(discussion.title, :length => 75, :separator => ' ')
    = link_to title, discussion_path(discussion), onclick: "window.location=#{discussion_path(discussion)}"
    #alert-info
      #discussion-icon-container{ class: enabled_icon_class_for(discussion, current_user) }
        - if activity_count_for(discussion, current_user) > 0
          #activity-count.span.label.label-important
            = activity_count_for(discussion, current_user)

    #comment-info
      .relative-time= discussion.latest_history_time
      #total-comments
        = pluralize(discussion.comments.count + discussion.votes.count, 'msg')

  - if params[:controller] == 'dashboard'
    #group-name
      = link_to discussion.group.name, group_path(discussion.group)

  - motion = discussion.current_motion
  - if motion.present?
    #proposal-container
      #vote-icon
        - if current_user
          = render "motions/display_icons", position: current_user.position(motion)

      #proposal-title-container
        %span#proposal-label Proposal:<commit_msg>_discussion.html.haml: reference group.full_name<commit_after>%div{ class: css_class_for(discussion), onclick: "window.location='#{discussion_path(discussion)}'" }
  %span#discussion-title
    - title = truncate(discussion.title, :length => 75, :separator => ' ')
    = link_to title, discussion_path(discussion), onclick: "window.location=#{discussion_path(discussion)}"
    #alert-info
      #discussion-icon-container{ class: enabled_icon_class_for(discussion, current_user) }
        - if activity_count_for(discussion, current_user) > 0
          #activity-count.span.label.label-important
            = activity_count_for(discussion, current_user)

    #comment-info
      .relative-time= discussion.latest_history_time
      #total-comments
        = pluralize(discussion.comments.count + discussion.votes.count, 'msg')

  - if params[:controller] == 'dashboard'
    #group-name
      = link_to discussion.group.full_name, group_path(discussion.group)

  - motion = discussion.current_motion
  - if motion.present?
    #proposal-container
      #vote-icon
        - if current_user
          = render "motions/display_icons", position: current_user.position(motion)

      #proposal-title-container
        %span#proposal-label Proposal:
{'fraction_non_alphanumeric': 0.119281045751634, 'fraction_numerical': 0.0024509803921568627, 'mean_word_length': 3.764591439688716, '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': '6949509', 'n_tokens_mistral': 747, 'n_tokens_neox': 703, 'n_words': 115}