<commit_before>!!! Strict
%html
  %head
    %meta{ 'http-equiv' => 'content-type', :content => 'text/html;charset=UTF-8'}/
    %title= "#{AppConfig.site_name} - #{h(@page.title)}"
    
    = stylesheet_link_tag 'pages'
    - unless @additional_stylesheets.nil?
      - @additional_stylesheets.each do |ss|
        = stylesheet_link_tag ss
    
    = javascript_include_tag 'prototype.js' 
    = javascript_include_tag 'effects.js'
    = javascript_include_tag 'dragdrop.js'
    = javascript_include_tag 'controls.js'
    = javascript_include_tag 'lowpro.js'
    = javascript_include_tag 'application.js'
    
    - if protect_against_forgery?
      = javascript_tag "const AUTH_TOKEN = #{form_authenticity_token.inspect};"
    
    = javascript_tag "const PAGE_ID = #{@page.id}; const PAGE_READONLY = #{!@page.can_be_edited_by(@logged_user)};"
  
  %body#body
    #wrapper
      
      -# Top of page (tabs, user box, etc)
      #header
        != render :partial => 'layouts/tabs'
      
      #outerWrapper
        #innerWrapper
          -# Displays general alerts
          #status_bar{:class => (flash[:error] ? 'flash_error' : 'flash_success')}= h flash[:message]
          
          #pageContent
            #content
              #pageTools
                - if @page.can_be_edited_by(@logged_user)
                  -# Really need to clean this up!
                  %div= "#{:add_to_page.l} <span> #{ Page.widgets.collect { |widget| "<a class=\"add_#{widget.name.to_s} atTop\" href=\"#\">#{widget.name.to_sym.l}</a>"}.join(', ') }</span>"
              .pageHeader{:url => ''}
                = @page.can_be_edited_by(@logged_user) ? page_handle([ ['edit', :edit.l] ], 'page_header_handle', '.pageHeader') : ''
                
                #page_header.inner
                  %h1
                    %span{'hover_handle' => 'page_header_handle'}= h @page.title
                #page_header_form.pageHeaderForm{:style => 'display: none'}
                
                -# Content
                = yield
            
            #sidebar
              = render :partial => (@content_for_sidebar.nil? ? 'layouts/blank_sidebar' : @content_for_sidebar )
            <commit_msg>Correc indent on page layout<commit_after>!!! Strict
%html
  %head
    %meta{ 'http-equiv' => 'content-type', :content => 'text/html;charset=UTF-8'}/
    %title= "#{AppConfig.site_name} - #{h(@page.title)}"
    
    = stylesheet_link_tag 'pages'
    - unless @additional_stylesheets.nil?
      - @additional_stylesheets.each do |ss|
        = stylesheet_link_tag ss
    
    = javascript_include_tag 'prototype.js' 
    = javascript_include_tag 'effects.js'
    = javascript_include_tag 'dragdrop.js'
    = javascript_include_tag 'controls.js'
    = javascript_include_tag 'lowpro.js'
    = javascript_include_tag 'application.js'
    
    - if protect_against_forgery?
      = javascript_tag "const AUTH_TOKEN = #{form_authenticity_token.inspect};"
    
    = javascript_tag "const PAGE_ID = #{@page.id}; const PAGE_READONLY = #{!@page.can_be_edited_by(@logged_user)};"
  
  %body#body
    #wrapper
      
      -# Top of page (tabs, user box, etc)
      #header
        != render :partial => 'layouts/tabs'
      
      #outerWrapper
        #innerWrapper
          -# Displays general alerts
          #status_bar{:class => (flash[:error] ? 'flash_error' : 'flash_success')}= h flash[:message]
          
          #pageContent
            #content
              #pageTools
                - if @page.can_be_edited_by(@logged_user)
                  -# Really need to clean this up!
                  %div= "#{:add_to_page.l} <span> #{ Page.widgets.collect { |widget| "<a class=\"add_#{widget.name.to_s} atTop\" href=\"#\">#{widget.name.to_sym.l}</a>"}.join(', ') }</span>"
              .pageHeader{:url => ''}
                = @page.can_be_edited_by(@logged_user) ? page_handle([ ['edit', :edit.l] ], 'page_header_handle', '.pageHeader') : ''
                
                #page_header.inner
                  %h1
                    %span{'hover_handle' => 'page_header_handle'}= h @page.title
                #page_header_form.pageHeaderForm{:style => 'display: none'}
                
              -# Content
              = yield
            
            #sidebar
              = render :partial => (@content_for_sidebar.nil? ? 'layouts/blank_sidebar' : @content_for_sidebar )
            
{'fraction_non_alphanumeric': 0.14015927189988622, 'fraction_numerical': 0.0009101251422070534, 'mean_word_length': 2.1422444603288064, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, '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': '1341874', 'n_tokens_mistral': 1434, 'n_tokens_neox': 1359, 'n_words': 234}