<commit_before><%
groups = []
groups.push(
  { title: 'Labor', lines: @invoice.lines.time_entry,
    footer: 'inv_lines_labor_group_footer.tex' }
) if @invoice.lines.time_entry.any?
groups.push(
  { title: 'Non Labor', lines: @invoice.lines.product }
) if @invoice.lines.product.any?
-%>
\begin{document}
<%= partial( 'lhead.tex', { :location => @invoice.location } ) %>
<%=partial 'inv_rhead.tex', invoice: @invoice %>
\textbf{Invoice To:}
\medskip
\hspace*{3ex}{
  <%=partial 'address.tex', :address=>@invoice.billing_address %>
}
\medskip
<%=partial 'inv_info_line.tex', invoice: @invoice -%>
\\[-5ex]
<%=partial 'inv_lines.tex', invoice: @invoice, lines: @invoice.lines.regular,
    footer: groups.many? ? false : 'labor_lines_footer.tex',
    groups: groups.many? ? groups : false %>
\end{document}<commit_msg>Adjust LTpre vs negative adjustment<commit_after><%
groups = []
groups.push(
  { title: 'Labor', lines: @invoice.lines.time_entry,
    footer: 'inv_lines_labor_group_footer.tex' }
) if @invoice.lines.time_entry.any?
groups.push(
  { title: 'Non Labor', lines: @invoice.lines.product }
) if @invoice.lines.product.any?
-%>
\setlength{\LTpre}{0pt}
\begin{document}
<%= partial( 'lhead.tex', { :location => @invoice.location } ) %>
<%=partial 'inv_rhead.tex', invoice: @invoice %>
\textbf{Invoice To:}
\medskip
\hspace*{3ex}{
  <%=partial 'address.tex', :address=>@invoice.billing_address %>
}
\medskip
<%=partial 'inv_info_line.tex', invoice: @invoice -%>
<%=partial 'inv_lines.tex', invoice: @invoice, lines: @invoice.lines.regular,
    footer: groups.many? ? false : 'labor_lines_footer.tex',
    groups: groups.many? ? groups : false %>
\end{document}
{'fraction_non_alphanumeric': 0.19376124775044992, 'fraction_numerical': 0.0023995200959808036, 'mean_word_length': 5.177777777777778, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '7136474', 'n_tokens_mistral': 643, 'n_tokens_neox': 611, 'n_words': 115}