<commit_before>%section.search-results{'sticky-list' => true,"defer-share-dropdown"=>true,}
  .item{"ng-repeat"=>"hit in results.hits", 'ng-class' => '"item_" + hit.objectID', 'bindonce' => true}
    .item-main
      %a.item-thumbnail-link{'bo-if' => 'settings.showThumbnails && hit._tags[0] === "story" && state !== "ask-hn" && state !== "polls"', "ng-href"=>"{{hit.url}}"}
        %img.item-thumbnail{"img-preload"=>true, "ng-src"=>"https://drcs9k8uelb9s.cloudfront.net/{{hit.objectID}}.png"}
      .item-title-and-infos
        %h2
          %a{"ng-href"=>"{{hit.url}}", "bo-html"=>"hit._highlightResult.title.value", "bo-show" => "hit._tags[0] === 'story' || hit._tags[0] === 'poll' || hit._tags[0] === 'job'"}
          %a{"bo-href"=>"hit.story_url", "bo-html"=>"hit.story_title", "bo-if" => "hit._tags[0] === 'comment'"}
        %ul.item-infos.list-inline
          %li{'bo-show' => 'hit.points'}
            %i.icon-heart
            %a{'bo-href' => '"https://news.ycombinator.com/item?id=" + hit.objectID', title:'See original post on HN'}
              %span.date {{ ::hit.points }} points
          %li
            %i.icon-head
            %a{'bo-href' => '"https://news.ycombinator.com/user?id=" + hit.author', title:'See {{ ::hit.author }} profile'}
              %span.author{'bo-html' => 'hit._highlightResult.author.value'}
          %li
            %i.icon-clock
            %a{'bo-href' => '"https://news.ycombinator.com/item?id=" + (hit._tags[0] === "comment" ? hit.story_id + "#up_" + hit.objectID : hit.objectID)', title:'{{ ::hit.created_at }}'}
              %span.date {{ ::hit.created_at_i | moment }}
          %li{'bo-show' => 'hit.url'}
            %a.hit-link{"bo-href"=>"hit.url", 'bo-html' => 'hit._highlightResult.url.value | domain'}
      .item-actions.pull-right{'bo-show' => 'hit._tags[0] === "story" || hit._tags[0] === "poll" || hit._tags[0] === "job"'}
        %ul.list-inline
          %li.action-toggle-comments{'bo-show' => 'state != "jobs"'}
            %i.icon-speech-bubble
            %a{'bo-href' => '"/story/" + hit.objectID + "/" + friendly(hit.title)', "ng-click"=>"loadComments(hit.objectID, $event)", 'bo-show' => 'hit.num_comments > 0'}
              {{ ::hit.num_comments }} comment<span bo-show="hit.num_comments != 1">s</span>
            %span{'bo-show' => 'hit.num_comments == 0'} no comment
          %li.action-share
            %a.placeholder
              %i.icon-share
            %a.dropwdown-share{'bo-href' => '"/story/" + hit.objectID + "/" + friendly(hit.title)',"dropdown-menu"=>"ddMenuShare", "dropdown-onchange"=>"shareItem(selected, hit)"}<commit_msg>Do not load the images if we don't need to<commit_after>%section.search-results{'sticky-list' => true,"defer-share-dropdown"=>true,}
  .item{"ng-repeat"=>"hit in results.hits", 'ng-class' => '"item_" + hit.objectID', 'bindonce' => true}
    .item-main
      %a.item-thumbnail-link{'bo-if' => 'settings.showThumbnails && settings.style !== "default" && hit._tags[0] === "story" && state !== "ask-hn" && state !== "polls"', "ng-href"=>"{{hit.url}}"}
        %img.item-thumbnail{"img-preload"=>true, "ng-src"=>"https://drcs9k8uelb9s.cloudfront.net/{{hit.objectID}}.png"}
      .item-title-and-infos
        %h2
          %a{"ng-href"=>"{{hit.url}}", "bo-html"=>"hit._highlightResult.title.value", "bo-show" => "hit._tags[0] === 'story' || hit._tags[0] === 'poll' || hit._tags[0] === 'job'"}
          %a{"bo-href"=>"hit.story_url", "bo-html"=>"hit.story_title", "bo-if" => "hit._tags[0] === 'comment'"}
        %ul.item-infos.list-inline
          %li{'bo-show' => 'hit.points'}
            %i.icon-heart
            %a{'bo-href' => '"https://news.ycombinator.com/item?id=" + hit.objectID', title:'See original post on HN'}
              %span.date {{ ::hit.points }} points
          %li
            %i.icon-head
            %a{'bo-href' => '"https://news.ycombinator.com/user?id=" + hit.author', title:'See {{ ::hit.author }} profile'}
              %span.author{'bo-html' => 'hit._highlightResult.author.value'}
          %li
            %i.icon-clock
            %a{'bo-href' => '"https://news.ycombinator.com/item?id=" + (hit._tags[0] === "comment" ? hit.story_id + "#up_" + hit.objectID : hit.objectID)', title:'{{ ::hit.created_at }}'}
              %span.date {{ ::hit.created_at_i | moment }}
          %li{'bo-show' => 'hit.url'}
            %a.hit-link{"bo-href"=>"hit.url", 'bo-html' => 'hit._highlightResult.url.value | domain'}
      .item-actions.pull-right{'bo-show' => 'hit._tags[0] === "story" || hit._tags[0] === "poll" || hit._tags[0] === "job"'}
        %ul.list-inline
          %li.action-toggle-comments{'bo-show' => 'state != "jobs"'}
            %i.icon-speech-bubble
            %a{'bo-href' => '"/story/" + hit.objectID + "/" + friendly(hit.title)', "ng-click"=>"loadComments(hit.objectID, $event)", 'bo-show' => 'hit.num_comments > 0'}
              {{ ::hit.num_comments }} comment<span bo-show="hit.num_comments != 1">s</span>
            %span{'bo-show' => 'hit.num_comments == 0'} no comment
          %li.action-share
            %a.placeholder
              %i.icon-share
            %a.dropwdown-share{'bo-href' => '"/story/" + hit.objectID + "/" + friendly(hit.title)',"dropdown-menu"=>"ddMenuShare", "dropdown-onchange"=>"shareItem(selected, hit)"}
{'fraction_non_alphanumeric': 0.24297832233741753, 'fraction_numerical': 0.006032045240339303, 'mean_word_length': 2.765791341376863, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 73, 'https://': 8, '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': '7538953', 'n_tokens_mistral': 1922, 'n_tokens_neox': 1886, 'n_words': 256}