<commit_before>include ../../avatar/templates/avatar

div(class="grid__block grid__block--#{block.getClass()} #{block.getPermissions(user, channel)}" data-id="#{block.id}" data-class="#{block.get('base_class')}" id="#{block.id}")
  .block-padding
  span(href="#{block.getHref()}" data-client="#{block.get('base_class')}" class="grid__block__link needsclick")
    .grid__block__inner.halign--flex(class="grid__block__inner--privacy-#{ block.getVisibility() }")
      .grid__block__content
        - if(block.has('image'))
          .valign--flex.halign--flex
            img(src="#{block.resizeImage()}" alt="#{block.get('description')}").grid__block__content__image
        - if(block.get('class') == 'Text')
          .valign--flex
            .grid__block__content__text
              != block.get('content_html')
        - if(block.get('class') == 'Channel')
          .valign-outer
            .valign-inner
              h2=block.smartTruncate(block.get('title'), 50)
              .grid__block__channel__stats
                ul.grid__block__channel__stats__list
                  li by #{block.get('user').username}
                  li #{block.get('length')} blocks &bull; #{block.updatedAtAgo()}
        - if(block.get('class') == 'Attachment' && !block.has('image'))
          .valign--flex.halign--flex.grid__block__channel--attachment-bk
            if(block.get('attachment').extension == 'mp3')
              img(data-src="#{sd.IMAGE_PATH}iconic/type-mp3.svg" data-file-extension="#{block.get('attachment').extension}" class="iconic iconic-lg")
            if(block.get('attachment').extension == 'pdf')
              img(data-src="#{sd.IMAGE_PATH}iconic/type-pdf.svg" data-file-extension="#{block.get('attachment').extension}" class="iconic iconic-lg")
            if(block.get('attachment').extension == 'embed')
              img(data-src="#{sd.IMAGE_PATH}iconic/type-embed.svg" data-file-extension="#{block.get('attachment').extension}" class="iconic iconic-lg")
        - if(block.get('class') == 'User' && block.has('username'))
          h2=block.get('username')
          +avatar(block)
          .button--inblock.button--inblock--bottom.grid__block__follow_btn &nbsp;
      .grid__block__overlay.abs-fill(class="grid__block__overlay--privacy-#{ block.getVisibility() }")
        if user
          - if(block.get('class') == 'Attachment' || block.get('class') == 'Link' || block.get('class') == 'Media')
            .button--inblock.button--inblock--left.grid__block__source__link Source
            if user.has('id')
              .button--inblock.button--inblock--right.grid__block__connect-btn Connect &rarr;
          - if(block.get('class') == 'Channel' && user.has('id'))
              .button--inblock.button--inblock--left.grid__block__follow_btn &nbsp;
              .button--inblock.button--inblock--right.grid__block__connect-btn Connect &rarr;
          - if((block.get('class') == 'Image' || block.get('class') == 'Text') && user.has('id'))
            .button--inblock.button--inblock--center.grid__block__connect-btn Connect &rarr;
          - if(channel && user.has('id'))
            .grid__block__delete-block.button--delete-block.iconic.iconic-size-sm(data-glyph="trash")
        .grid__block__mini-feed
          - if(channel)
            ul.bare-list
              li
                span(data-href="/#{block.get('connected_by_user_slug')}").inline-link.username=block.get('connected_by_username')
                span.arrow &#x279d;
                span.inline-link.channel=channel.smartTruncate(channel.get('title'), 30)
      if user
        .grid__block__connect-container.abs-fill
          //- rendered by the client
    - if(block.get('class') != 'Channel' && block.get('class') != 'User')
      p(href="#{block.getHref()}" data-client="#{block.get('base_class')}")
        .grid__block__title= block.smartTruncate(block.get('title'))
          - if(block.get('class') == 'Media')
            img(data-src="#{sd.IMAGE_PATH}iconic/type-embed.svg" class="iconic iconic-sm")
          - if(block.get('class') == 'Attachment' && block.get('attachment').extension == 'pdf')
            img(data-src="#{sd.IMAGE_PATH}iconic/type-pdf.svg" class="iconic iconic-sm")
          - if(block.get('class') == 'Attachment' && block.get('attachment').extension == 'mp3')
            img(data-src="#{sd.IMAGE_PATH}iconic/type-mp3.svg" class="iconic iconic-sm")
          - if(block.get('class') == 'Attachment' && block.get('attachment').extension == 'embed')
            img(data-src="#{sd.IMAGE_PATH}iconic/type-mp3.embed" class="iconic iconic-sm")
        - if(block.has('user'))
          p.grid__block__author
            | Added by #{block.get('user').username}
            br
            | #{block.updatedAtAgo()}<commit_msg>clean up icons in block<commit_after>include ../../avatar/templates/avatar

