<commit_before>- if @onboarding
  = render partial: 'onboarding'

.row
  .large-12.columns.home-content

    .large-4.columns.push-8.left-column-content
      .large-12.columns.no-padding.forum-block
        .large-6.columns.block-title
          %h4 Forum
        .large-6.columns.block-link
          = link_to "view forums", forem.root_path, class: 'right'
        %hr
        %ul
          - @forum_topics.each do |topic|
            %li.large-12.columns.topic-row
              .large-12.columns.no-padding.forum-title
                .pull-left
                  = link_to truncate(topic.subject, length: 35, separator: ' '), forem.forum_topic_path(topic.forum, topic)
                .forum-time.pull-right
                  %i #{distance_of_time_in_words_to_now(topic.last_post_at)} ago

      .large-12.columns.no-padding.trending-block
        .large-12.columns.block-title
          %h4 Trending This Week
        %hr
        %ul
          - @trending_anime.each_with_index do |trending, i|
            %li.large-12.columns.topic-row
              .small-1.columns.no-padding
                %p.count.center= i+1
              .small-11.columns.no-padding-right.forum-title
                .large-12.columns.no-padding
                  = anime_link trending[:anime], class: 'trending-title truncate'
                  %i #{trending[:currently_watching]} Viewers
      
      .large-12.columns.no-padding-left.no-padding-right.side-advert.hide-for-small
        :javascript
          google_ad_client = "ca-pub-3410319844519574";
          /* Homepage Sidebar */
          google_ad_slot = "8094424442";
          google_ad_width = 300;
          google_ad_height = 250;

        %script{:src => "http://pagead2.googlesyndication.com/pagead/show_ads.js", :type => "text/javascript"}

    .large-8.columns.pull-4.left-home-column.no-padding
      .large-12.columns.no-padding.recent-watched
        .recommendations.hide-for-small
          - @recent_anime.each do |watchlist|
            .large-3.columns.no-padding.recommendation
              = image_tag watchlist.anime.cover_image.url(:thumb)
              .large-12.columns.meta-wrapper
                .meta-data.large-12.columns.no-padding-left
                  %p 
                    %h5.anime-title= anime_link watchlist.anime
                  .rating{:id => watchlist.anime.slug, :"data-rating" => (watchlist.rating || -3) + 3, :"data-anime-slug" => watchlist.anime.slug}
                  %hr
                  .large-6.columns.no-padding
                    Progress:
                  .large-6.columns.no-padding.progress-number
                    %span.progress-updater{:id => watchlist.anime.slug, :"data-anime-slug" => watchlist.anime.slug, :"data-progress" => watchlist.episodes_watched, :"data-total-episodes" => watchlist.anime.episode_count, :"data-allow-increment" => "true"}
                  
                  :javascript
                    initializeRatingInterface($(".rating##{watchlist.anime.slug}"), "#{current_user.star_rating ? "starRatings" : "smileyRatings"}");
                    initializeProgressIncrement($(".progress-updater##{watchlist.anime.slug}"))
          - (4-@recent_anime.length).times do
            .large-3.columns.no-padding.recommendation
              = image_tag "default.jpg"

      .large-12.columns.hide-for-small.no-padding.center.home-banner
        :javascript
          google_ad_client = "ca-pub-3410319844519574";
          /* Homepage Banner */
          google_ad_slot = "9909234847";
          google_ad_width = 728;
          google_ad_height = 90;

        %script{:src => "http://pagead2.googlesyndication.com/pagead/show_ads.js", :type => "text/javascript"}

      .large-12.columns.option-bar
        .small-2.large-4.columns
          %p.option-title Activity Feed
        .small-10.large-8.columns.options
          %ul.status-tabs.inline-list
            %li#tab-all.active
              %a{:href => "#all", :onclick => "showRelevantSections('all')"} All
            %li
              %a{:href => "#comments", :onclick => "showRelevantSections('comments')"} Comments
            %li
              %a{:href => "#library", :onclick => "showRelevantSections('library')"} Library
            %li
              %a{:href => "#events", :onclick => "showRelevantSections('events')"} Events
      .large-12.columns.feed.no-padding
        .large-12.columns.feed-form.hide
          %form
            %input{:placeholder => "What are you up to?", :type => "text"}/

        %ul.feed-list.activity-feed
          
        .center.activity-feed-spinner
          %i.icon.icon-spin.icon-spinner.icon-4x

        :coffee
          @StoryCollectionView.fetchMore "/feed.json?"
          infiniteScrollLoader = ->
            if $(window).scrollTop() + 2000 > $(".activity-feed-spinner").offset().top
              @StoryCollectionView.fetchMore "/feed.json?"

          setInterval infiniteScrollLoader, 500
          

<commit_msg>Trending Today, not This Week.<commit_after>- if @onboarding
  = render partial: 'onboarding'

