<commit_before>%h3.page-title Blame view

#tree-holder.tree-holder
  .file-holder
    .file-title
      %i.icon-file
      %span.file_name
        = @path
        %small= number_to_human_size @blob.size
      %span.options= render "projects/blob/actions"
    .file-content.blame
      %table
        - current_line = 1
        - @blame.each do |commit, lines|
          - commit = Commit.new(commit)
          %tr
            %td.blame-commit
              %span.commit
                = link_to commit.short_id(8), project_commit_path(@project, commit), class: "commit_short_id"
                &nbsp;
                = commit_author_link(commit, avatar: true, size: 16)
                &nbsp;
                = link_to_gfm truncate(commit.title, length: 20), project_commit_path(@project, commit.id), class: "row_title"
            %td.lines.blame-numbers
              %pre
                - if lines.empty?
                  = current_line
                  - current_line += 1
                - else
                  - lines.each do |line|
                    = current_line
                    \
                    - current_line += 1
            %td.lines
              %pre
                :erb
                  <% lines.each do |line| %>
                    <%= line %>
                  <% end %><commit_msg>Enable highlighting for blame<commit_after>%h3.page-title Blame view

#tree-holder.tree-holder
  .file-holder
    .file-title
      %i.icon-file
      %span.file_name
        = @path
        %small= number_to_human_size @blob.size
      %span.options= render "projects/blob/actions"
    .file-content.blame.highlight
      %table
        - current_line = 1
        - @blame.each do |commit, lines|
          - commit = Commit.new(commit)
          %tr
            %td.blame-commit
              %span.commit
                = link_to commit.short_id(8), project_commit_path(@project, commit), class: "commit_short_id"
                &nbsp;
                = commit_author_link(commit, avatar: true, size: 16)
                &nbsp;
                = link_to_gfm truncate(commit.title, length: 20), project_commit_path(@project, commit.id), class: "row_title"
            %td.lines.blame-numbers
              %pre
                - if lines.empty?
                  = current_line
                  - current_line += 1
                - else
                  - lines.each do |line|
                    = current_line
                    \
                    - current_line += 1
            %td.lines
              %pre
                %code{ class: highlightjs_class(@blob.name) }
                  :erb
                    <% lines.each do |line| %>
                      <%= line %>
                    <% end %>
{'fraction_non_alphanumeric': 0.10336011687363039, 'fraction_numerical': 0.006574141709276844, 'mean_word_length': 1.2160194174757282, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2351456', 'n_tokens_mistral': 813, 'n_tokens_neox': 748, 'n_words': 148}