div(class="grid__block grid__block--#{block.getClass()} #{block.getPermissions(user, channel)}" data-id="#{block.id}" data-class="#{block.get('base_class')}" id="#{block.id}")
  .block-padding
  span(href="#{block.getHref()}" data-client="#{block.get('base_class')}" class="grid__block__link needsclick")
    .grid__block__inner.halign--flex(class="grid__block__inner--privacy-#{ block.getVisibility() }")
      .grid__block__content
        - if(block.has('image'))
          .valign--flex.halign--flex
            img(src="#{block.resizeImage()}" alt="#{block.get('description')}").grid__block__content__image
        - if(block.get('class') == 'Text')
          .valign--flex
            .grid__block__content__text
              != block.get('content_html')
        - if(block.get('class') == 'Channel')
          .valign-outer
            .valign-inner
              h2=block.smartTruncate(block.get('title'), 50)
              .grid__block__channel__stats
                ul.grid__block__channel__stats__list
                  li by #{block.get('user').username}
                  li #{block.get('length')} blocks &bull; #{block.updatedAtAgo()}
        - if(block.get('class') == 'Attachment' && !block.has('image'))
          .valign--flex.halign--flex.grid__block__channel--attachment-bk
            if(['mp3', 'pdf'].indexOf(block.get('attachment').extension))
              img(data-src="#{sd.IMAGE_PATH}iconic/type-#{block.get('attachment').extension}.svg" data-file-extension="#{block.get('attachment').extension}" class="iconic iconic-lg")
        - if(block.get('class') == 'User' && block.has('username'))
          h2=block.get('username')
          +avatar(block)
          .button--inblock.button--inblock--bottom.grid__block__follow_btn &nbsp;
      .grid__block__overlay.abs-fill(class="grid__block__overlay--privacy-#{ block.getVisibility() }")
        if user
          - if(block.get('class') == 'Attachment' || block.get('class') == 'Link' || block.get('class') == 'Media')
            .button--inblock.button--inblock--left.grid__block__source__link Source
            if user.has('id')
              .button--inblock.button--inblock--right.grid__block__connect-btn Connect &rarr;
          - if(block.get('class') == 'Channel' && user.has('id'))
              .button--inblock.button--inblock--left.grid__block__follow_btn &nbsp;
              .button--inblock.button--inblock--right.grid__block__connect-btn Connect &rarr;
          - if((block.get('class') == 'Image' || block.get('class') == 'Text') && user.has('id'))
            .button--inblock.button--inblock--center.grid__block__connect-btn Connect &rarr;
          - if(channel && user.has('id'))
            .grid__block__delete-block.button--delete-block.iconic.iconic-size-sm(data-glyph="trash")
        .grid__block__mini-feed
          - if(channel)
            ul.bare-list
              li
                span(data-href="/#{block.get('connected_by_user_slug')}").inline-link.username=block.get('connected_by_username')
                span.arrow &#x279d;
                span.inline-link.channel=channel.smartTruncate(channel.get('title'), 30)
      if user
        .grid__block__connect-container.abs-fill
          //- rendered by the client
    - if(block.get('class') != 'Channel' && block.get('class') != 'User')
      p(href="#{block.getHref()}" data-client="#{block.get('base_class')}")
        .grid__block__title= block.smartTruncate(block.get('title'))
          if(block.get('class') == 'Attachment' && ['mp3', 'pdf'].indexOf(block.get('attachment').extension))
            img(data-src="#{sd.IMAGE_PATH}iconic/type-#{block.get('attachment').extension}.svg" class="iconic iconic-sm")
          - if(block.get('class') == 'Media')
            img(data-src="#{sd.IMAGE_PATH}iconic/type-embed.svg" class="iconic iconic-sm")
        - if(block.has('user'))
          p.grid__block__author
            | Added by #{block.get('user').username}
            br
            | #{block.updatedAtAgo()}
{'fraction_non_alphanumeric': 0.18662290629244002, 'fraction_numerical': 0.0028293345405160705, 'mean_word_length': 2.7748825288338317, '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': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7051949', 'n_tokens_mistral': 2739, 'n_tokens_neox': 2726, 'n_words': 305}