<commit_before><%# As we want to display a header for every day and again for every user,
    we use three variables to keep track of the layout %>
<% @day = nil %>
<% @user_id = nil %>
<% @table_is_open = false %>

<%= form_tag({}) do -%>
  <%= hidden_field_tag 'back_url', url_for(params) %>

  <div class="autoscroll">
    <% entries.each do |entry| -%>

      <%= open_day(entry.spent_on) %>

      <%= user_header(entry.user) %>

      <tr class="time-entry <%= cycle("odd", "even") %>">
        <%= raw @query.inline_columns.map {|column| "<td class=\"#{column.css_classes}\">#{diary_column_content(column, entry)}</td>"}.join %>
        <td align="center">
        <% if entry.editable_by?(User.current) -%>
            <%= link_to image_tag('edit.png'), edit_diary_entry_path(entry, params),
                                               :title => l(:button_edit) %>
            <%= link_to image_tag('delete.png'), diary_entry_path(entry, params),
                                                 :data => {:confirm => l(:text_are_you_sure)},
                                                 :method => :delete,
                                                 :title => l(:button_delete) %>
        <% end -%>
        </td>
      </tr>
      
    <% end %>

    <%= close_table %>

    <%= close_day %>

  </div>
<% end -%><commit_msg>Add css class for list-based custom fields<commit_after><%# As we want to display a header for every day and again for every user,
    we use three variables to keep track of the layout %>
<% @day = nil %>
<% @user_id = nil %>
<% @table_is_open = false %>

<%= form_tag({}) do -%>
  <%= hidden_field_tag 'back_url', url_for(params) %>

  <div class="autoscroll">
    <% entries.each do |entry| -%>

      <%= open_day(entry.spent_on) %>

      <%= user_header(entry.user) %>

      <tr class="time-entry <%= cycle("odd", "even") %>">
        <%
          @query.inline_columns.each do |column|
            content = diary_column_content(column, entry)
            classes = column.css_classes
            # Add css class for custom fields with format 'list'
            classes << " #{content}" if column.respond_to?(:custom_field) &&
                                        column.custom_field.respond_to?(:field_format) &&
                                        column.custom_field.field_format == "list"
        -%>
          <td class="<%= classes %>"><%= content %></td>
        <% end -%>
        <td align="center">
        <% if entry.editable_by?(User.current) -%>
            <%= link_to image_tag('edit.png'), edit_diary_entry_path(entry, params),
                                               :title => l(:button_edit) %>
            <%= link_to image_tag('delete.png'), diary_entry_path(entry, params),
                                                 :data => {:confirm => l(:text_are_you_sure)},
                                                 :method => :delete,
                                                 :title => l(:button_delete) %>
        <% end -%>
        </td>
      </tr>
      
    <% end %>

    <%= close_table %>

    <%= close_day %>

  </div>
<% end -%>
{'fraction_non_alphanumeric': 0.16178343949044585, 'fraction_numerical': 0.0, 'mean_word_length': 1.714779602420052, 'pattern_counts': {'":': 0, '<': 62, '<?xml version=': 0, '>': 70, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6631016', 'n_tokens_mistral': 969, 'n_tokens_neox': 886, 'n_words': 196}