<commit_before>.container
  %header.page-header
    .col-1
      .logo
        %img{src:"/assets/logo-hn-search.png"}
        %span.logo-name
          Search
          %br
          Hacker News
    .col-2
      %nav.navigation
        %ul.list-inline
          %li{'ng-class' => '{active: settings.sort === "byPopularity"}', 'ng-click' => 'sortBy("byPopularity")'}
            Most Popular
          %li{'ng-class' => '{active: settings.sort === "byDate"}', 'ng-click' => 'sortBy("byDate")'}
            Most Recent
    .col-3
      %hnsearch.search-wrapper{placeholder:"Search a story", "min-length"=>"0", model:"results", source:"getSearch(query)"}
.container
  %aside.sidebar
    %ul
      %li
        %a{href:"#/", 'active-link' => true}
          %i.icon-news
          All
      %li
        %a{href:"#/show-hn", 'active-link' => true}
          %i.icon-megaphone
          Show HN
      %li
        %a{href:"#/ask-hn", 'active-link' => true}
          %i.icon-bulb
          Ask HN
      %li
        %a{href:"#/jobs", 'active-link' => true}
          %i.icon-banknote
          Jobs
      %li.divider
      %li
        %a{href:"#/starred", 'active-link' => true}
          %i.icon-star
          Starred
      %li
        %a{href:"#/hot", 'active-link' => true}
          %i.icon-fire
          Hot

  %section.main
    %header
      %button.btn-refresh
        %i.icon-repeat
      %h1 {{ categoryTitle() }}
      %small.search-infos{'ng-show' => 'results'}
        %ng-pluralize{count: 'results.nbHits', when: '{"0": "No results", "one": "1 result", "other": "{{ results.nbHits | number }} results"}'}
        in {{ results.processingTimeMS | number }} ms
      .date-range-filter
        %ul.list-inline
          %li
            %input#range-1.radio{"ng-model"=>"settings.dateRange", name:"date-range", type:"radio", value:"last24h"}
            %label{for:"range-1"} Last 24h
          %li
            %input#range-2.radio{"ng-model"=>"settings.dateRange", name:"date-range", type:"radio", value:"pastWeek"}
            %label{for:"range-2"} Past week
          %li
            %input#range-3.radio{"ng-model"=>"settings.dateRange", name:"date-range", type:"radio", value:"pastMonth"}
            %label{for:"range-3"} Past month
          %li
            %input#range-4.radio{"ng-model"=>"settings.dateRange", name:"date-range", type:"radio", value:"all"}
            %label{for:"range-4"} Forever
    %section.search-results
      .item{"ng-repeat"=>"hit in results.hits", "ng-click"=>"loadComments(hit)"}
        / %img{"ng-src"=>"https://drcs9k8uelb9s.cloudfront.net/{{hit.objectID}}.png"}
        %h2{"ng-bind-html"=>"hit._highlightResult.title.value"}
        %ul.item-infos.list-inline
          %li
            %i.icon-head
            %span.author{"ng-style"=>"{color:'{{hit.author|color}}'}"} {{hit.author}}
          %li
            %i.icon-heart
            %span.date {{hit.points}} points
          %li
            %i.icon-clock
            %span.date {{hit.created_at_i | moment:'M/D/YYYY h:m A'}}
          %li
            %a.hit-link{"ng-href"=>"{{hit.url}}"} {{hit.url|domain}}
        .item-actions.pull-right
          %i.icon-bubble
          %a{href:"#"}
            %ng-pluralize{count:"hit.num_comments", when:"{'0': 'no comment','one': '1 comment','other': '{} comments'}"}
          %a{href: '#'}
            %i.icon-share
          %a{href: '#', 'ng-click' => 'toggleStar($event, hit.objectID)', 'ng-class' => '{ "starred": isStarred(hit.objectID) }'}
            %i.icon-star
        .clearfix
        %ul.list-item-comments{"ng-show"=>"story[hit.objectID]"}
          %li.item-comments{"ng-repeat"=>"comment in story[hit.objectID].comments.children", "ng-if"=>"comment.author"}
            %span.author{"ng-style"=>"{color:'{{comment.author|color}}'}"} {{comment.author}} -
            %span.date {{comment.created_at_i | moment:'M/D/YYYY h:m A'}}
            .reply-container{"ng-bind-html"=>"comment.text"}
            %collection{collection:"comment.children"}
