<commit_before> <% user = User.find(payform.user_id) %>
 <% grouped_items = payform.payform_items.select{|p| p.active}.group_by{|p| p.category.billing_code} %>
 <% grouped_items.each_with_index do |(billing_code, payform_items), index| %>
    <% key = index + 1 %>
    <% description = current_department.name+Date.today.strftime("_%Y_%m_%d") %>
    <% end_date = payform.date.strftime("%Y-%m-%d")%>
    <% start_date = payform.date.previous_sunday.strftime("%Y-%m-%d")%>
    <% hours = PayformItem.rounded_hours(payform_items) %>
    <% ptaeoO2 = billing_code ? billing_code+".02" : ""%>
    <Row ss:AutoFitHeight="0">
        <Cell ss:Index="2"><Data ss:Type="Number"><%= key %></Data></Cell>
        <Cell><Data ss:Type="Number">1</Data></Cell>
        <Cell ss:Index="5"><Data ss:Type="String"><%= description %></Data></Cell>
        <Cell><Data ss:Type="String">N</Data></Cell>
        <Cell><Data ss:Type="String"><%= start_date %></Data></Cell><commit_msg>fix handling of empty string<commit_after> <% user = User.find(payform.user_id) %>
 <% grouped_items = payform.payform_items.select{|p| p.active}.group_by{|p| p.category.billing_code} %>
 <% grouped_items.each_with_index do |(billing_code, payform_items), index| %>
    <% key = index + 1 %>
    <% description = current_department.name+Date.today.strftime("_%Y_%m_%d") %>
    <% end_date = payform.date.strftime("%Y-%m-%d")%>
    <% start_date = payform.date.previous_sunday.strftime("%Y-%m-%d")%>
    <% hours = PayformItem.rounded_hours(payform_items) %>
    <% ptaeoO2 = (billing_code.nil? ||  billing_code.empty?) ? "" : billing_code+".02"%>
    <Row ss:AutoFitHeight="0">
        <Cell ss:Index="2"><Data ss:Type="Number"><%= key %></Data></Cell>
        <Cell><Data ss:Type="Number">1</Data></Cell>
        <Cell ss:Index="5"><Data ss:Type="String"><%= description %></Data></Cell>
        <Cell><Data ss:Type="String">N</Data></Cell>
        <Cell><Data ss:Type="String"><%= start_date %></Data></Cell>
{'fraction_non_alphanumeric': 0.22391084093211752, 'fraction_numerical': 0.008105369807497468, 'mean_word_length': 4.486111111111111, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, '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': '2257936', 'n_tokens_mistral': 770, 'n_tokens_neox': 707, 'n_words': 96}