<commit_before><% unless @content.errors[:base].nil? %>
  <%= @content.errors[:base] %>
<% else %>
  <p> Choose a date to see specific project results: </p>
  <div id="datepicker">
    <input id="datepicker_field" style="display:none"/> 
  </div>
   
  <h4><%= _('Last Result') %></h4>

  <table>
    <tr>
      <td><%= _('Date') %></td>
      <td><%= @project_result.date %></td>
    </tr>
    <tr>
      <td><%= _('Load time') %></td>
      <td><%= @project_result.formatted_load_time %></td>
    </tr>
    <tr>
      <td><%= _('Analysis time') %></td>
      <td><%= @project_result.formatted_analysis_time %></td>
    </tr>
  </table>
  
  
  <script>
	  jQuery(document).ready(function($) {
  	  $("#datepicker").datepicker({ altField: '#datepicker_field', showOn: 'button', dateFormat: "yy-mm-dd",
  	  															buttonImageOnly: true, buttonImage: '/images/calendar_date_select/calendar.png',
  	  															onSelect: function(dateText, inst) {
  	  																reloadProjectWithDate(dateText) } });
																		});
  </script>
  
<% end %>
<commit_msg>[Mezuro] Set default date to project result date.<commit_after><% unless @content.errors[:base].nil? %>
  <%= @content.errors[:base] %>
<% else %>
  <p> Choose a date to see specific project results: </p>
  <div id="datepicker" data-date="<%= @project_result.date %>">
    <input id="datepicker_field" style="display:none"/> 
  </div>
   
  <h4><%= _('Last Result') %></h4>

  <table>
    <tr>
      <td><%= _('Date') %></td>
      <td><%= @project_result.date %></td>
    </tr>
    <tr>
      <td><%= _('Load time') %></td>
      <td><%= @project_result.formatted_load_time %></td>
    </tr>
    <tr>
      <td><%= _('Analysis time') %></td>
      <td><%= @project_result.formatted_analysis_time %></td>
    </tr>
  </table>
  
  
  <script>
	  jQuery(document).ready(function($) {
  	  $("#datepicker").datepicker({ altField: '#datepicker_field', showOn: 'button', dateFormat: "yy-mm-dd",
  	  															buttonImageOnly: true, buttonImage: '/images/calendar_date_select/calendar.png',
  	  															onSelect: function(dateText, inst) {
  	  															reloadProjectWithDate(dateText) } });
  	  var date = jQuery("#datepicker").attr('data-date').substr(0,10);
	    $("#datepicker").datepicker( "setDate" , date );
	    
		});
  </script>
  
<% end %>

{'fraction_non_alphanumeric': 0.21389007243289304, 'fraction_numerical': 0.002982530890498509, 'mean_word_length': 2.7870967741935484, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 0, '>': 84, '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': '4737448', 'n_tokens_mistral': 960, 'n_tokens_neox': 821, 'n_words': 159}