<commit_before>
- expanded = local_assigns[:expanded]

- if current_group.has_slideshow
  .section-head-welcome{:style=>"border-bottom:10px solid white;border-top:4px solid white"}
    .secondary-navigation-sections{:style=>"background-color:gainsboro"}
      .features{:style=>"font-family:Arial,sans-serif; font-weight:normal; font-size:12px;padding-left:10px;color:#{current_group.primary_dark}; letter-spacing:-1px;"}
        = "Todays slides...."  
        .navcontrols{:style => "width:96px; height:24px; float:right"}
          %a.show_features{:class => "features navlinks showhide left", :style=>"color:#{current_group.primary_dark}"}
            = "show slides"
          %a.hide_features{:class => "features navlinks showhide left", :style=>"color:#{current_group.primary_dark}"}
            = "hide slides"

   
        
    .section-listing-welcome{:class => "features", :style => "background-color:#ffffff; width:728px;height:220px; overflow:hidden"}
      - slideshow_delay = 0
      -current_group.doctypes.each do |doctype|
        -if doctype.name == current_group.slideshow_content
          -slideshow_delay = slideshow_delay + 15000
          -#  = slideshow_delay.to_s
          %div{:style=>"width:728px; height:200px;float:left;border-right:1px solid white", :class=>"feature-box"}
            -#= "#{slideshow_delay}"
            %h4{:style=>"height:24px;line-height:24px;text-transform:uppercase;font-family:'Arial Narrow',sans-serif;color: #{current_group.secondary}; background-color:black; border-bottom:4px solid black;margin:0; font-size:15px; letter-spacing:-1px;font-weight:bold;border-bottom:1px solid white"}
              %div{:style=>"padding:1px 0 3px 4px; height:18px; width:18px; float:left;"}
                = "<img src='/images/logos/star_16.png' height='14px' width='14px'/>"
              = "#{doctype.name}"
            .feature-slideshow{:style => "height:200px;overflow:hidden;"}
              - items_array = Array.new
              - doctype.items.reverse.each do |item|
                - items_array << item 

              .slideshow{:class=>"#{doctype.name}", :style=>"display:none"}    
                - items_array[0..5].each do |item|

                  = render :partial => "/items/slide", :locals => {:item => item, :sort=>"hot"}

          %script{:type => "text/javascript"}
            = "function slideshow(){"
            = "$(document).ready(function(){$('.slideshow.#{doctype.name}').fadeIn('fast').cycle({fx: 'fade'});});"
            = "}"
            = "setTimeout('slideshow()',#{slideshow_delay});"<commit_msg>slides<commit_after>
- expanded = local_assigns[:expanded]

- if current_group.has_slideshow
  .section-head-welcome{:style=>"border-bottom:10px solid white;border-top:4px solid white"}
    .secondary-navigation-sections{:style=>"background-color:gainsboro"}
      .features{:style=>"font-family:Arial,sans-serif; font-weight:normal; font-size:12px;padding-left:10px;color:#{current_group.primary_dark}; letter-spacing:-1px;"}
        = "Todays slides...."  
        .navcontrols{:style => "width:96px; height:24px; float:right"}
          %a.show_features{:class => "features navlinks showhide left", :style=>"color:#{current_group.primary_dark}"}
            = "show slides"
          %a.hide_features{:class => "features navlinks showhide left", :style=>"color:#{current_group.primary_dark}"}
            = "hide slides"

   
        
    .section-listing-welcome{:class => "features", :style => "background-color:#ffffff; width:728px;height:220px; overflow:hidden"}
      - slideshow_delay = 0
      -current_group.doctypes.each do |doctype|
        -if doctype.name == current_group.slideshow_content
          -slideshow_delay = slideshow_delay + 100
          -#  = slideshow_delay.to_s
          %div{:style=>"width:728px; height:200px;float:left;border-right:1px solid white", :class=>"feature-box"}
            -#= "#{slideshow_delay}"
            %h4{:style=>"height:24px;line-height:24px;text-transform:uppercase;font-family:'Arial Narrow',sans-serif;color: #{current_group.secondary}; background-color:black; border-bottom:4px solid black;margin:0; font-size:15px; letter-spacing:-1px;font-weight:bold;border-bottom:1px solid white"}
              %div{:style=>"padding:1px 0 3px 4px; height:18px; width:18px; float:left;"}
                = "<img src='/images/logos/star_16.png' height='14px' width='14px'/>"
              = "#{doctype.name}"
            .feature-slideshow{:style => "height:200px;overflow:hidden;"}
              - items_array = Array.new
              - doctype.items.reverse.each do |item|
                - items_array << item 

              .slideshow{:class=>"#{doctype.name}", :style=>"display:none"}    
                - items_array[0..5].each do |item|

                  = render :partial => "/items/slide", :locals => {:item => item, :sort=>"hot"}

          %script{:type => "text/javascript"}
            = "function slideshow(){"
            = "$(document).ready(function(){$('.slideshow.#{doctype.name}').fadeIn('fast').cycle({fx: 'fade'});});"
            = "}"
            = "setTimeout('slideshow()',#{slideshow_delay});"
{'fraction_non_alphanumeric': 0.1738792936153697, 'fraction_numerical': 0.023287405394915583, 'mean_word_length': 3.153102336825141, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 49, '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': '2123261', 'n_tokens_mistral': 1762, 'n_tokens_neox': 1652, 'n_words': 223}