<commit_msg>added link to original item on HN<commit_after>.container
  %header.page-header
    .col-1
      .logo
        %img{src:"/assets/logo-hn-search.png"}
        %span.logo-name
          Search
          %br
          Hacker News
    .col-2
      %nav.navigation
        %ul.list-inline
          %li{'ng-class' => '{active: settings.sort === "byPopularity"}', 'ng-click' => 'sortBy("byPopularity")'}
            Most Popular
          %li{'ng-class' => '{active: settings.sort === "byDate"}', 'ng-click' => 'sortBy("byDate")'}
            Most Recent
    .col-3
      %hnsearch.search-wrapper{placeholder:"Search a story", "min-length"=>"0", model:"results", source:"getSearch(query)"}
.container
  %aside.sidebar
    %ul
      %li
        %a{href:"#/", 'active-link' => true}
          %i.icon-news
          All
      %li
        %a{href:"#/show-hn", 'active-link' => true}
          %i.icon-megaphone
          Show HN
      %li
        %a{href:"#/ask-hn", 'active-link' => true}
          %i.icon-bulb
          Ask HN
      %li
        %a{href:"#/jobs", 'active-link' => true}
          %i.icon-banknote
          Jobs
      %li.divider
      %li
        %a{href:"#/starred", 'active-link' => true}
          %i.icon-star
          Starred
      %li
        %a{href:"#/hot", 'active-link' => true}
          %i.icon-fire
          Hot

  %section.main
    %header
      %button.btn-refresh
        %i.icon-repeat
      %h1 {{ categoryTitle() }}
      %small.search-infos{'ng-show' => 'results'}
        %ng-pluralize{count: 'results.nbHits', when: '{"0": "No results", "one": "1 result", "other": "{{ results.nbHits | number }} results"}'}
        in {{ results.processingTimeMS | number }} ms
      .date-range-filter
        %ul.list-inline
          %li
            %input#range-1.radio{"ng-model"=>"settings.dateRange", name:"date-range", type:"radio", value:"last24h"}
            %label{for:"range-1"} Last 24h
          %li
            %input#range-2.radio{"ng-model"=>"settings.dateRange", name:"date-range", type:"radio", value:"pastWeek"}
            %label{for:"range-2"} Past week
          %li
            %input#range-3.radio{"ng-model"=>"settings.dateRange", name:"date-range", type:"radio", value:"pastMonth"}
            %label{for:"range-3"} Past month
          %li
            %input#range-4.radio{"ng-model"=>"settings.dateRange", name:"date-range", type:"radio", value:"all"}
            %label{for:"range-4"} Forever
    %section.search-results
      .item{"ng-repeat"=>"hit in results.hits", "ng-click"=>"loadComments(hit)"}
        / %img{"ng-src"=>"https://drcs9k8uelb9s.cloudfront.net/{{hit.objectID}}.png"}
        %h2{"ng-bind-html"=>"hit._highlightResult.title.value"}
        %ul.item-infos.list-inline
          %li
            %i.icon-head
            %span.author{"ng-style"=>"{color:'{{hit.author|color}}'}"} {{hit.author}}
          %li
            %i.icon-heart
            %span.date {{hit.points}} points
          %li
            %i.icon-clock
            %a.date{'ng-href'=>"https://news.ycombinator.com/item?id={{hit.objectID}}"} {{hit.created_at_i | moment:'M/D/YYYY h:m A'}}
          %li
            %a.hit-link{"ng-href"=>"{{hit.url}}"} {{hit.url|domain}}
        .item-actions.pull-right
          %i.icon-bubble
          %a{href:"#"}
            %ng-pluralize{count:"hit.num_comments", when:"{'0': 'no comment','one': '1 comment','other': '{} comments'}"}
          %a{href: '#'}
            %i.icon-share
          %a{href: '#', 'ng-click' => 'toggleStar($event, hit.objectID)', 'ng-class' => '{ "starred": isStarred(hit.objectID) }'}
            %i.icon-star
        .clearfix
        %ul.list-item-comments{"ng-show"=>"story[hit.objectID]"}
          %li.item-comments{"ng-repeat"=>"comment in story[hit.objectID].comments.children", "ng-if"=>"comment.author"}
            %span.author{"ng-style"=>"{color:'{{comment.author|color}}'}"} {{comment.author}} -
            %span.date {{comment.created_at_i | moment:'M/D/YYYY h:m A'}}
            .reply-container{"ng-bind-html"=>"comment.text"}
            %collection{collection:"comment.children"}

{'fraction_non_alphanumeric': 0.20125631235373814, 'fraction_numerical': 0.00615839389087326, 'mean_word_length': 2.1546231546231547, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 62, 'https://': 3, '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': '7640865', 'n_tokens_mistral': 2773, 'n_tokens_neox': 2735, 'n_words': 402}