<commit_before># Controller for viewing a file's blame
class Projects::BlameController < Projects::ApplicationController
  include ExtractsPath

  before_filter :require_non_empty_project
  before_filter :assign_ref_vars
  before_filter :authorize_download_code!

  def show
    @blob = @repository.blob_at(@commit.id, @path)
    @blame = Gitlab::Git::Blame.new(project.repository, @commit.id, @path)
  end
end<commit_msg>Reuse blob object fetched by Gitlab::Git::Blame.<commit_after># Controller for viewing a file's blame
class Projects::BlameController < Projects::ApplicationController
  include ExtractsPath

  before_filter :require_non_empty_project
  before_filter :assign_ref_vars
  before_filter :authorize_download_code!

  def show
    @blame = Gitlab::Git::Blame.new(@repository, @commit.id, @path)
    @blob = @blame.blob
  end
end
{'fraction_non_alphanumeric': 0.09112426035502959, 'fraction_numerical': 0.0, 'mean_word_length': 6.05, 'pattern_counts': {'":': 0, '<': 5, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6805461', 'n_tokens_mistral': 272, 'n_tokens_neox': 256, 'n_words': 61}