<commit_before>template(name='live')
  if groupData
    .panel.panel-primary
      .panel-heading.clearfix
        form.form-inline
          span.title.panel-title= group
          span.space
          | live update: showing last
          input(type='text', size='5', value=limit).form-control#limitInput
          | messages
      .panel-body
        if valid
          each messages
            +readMessage
        else
          .alert.alert-danger(role="alert") Invalid number of last messages.
  else
    +badGroup

template(name='readMessage')
  +rootHeader
  .panel.message(class=messagePanelClass, data-message=_id, id=_id)
    .panel-heading.clearfix
      .message-left-buttons.btn-group.btn-group-xs
        //button.btn.btn-info.foldButton(aria-label="Fold")
          if folded
            span.glyphicon.glyphicon-plus(aria-hidden="true")
          else
            span.glyphicon.glyphicon-minus(aria-hidden="true")
        a.btn.btn-info.focusButton(aria-label="Focus", href="{{pathFor 'message' group=group message=_id}}")
          span.glyphicon.glyphicon-arrow-right(aria-hidden="true")
      span.space
      span.title.panel-title.tex2jax !{formatTitle}
      span.space
      if deleted
        span.label.label-danger Deleted
      else
        unless published
          span.label.label-warning Unpublished
    unless folded
      .panel-body.message-body.tex2jax !{formatBody}
      .message-footer
        .author
          if published
            | (posted by
          else
            | (created by
          | #{creator} {{formatDate created prefix='on '}}#{formatAuthors})<commit_msg>Restore right justification of author<commit_after>template(name='live')
  if groupData
    .panel.panel-primary
      .panel-heading.clearfix
        form.form-inline
          span.title.panel-title= group
          span.space
          | live update: showing last
          input(type='text', size='5', value=limit).form-control#limitInput
          | messages
      .panel-body
        if valid
          each messages
            +readMessage
        else
          .alert.alert-danger(role="alert") Invalid number of last messages.
  else
    +badGroup

template(name='readMessage')
  +rootHeader
  .panel.message(class=messagePanelClass, data-message=_id, id=_id)
    .panel-heading.clearfix
      .message-left-buttons.btn-group.btn-group-xs
        //button.btn.btn-info.foldButton(aria-label="Fold")
          if folded
            span.glyphicon.glyphicon-plus(aria-hidden="true")
          else
            span.glyphicon.glyphicon-minus(aria-hidden="true")
        a.btn.btn-info.focusButton(aria-label="Focus", href="{{pathFor 'message' group=group message=_id}}")
          span.glyphicon.glyphicon-arrow-right(aria-hidden="true")
      span.space
      span.title.panel-title.tex2jax !{formatTitle}
      span.space
      if deleted
        span.label.label-danger Deleted
      else
        unless published
          span.label.label-warning Unpublished
    unless folded
      .panel-body.message-body.tex2jax !{formatBody}
      .message-footer.clearfix
        .author.pull-right
          if published
            | (posted by
          else
            | (created by
          | #{creator} {{formatDate created prefix='on '}}#{formatAuthors})
{'fraction_non_alphanumeric': 0.11351186853317102, 'fraction_numerical': 0.0018259281801582471, 'mean_word_length': 2.172779922779923, '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': '7438751', 'n_tokens_mistral': 948, 'n_tokens_neox': 934, 'n_words': 167}