<commit_before>file 'app/helpers/application_helper.rb', 
%q{module ApplicationHelper
  def body_class
    "#{controller.controller_name} #{controller.controller_name}-#{controller.action_name}"
  end
  
  def title(page_title)
    content_for(:title) { page_title }
  end
  
end
}

  
file 'app/views/layouts/_flashes.html.haml', 
%q{#flash
  - flash.each do |key, value|
    #flash{:id => key}
      = h value
}

# A haml + blueprint compatible layout
file 'app/views/layouts/application.html.haml', <<-EOS
!!! XML
!!! Strict
%html
  %head
    - title = yield(:title)
    - title = "APP_NAME | " + title if title
    %title= title || \'APP_DESCRIPTION\'
    
    = stylesheet_link_tag 'compiled/screen.css', :media => 'screen, projection'
    = stylesheet_link_tag 'compiled/print.css', :media => 'print'
    /[if IE]
      = stylesheet_link_tag 'compiled/ie.css', :media => 'screen, projection'
    
   %body.three-col
    .container
      #header
        %h2 Header
      #content
        %h2 Content
        - render :partial => 'layouts/flashes'
        = yield :layout<commit_msg>fixed title display in layout<commit_after>file 'app/helpers/application_helper.rb', 
%q{module ApplicationHelper
  def body_class
    "#{controller.controller_name} #{controller.controller_name}-#{controller.action_name}"
  end
  
  # Usage: simply invoke title() at the top of each view
  # E.g. 
  # - title "Home"
  def title(page_title)
    content_for(:title) { page_title }
  end
  
end
}

  
file 'app/views/layouts/_flashes.html.haml', 
%q{#flash
  - flash.each do |key, value|
    #flash{:id => key}
      = h value
}

# A haml + blueprint compatible layout
file 'app/views/layouts/application.html.haml', <<-EOS
!!! XML
!!! Strict
%html
  %head
    - title = yield(:title)
    - title = APP_NAME + " | " + title if title
    %title= title || APP_DESCRIPTION
    
    = stylesheet_link_tag 'compiled/screen.css', :media => 'screen, projection'
    = stylesheet_link_tag 'compiled/print.css', :media => 'print'
    /[if IE]
      = stylesheet_link_tag 'compiled/ie.css', :media => 'screen, projection'
    
   %body.three-col
    .container
      #header
        %h2 Header
      #content
        %h2 Content
        - render :partial => 'layouts/flashes'
        = yield :layout
{'fraction_non_alphanumeric': 0.13802197802197802, 'fraction_numerical': 0.0017582417582417582, 'mean_word_length': 2.924137931034483, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1845504', 'n_tokens_mistral': 779, 'n_tokens_neox': 769, 'n_words': 170}