<commit_before><%
  show_empty_sections ||= false
  remove_automatic_sections ||= false

  body_content_title = page_title if (body_content_title = yield :body_content_title).blank? and !show_empty_sections and !remove_automatic_sections
  body_content_left = @page[:body] if (body_content_left = yield :body_content_left).blank? and !show_empty_sections and !remove_automatic_sections and @page.present?
  body_content_right = @page[:side_body] if (body_content_right = yield :body_content_right).blank? and !show_empty_sections and !remove_automatic_sections and @page.present?

  extra_body_content_classes = []
  extra_body_content_classes << "no_title" if body_content_title.blank?
  extra_body_content_classes << "no_left" if body_content_left.blank?
  extra_body_content_classes << "no_right" if body_content_right.blank?
-%>
<%= render :partial => "/shared/submenu" if !admin? and (show_submenu != false) and RefinerySetting.find_or_set(:show_submenu_on_content_pages, true) %>
<div id='body_content' class='clearfix<%= " #{extra_body_content_classes.join(" ")}" if extra_body_content_classes.any? %>'>
<% if body_content_title.present? or (show_empty_sections and !remove_automatic_sections) -%>
  <h1 id='body_content_page_title'>
    <%= body_content_title %>
  </h1>
<% end -%>
<% if body_content_left.present? or (show_empty_sections and !remove_automatic_sections) -%>
  <div id='body_content_left' class='clearfix'>
    <%= body_content_left %>
  </div>
<% end -%>
<% if body_content_right.present? or (show_empty_sections and !remove_automatic_sections)  -%>
  <div id='body_content_right' class='clearfix'>
    <%= body_content_right %><commit_msg>Of course if the variable was never actually defined then we need to handle that too.<commit_after><%
  show_empty_sections ||= false
  remove_automatic_sections ||= false

  body_content_title = page_title if (body_content_title = yield :body_content_title).blank? and !show_empty_sections and !remove_automatic_sections
  body_content_left = @page[:body] if (body_content_left = yield :body_content_left).blank? and !show_empty_sections and !remove_automatic_sections and @page.present?
  body_content_right = @page[:side_body] if (body_content_right = yield :body_content_right).blank? and !show_empty_sections and !remove_automatic_sections and @page.present?

  extra_body_content_classes = []
  extra_body_content_classes << "no_title" if body_content_title.blank?
  extra_body_content_classes << "no_left" if body_content_left.blank?
  extra_body_content_classes << "no_right" if body_content_right.blank?
-%>
<%= render :partial => "/shared/submenu" if !admin? and (!defined?(show_submenu) or show_submenu == true) and RefinerySetting.find_or_set(:show_submenu_on_content_pages, true) %>
<div id='body_content' class='clearfix<%= " #{extra_body_content_classes.join(" ")}" if extra_body_content_classes.any? %>'>
<% if body_content_title.present? or (show_empty_sections and !remove_automatic_sections) -%>
  <h1 id='body_content_page_title'>
    <%= body_content_title %>
  </h1>
<% end -%>
<% if body_content_left.present? or (show_empty_sections and !remove_automatic_sections) -%>
  <div id='body_content_left' class='clearfix'>
    <%= body_content_left %>
  </div>
<% end -%>
<% if body_content_right.present? or (show_empty_sections and !remove_automatic_sections)  -%>
  <div id='body_content_right' class='clearfix'>
    <%= body_content_right %>
{'fraction_non_alphanumeric': 0.12164527421236873, 'fraction_numerical': 0.0011668611435239206, 'mean_word_length': 6.993006993006993, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 39, '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': '3435400', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1114, 'n_words': 221}