.row
  .large-12.columns.home-content

    .large-4.columns.push-8.left-column-content
      .large-12.columns.no-padding.forum-block
        .large-6.columns.block-title
          %h4 Forum
        .large-6.columns.block-link
          = link_to "view forums", forem.root_path, class: 'right'
        %hr
        %ul
          - @forum_topics.each do |topic|
            %li.large-12.columns.topic-row
              .large-12.columns.no-padding.forum-title
                .pull-left
                  = link_to truncate(topic.subject, length: 35, separator: ' '), forem.forum_topic_path(topic.forum, topic)
                .forum-time.pull-right
                  %i #{distance_of_time_in_words_to_now(topic.last_post_at)} ago

      .large-12.columns.no-padding.trending-block
        .large-12.columns.block-title
          %h4 Trending Today
        %hr
        %ul
          - @trending_anime.each_with_index do |trending, i|
            %li.large-12.columns.topic-row
              .small-1.columns.no-padding
                %p.count.center= i+1
              .small-11.columns.no-padding-right.forum-title
                .large-12.columns.no-padding
                  = anime_link trending[:anime], class: 'trending-title truncate'
                  %i #{trending[:currently_watching]} Viewers
      
      .large-12.columns.no-padding-left.no-padding-right.side-advert.hide-for-small
        :javascript
          google_ad_client = "ca-pub-3410319844519574";
          /* Homepage Sidebar */
          google_ad_slot = "8094424442";
          google_ad_width = 300;
          google_ad_height = 250;

        %script{:src => "http://pagead2.googlesyndication.com/pagead/show_ads.js", :type => "text/javascript"}

    .large-8.columns.pull-4.left-home-column.no-padding
      .large-12.columns.no-padding.recent-watched
        .recommendations.hide-for-small
          - @recent_anime.each do |watchlist|
            .large-3.columns.no-padding.recommendation
              = image_tag watchlist.anime.cover_image.url(:thumb)
              .large-12.columns.meta-wrapper
                .meta-data.large-12.columns.no-padding-left
                  %p 
                    %h5.anime-title= anime_link watchlist.anime
                  .rating{:id => watchlist.anime.slug, :"data-rating" => (watchlist.rating || -3) + 3, :"data-anime-slug" => watchlist.anime.slug}
                  %hr
                  .large-6.columns.no-padding
                    Progress:
                  .large-6.columns.no-padding.progress-number
                    %span.progress-updater{:id => watchlist.anime.slug, :"data-anime-slug" => watchlist.anime.slug, :"data-progress" => watchlist.episodes_watched, :"data-total-episodes" => watchlist.anime.episode_count, :"data-allow-increment" => "true"}
                  
                  :javascript
                    initializeRatingInterface($(".rating##{watchlist.anime.slug}"), "#{current_user.star_rating ? "starRatings" : "smileyRatings"}");
                    initializeProgressIncrement($(".progress-updater##{watchlist.anime.slug}"))
          - (4-@recent_anime.length).times do
            .large-3.columns.no-padding.recommendation
              = image_tag "default.jpg"

      .large-12.columns.hide-for-small.no-padding.center.home-banner
        :javascript
          google_ad_client = "ca-pub-3410319844519574";
          /* Homepage Banner */
          google_ad_slot = "9909234847";
          google_ad_width = 728;
          google_ad_height = 90;

        %script{:src => "http://pagead2.googlesyndication.com/pagead/show_ads.js", :type => "text/javascript"}

      .large-12.columns.option-bar
        .small-2.large-4.columns
          %p.option-title Activity Feed
        .small-10.large-8.columns.options
          %ul.status-tabs.inline-list
            %li#tab-all.active
              %a{:href => "#all", :onclick => "showRelevantSections('all')"} All
            %li
              %a{:href => "#comments", :onclick => "showRelevantSections('comments')"} Comments
            %li
              %a{:href => "#library", :onclick => "showRelevantSections('library')"} Library
            %li
              %a{:href => "#events", :onclick => "showRelevantSections('events')"} Events
      .large-12.columns.feed.no-padding
        .large-12.columns.feed-form.hide
          %form
            %input{:placeholder => "What are you up to?", :type => "text"}/

        %ul.feed-list.activity-feed
          
        .center.activity-feed-spinner
          %i.icon.icon-spin.icon-spinner.icon-4x

        :coffee
          @StoryCollectionView.fetchMore "/feed.json?"
          infiniteScrollLoader = ->
            if $(window).scrollTop() + 2000 > $(".activity-feed-spinner").offset().top
              @StoryCollectionView.fetchMore "/feed.json?"

          setInterval infiniteScrollLoader, 500
          


{'fraction_non_alphanumeric': 0.13697250478396616, 'fraction_numerical': 0.02658878034041696, 'mean_word_length': 1.9060579455662863, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 51, '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': '7461762', 'n_tokens_mistral': 3315, 'n_tokens_neox': 3065, 'n_words': 409}