<commit_before>%p
  Build failed for
  = link_to project_url(@project) do
    = @project.name

%p
  Status: #{@build.status}
%p
  Branch: #{@build.ref}
%p
  Commit: #{link_to @build.short_sha, project_build_url(@build.project, @build)}
%p
  Author: #{@build.git_author_name}

%h2 Build Report:
%p
  #{@build.report_json['summary_line']}
- if !!@build.report_json['summary']
  %p
    Duration: #{@build.report_json['summary']['duration']}

%h3 Failed Examples:
#{@build.report_html(true)}<commit_msg>html_safe build fails html in report section of email<commit_after>%p
  Build failed for
  = link_to project_url(@project) do
    = @project.name

%p
  Status: #{@build.status}
%p
  Branch: #{@build.ref}
%p
  Commit: #{link_to @build.short_sha, project_build_url(@build.project, @build)}
%p
  Author: #{@build.git_author_name}
- unless @build.canceled?
  %h2 Build Report:
  %p
    #{@build.report_json['summary_line']}
  - if !!@build.report_json['summary']
    %p
      Duration: #{@build.report_json['summary']['duration']}

  %h3 Failed Examples:
  #{@build.report_html(true).html_safe}
{'fraction_non_alphanumeric': 0.1717171717171717, 'fraction_numerical': 0.0036730945821854912, 'mean_word_length': 4.923913043478261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1550093', 'n_tokens_mistral': 408, 'n_tokens_neox': 413, 'n_words': 83}