<commit_before>- @tabbed_navigation_items = common_tabs(:pages)
- @user_navigation_items = user_tabs(nil)

#pageWidgetForms
  - Page.widgets.each do |widget|
    = render :partial => widget.form_partial, :locals => {:widget => widget} unless widget.form_partial.nil? 

#pageTagsWrapper
  %span.floatleft=:tags.l
  %ul#page_tags
    = render :partial => 'tags/show', :collection => @page.tags_list
  #page_tags_form
  #page_edit_tags
    %a#edit_PageTags{:href => '#'}= :edit_tags.l

#slots.pageSlots
  -# Util widgets
  #pageInsert{:style => 'display:none'}
    %p#cpi= :insert_here.l

  #pageInsertItems
    #pageInsertItemsBar{:style => 'display:none'}
      #pageInsertItemCancel
        %a{:href => '#'}= :cancel.l
      #pageInsertItemWidgets
        = "#{:add_to_page.l}:"
        %span= Page.widgets.collect { |widget| "<a class=\"add_#{widget.name.to_s}\" href=\"#\">#{widget.name.to_sym.l}</a>"}.to_sentence(:connector => :or.l, :skip_last_comma => true)
    
    #pageTablet
      #pageTabletContainer
    
  -# Core slots
  - @page.slots.each do |slot|
    .pageSlot{:id => "page_slot_#{slot.id}", :slot => slot.id}
      = render :partial => 'slot', :locals => {:object => slot.rel_object, :slot => slot}

  %pageFooter#page_slot_footer{:slot => 0}

#pageOptions
  - if @page.can_be_favourited_by(@logged_user)
    %a#pageSetFavourite{:href => '#', :style => (@page.is_favourite?(@user) ? 'display:none;' : nil)}= :favourite.l
    %a#pageSetNotFavourite{:href => '#', :style => (@page.is_favourite?(@user) ? nil : 'display:none;')}= :not_favourite.l
  
  - if @page.can_be_shared_by(@logged_user)
    |
    =  (@page.is_shared? ? :page_is_shared : :page_is_not_shared).l_with_args(:link => link_to(:change.l, hash_for_share_page_path.merge(:id => @page.id, :use_route => nil)))
  
  - if @page.can_be_duplicated_by(@logged_user)
    |
    %a#pageDuplicate{:href => '#'}= :duplicate_page.l
<commit_msg>Correct pageFooter div<commit_after>- @tabbed_navigation_items = common_tabs(:pages)
- @user_navigation_items = user_tabs(nil)

#pageWidgetForms
  - Page.widgets.each do |widget|
    = render :partial => widget.form_partial, :locals => {:widget => widget} unless widget.form_partial.nil? 

#pageTagsWrapper
  %span.floatleft=:tags.l
  %ul#page_tags
    = render :partial => 'tags/show', :collection => @page.tags_list
  #page_tags_form
  #page_edit_tags
    %a#edit_PageTags{:href => '#'}= :edit_tags.l

#slots.pageSlots
  -# Util widgets
  #pageInsert{:style => 'display:none'}
    %p#cpi= :insert_here.l

  #pageInsertItems
    #pageInsertItemsBar{:style => 'display:none'}
      #pageInsertItemCancel
        %a{:href => '#'}= :cancel.l
      #pageInsertItemWidgets
        = "#{:add_to_page.l}:"
        %span= Page.widgets.collect { |widget| "<a class=\"add_#{widget.name.to_s}\" href=\"#\">#{widget.name.to_sym.l}</a>"}.to_sentence(:connector => :or.l, :skip_last_comma => true)
    
    #pageTablet
      #pageTabletContainer
    
  -# Core slots
  - @page.slots.each do |slot|
    .pageSlot{:id => "page_slot_#{slot.id}", :slot => slot.id}
      = render :partial => 'slot', :locals => {:object => slot.rel_object, :slot => slot}

  .pageSlot.pageFooter#page_slot_footer{:slot => 0}

#pageOptions
  - if @page.can_be_favourited_by(@logged_user)
    %a#pageSetFavourite{:href => '#', :style => (@page.is_favourite?(@user) ? 'display:none;' : nil)}= :favourite.l
    %a#pageSetNotFavourite{:href => '#', :style => (@page.is_favourite?(@user) ? nil : 'display:none;')}= :not_favourite.l
  
  - if @page.can_be_shared_by(@logged_user)
    |
    =  (@page.is_shared? ? :page_is_shared : :page_is_not_shared).l_with_args(:link => link_to(:change.l, hash_for_share_page_path.merge(:id => @page.id, :use_route => nil)))
  
  - if @page.can_be_duplicated_by(@logged_user)
    |
    %a#pageDuplicate{:href => '#'}= :duplicate_page.l

{'fraction_non_alphanumeric': 0.18548387096774194, 'fraction_numerical': 0.0005202913631633715, 'mean_word_length': 4.2170963364993215, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 59, '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': '3602724', 'n_tokens_mistral': 1501, 'n_tokens_neox': 1471, 'n_words': 208}