<commit_before>.merge-request
  = render "projects/merge_requests/show/mr_title"
  = render "projects/merge_requests/show/mr_box"

  .alert.alert-error
    %h5
      %i.icon-exclamation-sign
      We cannot find
      %span.label-branch= @merge_request.source_branch
      or
      %span.label-branch= @merge_request.target_branch
      branches in the repository.
    %p
      Maybe it was removed or never pushed.
    %p
      Please close Merge Request or change branches with existing one
<commit_msg>Proper erro message for MR when fork removed<commit_after>.merge-request
  = render "projects/merge_requests/show/mr_title"
  = render "projects/merge_requests/show/mr_box"

  .alert.alert-error
    %p
      We cannot render this merge request properly because
      - if @merge_request.for_fork? && !@merge_request.source_project
        fork project was removed
      - elsif !@merge_request.source_branch_exists?
        %span.label.label-inverse= @merge_request.source_branch
        does not exist in
        %span.label.label-info= @merge_request.source_project_path
      - elsif !@merge_request.target_branch_exists?
        %span.label.label-inverse= @merge_request.target_branch
        does not exist in
        %span.label.label-info= @merge_request.target_project_path
      - else
        of internal error

    %strong
      Please close Merge Request or change branches with existing one

{'fraction_non_alphanumeric': 0.07877927608232789, 'fraction_numerical': 0.0007097232079489, 'mean_word_length': 2.9943342776203967, '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': '6981400', 'n_tokens_mistral': 416, 'n_tokens_neox': 411, 'n_words': 105}