<commit_before>/ Side-by-side diff view
%div.text-file
  %table
    - side_diff_line(diff, index) do |line, type, line_code, line_new, line_old, raw_line, next_line|
      - next if type == 'new'
      %tr.line_holder.parallel{ id: line_code, class: "#{type}" }
        - if type == "match"
          = render "projects/commits/diffs/match_line_parallel", {line: line,
          line_old: line_old, line_new: line_new, bottom: false}
        - else
          %td.old_line
            = link_to raw(line_old), "##{line_code}", id: line_code
            - if type == 'old'
              %td.line_content{class: "parallel noteable_line old #{line_code}", "line_code" => line_code}= raw line
            - else
              %td.line_content.parallel= line
          %td.new_line{data: {linenumber: line_new}}
            = link_to raw(line_new) , "##{line_code}", id: line_code
            - if type == 'old'
              %td.line_content.parallel{class: "noteable_line new #{line_code}", "line_code" => line_code}= raw next_line
            - else
              %td.line_content.parallel= line<commit_msg>File mode changed note.<commit_after>/ Side-by-side diff view
%div.text-file
  %table
    - side_diff_line(diff, index) do |line, type, line_code, line_new, line_old, raw_line, next_line|
      - next if type == 'new'
      %tr.line_holder.parallel{ id: line_code, class: "#{type}" }
        - if type == "match"
          = render "projects/commits/diffs/match_line_parallel", {line: line,
          line_old: line_old, line_new: line_new, bottom: false}
        - else
          %td.old_line
            = link_to raw(line_old), "##{line_code}", id: line_code
            - if type == 'old'
              %td.line_content{class: "parallel noteable_line old #{line_code}", "line_code" => line_code}= raw line
            - else
              %td.line_content.parallel= raw line
          %td.new_line{data: {linenumber: line_new}}
            = link_to raw(line_new) , "##{line_code}", id: line_code
            - if type == 'old'
              %td.line_content.parallel{class: "noteable_line new #{line_code}", "line_code" => line_code}= raw next_line
            - else
              %td.line_content.parallel= raw line

- if diff.diff.blank? && diff_file_mode_changed?(diff)
  .file-mode-changed
    File mode changed
{'fraction_non_alphanumeric': 0.13376344086021505, 'fraction_numerical': 0.0, 'mean_word_length': 2.385735080058224, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3828103', 'n_tokens_mistral': 756, 'n_tokens_neox': 756, 'n_words': 175}