<commit_before><div id='fields_for_new_entry_form'>

  <%= l(:label_issue) %>
  <% if (@project.blank?) %>
    <%= select_tag('issue_id', "<option value='-1'>-</option>".html_safe) %>
  <% else %>
    <%= select_tag('issue_id',
                   options_for_select([[l(:select_issues_option), 0]] + @assigned_issues.collect { |i| ["##{i.id} - #{i.subject}".html_safe, i.id] })) %>
  <% end -%>
  <%= l(:label_date) %>
  <%= text_field_tag('time_entry_spent_on', if (Date.today >= @from && Date.today <= @to) then Date.today else '' end, :size => 10) %> <%= calendar_for('time_entry_spent_on') %>
  <%= l(:label_activity) %>
  <%= select(:time_entry, :activity_id, activities_for_select)%>
  <%= l(:field_hours) %>
  <%= text_field_tag('time_entry[hours]', '', :size => 6)%>
  <%= l(:field_comments) %>
  <%= text_field_tag('time_entry[comments]', '', :size => 30)%>
  <%# Añadir campos definidos por el usuario %>
  <% @time_entry.custom_field_values.each do |value| %>
    <%= custom_field_tag_with_label :time_entry, value %>
  <% end %>
  <p>
    <%= submit_tag l(:button_save), :name => nil %><commit_msg>#50 Sorting is not working<commit_after><div id='fields_for_new_entry_form'>

  <%= l(:label_issue) %>
  <% if (@project.blank?) %>
    <%= select_tag('issue_id', "<option value='-1'>-</option>".html_safe) %>
  <% else %>
    <%= select_tag('issue_id',
                   options_for_select([[l(:select_issues_option), 0]] + @assigned_issues.collect { |i| ["##{i.id} - #{i.subject}".html_safe, i.id] })) %>
  <% end -%>
  <%= l(:label_date) %>
  <%= text_field_tag('time_entry_spent_on', if (Date.today >= @from && Date.today <= @to) then Date.today else '' end, :size => 10) %> <%= calendar_for('time_entry_spent_on') %>
  <%= l(:label_activity) %>
  <%= select(:time_entry, :activity_id, activities_for_select)%>
  <%= l(:field_hours) %>
  <%= text_field_tag('time_entry[hours]', '', :size => 6)%>
  <%= l(:field_comments) %>
  <%= text_field_tag('time_entry[comments]', '', :size => 30)%>
  <%# Añadir campos definidos por el usuario %>
  <% if (@time_entry && @time_entry.custom_field_values)
       @time_entry.custom_field_values.each do |value| %>
    <%= custom_field_tag_with_label :time_entry, value %>
    <% end 
     end %>
  <p>
    <%= submit_tag l(:button_save), :name => nil %>
{'fraction_non_alphanumeric': 0.2265625, 'fraction_numerical': 0.006944444444444444, 'mean_word_length': 4.488095238095238, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 61, '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': '5448005', 'n_tokens_mistral': 962, 'n_tokens_neox': 864, 'n_words': 132}