<commit_before><html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <%= javascript_include_tag 'prototype' %>
    <%= javascript_include_tag 'tiny_mce/tiny_mce.js' %>
    <%= javascript_include_tag 'scriptaculous' %>
    <%= javascript_include_tag 'dragdrop' %>
    <%= javascript_include_tag 'effects' %>
    <%= javascript_include_tag 'noosfero_tiny_mce.js' %>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
            mode : "textareas",
            theme : "advanced",
            theme_advanced_toolbar_location : "top",
            theme_advanced_layout_manager: 'SimpleLayout',
            theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,undo,redo,separator,formatselect,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,link,unlink,image,table,separator,cleanup,code,separator,help",
            theme_advanced_buttons2 : "",
            theme_advanced_buttons3 : "",
            apply_source_formatting : true,
            language: <%= language.inspect %>,
    });
    </script>

    <%= design_all_header_tags %>
    <%= javascript_include_tag 'cms' %>
    <% if params[:controller] == 'cms' %>
      <%= stylesheet_link_tag 'cms' %>
    <% end %>
    <%= stylesheet_link_tag 'common' %>

    <%= stylesheet_link_tag 'menu' %>
    <%= javascript_include_tag 'menu' %>

  </head>

  <body onload='javascript: if (document.forms[0] != null && document.forms[0].elements[0] != null) { document.forms[0].elements[0].focus(); }'>

    <% unless flash[:notice].nil? %>
      <div id='notice'>
        <%= flash[:notice] %>
        <%= javascript_tag(visual_effect(:fade, "notice", :duration => 2.0)) %>
      </div>
    <% end %>

    <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;", :alt => _('Image for Loading...') %>

    <div id="wrap" class='category<%= category_color %>'>
      <div id='noosfero_bar' class='category<%= category_color %>'>
        <div id='accessibility_menu'>
          <a href='#'>Acessibilidade</a>
          <a href='#'>Central de Buscas</a>
          <a href='#'>Ir para conteúdo</a>
        </div><!-- accessibility_menu -->

        <div id='navigation_bar'>
          <%= render :file => 'shared/categories_menu' %>
        </div><!-- id='navigation_bar' -->

        <script type="text/javascript">
          prepareMenu('navigation_bar', { timeout: 50 });
        </script>

        <div id='search_box'>
          <form action="" method="GET">
            <input type='text' name='q' value='sua busca aqui ...'>
            <input type='submit' value='Buscar'>
          </form>
        </div><!-- id='search_box' -->

        <div id="header">
          <%= header %>
        </div>

        <% if @category %>
          <div id='category'>
            <%= @category.full_name %>
          </div>
        <% end %>

      </div><!-- id="noosfero_bar" -->


      <div id='content'>
        <!-- <a name='main_content'/></a> -->
        <!-- Aqui entra um conteudo tipo o titulo da pagina do usuário e os botoes do comatose? --><commit_msg>ActionItem85: fixing the focus on first field to skip search_box_form<commit_after><html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    <%= javascript_include_tag 'prototype' %>
    <%= javascript_include_tag 'tiny_mce/tiny_mce.js' %>
    <%= javascript_include_tag 'scriptaculous' %>
    <%= javascript_include_tag 'dragdrop' %>
    <%= javascript_include_tag 'effects' %>
    <%= javascript_include_tag 'noosfero_tiny_mce.js' %>
    <script language="javascript" type="text/javascript">
    tinyMCE.init({
            mode : "textareas",
            theme : "advanced",
            theme_advanced_toolbar_location : "top",
            theme_advanced_layout_manager: 'SimpleLayout',
            theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,undo,redo,separator,formatselect,separator,bullist,numlist,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,link,unlink,image,table,separator,cleanup,code,separator,help",
            theme_advanced_buttons2 : "",
            theme_advanced_buttons3 : "",
            apply_source_formatting : true,
            language: <%= language.inspect %>,
    });

    function focusOnFirstField() {
      var form = document.forms[0];
      if (form.id == 'search_box_form') {
        form = document.forms[1];
      }
      if (form != null && form.elements[0] != null) {
        form.elements[0].focus();
      }
    }
  
    </script>

    <%= design_all_header_tags %>
    <%= javascript_include_tag 'cms' %>
    <% if params[:controller] == 'cms' %>
      <%= stylesheet_link_tag 'cms' %>
    <% end %>
    <%= stylesheet_link_tag 'common' %>

    <%= stylesheet_link_tag 'menu' %>
    <%= javascript_include_tag 'menu' %>

  </head>

  <body onload='javascript: focusOnFirstField();'>

    <% unless flash[:notice].nil? %>
      <div id='notice'>
        <%= flash[:notice] %>
        <%= javascript_tag(visual_effect(:fade, "notice", :duration => 2.0)) %>
      </div>
    <% end %>

    <%= image_tag 'loading.gif', :id => 'spinner', :style => "display:none; float:right;", :alt => _('Image for Loading...') %>

    <div id="wrap" class='category<%= category_color %>'>
      <div id='noosfero_bar' class='category<%= category_color %>'>
        <div id='accessibility_menu'>
          <a href='#'>Acessibilidade</a>
          <a href='#'>Central de Buscas</a>
          <a href='#'>Ir para conteúdo</a>
        </div><!-- accessibility_menu -->

        <div id='navigation_bar'>
          <%= render :file => 'shared/categories_menu' %>
        </div><!-- id='navigation_bar' -->

        <script type="text/javascript">
          prepareMenu('navigation_bar', { timeout: 50 });
        </script>

        <div id='search_box'>
          <form id='search_box_form' action="" method="GET">
            <input type='text' name='q' value='<%= _('Your search here ...')%>'>
            <input type='submit' value='Buscar'>
          </form>
        </div><!-- id='search_box' -->

        <div id="header">
          <%= header %>
        </div>

        <% if @category %>
          <div id='category'>
            <%= @category.full_name %>
          </div>
        <% end %>

      </div><!-- id="noosfero_bar" -->


      <div id='content'>
        <!-- <a name='main_content'/></a> -->
        <!-- Aqui entra um conteudo tipo o titulo da pagina do usuário e os botoes do comatose? -->
{'fraction_non_alphanumeric': 0.17742670514962783, 'fraction_numerical': 0.004101473492328725, 'mean_word_length': 2.723981900452489, 'pattern_counts': {'":': 0, '<': 144, '<?xml version=': 0, '>': 154, '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': '2473121', 'n_tokens_mistral': 2256, 'n_tokens_neox': 2020, 'n_words': 362}