<commit_before>- if can?(current_user, :remove_pages, @project) && @project.pages_deployed?
  .panel.panel-default.panel.panel-danger
    .panel-heading Remove pages
    .errors-holder
    .panel-body
      %p
        Removing the pages will prevent from exposing them to outside world.
      .form-actions
        = link_to 'Remove pages', namespace_project_pages_path(@project.namespace, @project), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove"
- else
  .nothing-here-block Only the project owner can remove pages<commit_msg>Only show the message if user is not the owner<commit_after>- if can?(current_user, :remove_pages, @project)
  - if @project.pages_deployed?
    .panel.panel-default.panel.panel-danger
      .panel-heading Remove pages
      .errors-holder
      .panel-body
        %p
          Removing the pages will prevent from exposing them to outside world.
        .form-actions
          = link_to 'Remove pages', namespace_project_pages_path(@project.namespace, @project), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove"
- else
  .nothing-here-block Only the project owner can remove pages
{'fraction_non_alphanumeric': 0.10539845758354756, 'fraction_numerical': 0.0, 'mean_word_length': 3.3582089552238807, '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': '7573864', 'n_tokens_mistral': 337, 'n_tokens_neox': 330, 'n_words': 107}