<commit_before>
.anime-discover.anime-show.quote-page
  .row

    // Left Column
    .large-2.columns.no-padding-right
      .quote-thumb
        = image_tag @anime.cover_image.url(:thumb)
      / .series-rating
      /   %i.icon-star
      /   %i.icon-star
      /   %i.icon-star
      /   %i.icon-star-empty
      /   %i.icon-star-empty

      .large-12.columns.no-padding
        .watchlist-status-button{:"data-anime" => @anime.slug, :"data-status" => @watchlist ? @watchlist.status.parameterize : "false"}
        :coffee
          initializeWatchlistStatusButton $(".watchlist-status-button")

      - if false
        .large-12.columns.no-padding.side-block
          %h5 FRANCHISE
          %ul.franchise-list
            %li= link_to "Bakemonogatari", "#", :class => "active"
            %li= link_to "Nisemonogatari", "#"
            %li= link_to "Bakemonogatari (Manga)", "#"

      .large-12.columns.no-padding.side-block
        = link_to (image_tag "jlist.png", alt: "J-List"), "http://anime.jlist.com/click/4785?url=http://www.jlist.com/search/all/#{@anime.canonical_title.parameterize.gsub("-", "_")}"
      .large-12.columns.no-padding.side-block
        = link_to (image_tag "amazon.png", alt: "Amazon"), "http://www.amazon.com/s/?field-keywords=#{u @anime.canonical_title}&tag=hummingbir0fe-20"

      - if @similar.length > 0
        .large-12.columns.no-padding.side-block
          %h5 SIMILAR
          - @similar.each do |similar|
            .large-6.columns.sidebar-series.tip-top{"data-options" => "disable-for-touch:true", "data-tooltip" => "", :title => similar.canonical_title(current_user)}
              = link_to (image_tag similar.cover_image.url(:thumb), alt: similar.canonical_title), similar

    // Center Column
    .large-7.columns.center-column
      .panel
        .large-12.columns
          %h2.series-title= title @anime.canonical_title(current_user)
          - if (alt = @anime.alternate_title(current_user)) and alt.strip.length > 0
            %span.series-alt-title (#{alt}) 
          %span.air-date 

        .large-12.columns
          %p.series-meta-data 
            / Show type
            - if @anime.show_type
              %span 
                - if @anime.show_type == "TV"
                  TV Series
                - else
                  = @anime.show_type
                ·
            / Age rating
            - if @anime.age_rating
              %span 
                = @anime.age_rating
                - if @anime.age_rating_guide
                  (#{@anime.age_rating_guide})
                ·
            / Episode count
            %span 
              - if @anime.episode_count and @anime.episode_count > 0
                = @anime.episode_count
              - else
                ?
              Episodes ·
            / Episode length
            %span 
              - if @anime.episode_length and @anime.episode_length > 0
                = @anime.episode_length
              - else
                ?
              Min Each ·
            %span
              = @anime.status
          %hr
        .large-12.columns
          .genres
            - @anime.genres.each do |genre|
              = link_to genre.name, genre, class: 'series-tag'
          / Synopsis
          %p.series-description 
            - if @anime.synopsis.length > 500
              = truncate @anime.synopsis, length: 500, separator: ' ', omission: '...'
              = link_to_function "[read more]", "$(this).parent().html('#{j @anime.synopsis}')"
            - else
              = @anime.synopsis
          .social-links
            %ul.inline-list
              %li
                .fb-like{"data-layout" => "button_count", "data-send" => "false", "data-show-faces" => "false", "data-width" => "50"}
              %li{:style => "background: none; width: 78px;"}
                %a.twitter-share-button{"data-via" => "Hummingbird_me", :href => "https://twitter.com/share"} Tweet
              %li
                .g-plusone{"data-size" => "medium"}
          %hr

        // Cast
        .large-12.columns
          %h4 CAST

          // Hide me if only one language!!!
          - if @languages.length > 1
            %dl.sub-nav.language-select
              %dt Language:
              - @languages.each_with_index do |language, i|
                %dd{:class => ("active" if i == 0), :id => language}
                  %a(href="javascript:void(0)"){:id => language}= language
                
            :coffee
              $("dl.language-select a").click ->
                language = $(this).attr("id")
                $("dl.language-select dd").removeClass("active")
                $("dl.language-select dd#" + language).addClass("active")
                $("ul.cast").hide()
                $("ul.cast#" + language).show()

          - @languages.each_with_index do |language, i|
            %ul.cast{:id => language, :style => ("display: none" if i != 0)}
              - @castings.select {|x| x.role == language }.each do |casting|
                %li.actor
                  %a.character
                    = image_tag casting.character.image.url(:thumb_small), alt: "#{casting.character.name} - #{@anime.canonical_title}", width: 30
                    = casting.character.name
                  %span.va
                    %a.voice-actor
                      = casting.person.name
                      = image_tag casting.person.image.url(:thumb_small), alt: "#{casting.person.name} - Voice Actor", width: 30, height: 47

              %li.show-more
                %a(data-tooltip title="Coming soon!"){:href => "javascript:void(0)"} Show all actors +
              %hr
            
      .large-12.columns.panel.ad-zone.center
        :javascript
          google_ad_client = "ca-pub-3410319844519574";
          /* Anime Page - Center Column */
          google_ad_slot = "4664352842";
          google_ad_width = 468;
          google_ad_height = 60;
        %script{:src => "http://pagead2.googlesyndication.com/pagead/show_ads.js", :type => "text/javascript"}

      .large-12.columns.panel.popular-reviews
        .large-12.columns
          %h4 Trending Reviews
          - @reviews.each do |review|
            %hr
            .large-12.columns.no-padding
              .large-1.columns.no-padding.center
                = avatar_link review.user
              .large-9.columns.review-left-wrapper
                %h5 
                  Review by
                  = link_to review.user.name, review.user
                %p= review.summary || truncate(strip_tags(review.content), length: 140, separator: ' ', omission: '...')
                %p= link_to "Read Review", anime_review_path(@anime, review)
              .large-2.columns.no-padding
                .chart{:"data-percent" => review.rating * 10}
                  = review.rating<commit_msg>Smaller user review avatar on the show anime page.<commit_after>
.anime-discover.anime-show.quote-page
  .row

    // Left Column
    .large-2.columns.no-padding-right
      .quote-thumb
        = image_tag @anime.cover_image.url(:thumb)
      / .series-rating
      /   %i.icon-star
      /   %i.icon-star
      /   %i.icon-star
      /   %i.icon-star-empty
      /   %i.icon-star-empty

      .large-12.columns.no-padding
        .watchlist-status-button{:"data-anime" => @anime.slug, :"data-status" => @watchlist ? @watchlist.status.parameterize : "false"}
        :coffee
          initializeWatchlistStatusButton $(".watchlist-status-button")

      - if false
        .large-12.columns.no-padding.side-block
          %h5 FRANCHISE
          %ul.franchise-list
            %li= link_to "Bakemonogatari", "#", :class => "active"
            %li= link_to "Nisemonogatari", "#"
            %li= link_to "Bakemonogatari (Manga)", "#"

      .large-12.columns.no-padding.side-block
        = link_to (image_tag "jlist.png", alt: "J-List"), "http://anime.jlist.com/click/4785?url=http://www.jlist.com/search/all/#{@anime.canonical_title.parameterize.gsub("-", "_")}"
      .large-12.columns.no-padding.side-block
        = link_to (image_tag "amazon.png", alt: "Amazon"), "http://www.amazon.com/s/?field-keywords=#{u @anime.canonical_title}&tag=hummingbir0fe-20"

      - if @similar.length > 0
        .large-12.columns.no-padding.side-block
          %h5 SIMILAR
          - @similar.each do |similar|
            .large-6.columns.sidebar-series.tip-top{"data-options" => "disable-for-touch:true", "data-tooltip" => "", :title => similar.canonical_title(current_user)}
              = link_to (image_tag similar.cover_image.url(:thumb), alt: similar.canonical_title), similar

    // Center Column
    .large-7.columns.center-column
      .panel
        .large-12.columns
          %h2.series-title= title @anime.canonical_title(current_user)
          - if (alt = @anime.alternate_title(current_user)) and alt.strip.length > 0
            %span.series-alt-title (#{alt}) 
          %span.air-date 

        .large-12.columns
          %p.series-meta-data 
            / Show type
            - if @anime.show_type
              %span 
                - if @anime.show_type == "TV"
                  TV Series
                - else
                  = @anime.show_type
                ·
            / Age rating
            - if @anime.age_rating
              %span 
                = @anime.age_rating
                - if @anime.age_rating_guide
                  (#{@anime.age_rating_guide})
                ·
            / Episode count
            %span 
              - if @anime.episode_count and @anime.episode_count > 0
                = @anime.episode_count
              - else
                ?
              Episodes ·
            / Episode length
            %span 
              - if @anime.episode_length and @anime.episode_length > 0
                = @anime.episode_length
              - else
                ?
              Min Each ·
            %span
              = @anime.status
          %hr
        .large-12.columns
          .genres
            - @anime.genres.each do |genre|
              = link_to genre.name, genre, class: 'series-tag'
          / Synopsis
          %p.series-description 
            - if @anime.synopsis.length > 500
              = truncate @anime.synopsis, length: 500, separator: ' ', omission: '...'
              = link_to_function "[read more]", "$(this).parent().html('#{j @anime.synopsis}')"
            - else
              = @anime.synopsis
          .social-links
            %ul.inline-list
              %li
                .fb-like{"data-layout" => "button_count", "data-send" => "false", "data-show-faces" => "false", "data-width" => "50"}
              %li{:style => "background: none; width: 78px;"}
                %a.twitter-share-button{"data-via" => "Hummingbird_me", :href => "https://twitter.com/share"} Tweet
              %li
                .g-plusone{"data-size" => "medium"}
          %hr

        // Cast
        .large-12.columns
          %h4 CAST

          // Hide me if only one language!!!
          - if @languages.length > 1
            %dl.sub-nav.language-select
              %dt Language:
              - @languages.each_with_index do |language, i|
                %dd{:class => ("active" if i == 0), :id => language}
                  %a(href="javascript:void(0)"){:id => language}= language
                
            :coffee
              $("dl.language-select a").click ->
                language = $(this).attr("id")
                $("dl.language-select dd").removeClass("active")
                $("dl.language-select dd#" + language).addClass("active")
                $("ul.cast").hide()
                $("ul.cast#" + language).show()

          - @languages.each_with_index do |language, i|
            %ul.cast{:id => language, :style => ("display: none" if i != 0)}
              - @castings.select {|x| x.role == language }.each do |casting|
                %li.actor
                  %a.character
                    = image_tag casting.character.image.url(:thumb_small), alt: "#{casting.character.name} - #{@anime.canonical_title}", width: 30
                    = casting.character.name
                  %span.va
                    %a.voice-actor
                      = casting.person.name
                      = image_tag casting.person.image.url(:thumb_small), alt: "#{casting.person.name} - Voice Actor", width: 30, height: 47

              %li.show-more
                %a(data-tooltip title="Coming soon!"){:href => "javascript:void(0)"} Show all actors +
              %hr
            
      .large-12.columns.panel.ad-zone.center
        :javascript
          google_ad_client = "ca-pub-3410319844519574";
          /* Anime Page - Center Column */
          google_ad_slot = "4664352842";
          google_ad_width = 468;
          google_ad_height = 60;
        %script{:src => "http://pagead2.googlesyndication.com/pagead/show_ads.js", :type => "text/javascript"}

      .large-12.columns.panel.popular-reviews
        .large-12.columns
          %h4 Trending Reviews
          - @reviews.each do |review|
            %hr
            .large-12.columns.no-padding
              .large-1.columns.no-padding.center
                = avatar_link review.user, :thumb_small
              .large-9.columns.review-left-wrapper
                %h5 
                  Review by
                  = link_to review.user.name, review.user
                %p= review.summary || truncate(strip_tags(review.content), length: 140, separator: ' ', omission: '...')
                %p= link_to "Read Review", anime_review_path(@anime, review)
              .large-2.columns.no-padding
                .chart{:"data-percent" => review.rating * 10}
                  = review.rating
{'fraction_non_alphanumeric': 0.13971605387695668, 'fraction_numerical': 0.015580633418274481, 'mean_word_length': 1.5329153605015673, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 63, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5774526', 'n_tokens_mistral': 4398, 'n_tokens_neox': 4068, 'n_words': 710}