<commit_before>nav.navbar.navbar-fixed-top.navbar-with-sidebar
  .navbar-content
    - if action_name == "show"
      - if @test.user
        = link_to fa_icon("pencil", text: t(".edit_test")), edit_test_path(@test), class: "btn color-blue edit-test-btn", data: { toggle: "tooltip", placement: "bottom", title: t(".edit_current_test") }
      
    - elsif action_name.in?(%w"new edit")
      .navbar-title
        span = t("tests.form.title.#{action_name}")

    ul.nav.navbar-nav.navbar-right
      - if action_name == "show"
        li = link_to fa_icon("line-chart"), "#", class: "btn progress-count", data: { toggle: "popover", placement: "bottom", trigger: "hover", html: "true", content: "" }
        li = link_to fa_icon("download"), test_path(format: :csv), class: "btn", data: { toggle: "tooltip", placement: "bottom", title: t(".export_csv") }
        li = link_to fa_icon("copy"), new_test_path(team_name: current_team.try(:name), project_name: current_project.try(:name), source: @test.slug), class: "btn", data: { toggle: "tooltip", placement: "bottom", title: t(".duplicate_test") }
        li = link_to fa_icon("file-o"), new_test_path(team_name: current_team.try(:name), project_name: current_project.try(:name)), class: "btn", data: { toggle: "tooltip", placement: "bottom", title: t("common.button.create_new_test") }

        - if @test.user
          - if @test.project || @test.user == current_user
            li.dropdown
              a.btn data-target="#" href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"
                = fa_icon "cog"
              ul.dropdown-menu
                li.dropdown-header = t(".test_settings")
                li = link_to fa_icon("external-link", text: t(".move_to")), move_test_path(@test), remote: true
                li = link_to fa_icon("pencil", text: t(".customize_result_label")), result_label_test_path(@test), remote: true
                li.divider role="separator"
                li = link_to fa_icon("trash-o", text: t(".delete_test")), "", class: "text-red", data: { confirm: t("messages.delete_confirm") }, :method => :delete<commit_msg>Disabled the edit button if you are the owner unknown<commit_after>nav.navbar.navbar-fixed-top.navbar-with-sidebar
  .navbar-content
    - if action_name == "show"
      = link_to fa_icon("pencil", text: t(".edit_test")), edit_test_path(@test), class: "btn color-blue edit-test-btn #{'disabled' unless @test.user}", data: { toggle: "tooltip", placement: "bottom", title: t(".edit_current_test") }
      
    - elsif action_name.in?(%w"new edit")
      .navbar-title
        span = t("tests.form.title.#{action_name}")

    ul.nav.navbar-nav.navbar-right
      - if action_name == "show"
        li = link_to fa_icon("line-chart"), "#", class: "btn progress-count", data: { toggle: "popover", placement: "bottom", trigger: "hover", html: "true", content: "" }
        li = link_to fa_icon("download"), test_path(format: :csv), class: "btn", data: { toggle: "tooltip", placement: "bottom", title: t(".export_csv") }
        li = link_to fa_icon("copy"), new_test_path(team_name: current_team.try(:name), project_name: current_project.try(:name), source: @test.slug), class: "btn", data: { toggle: "tooltip", placement: "bottom", title: t(".duplicate_test") }
        li = link_to fa_icon("file-o"), new_test_path(team_name: current_team.try(:name), project_name: current_project.try(:name)), class: "btn", data: { toggle: "tooltip", placement: "bottom", title: t("common.button.create_new_test") }

        - if @test.user
          - if @test.project || @test.user == current_user
            li.dropdown
              a.btn data-target="#" href="#" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"
                = fa_icon "cog"
              ul.dropdown-menu
                li.dropdown-header = t(".test_settings")
                li = link_to fa_icon("external-link", text: t(".move_to")), move_test_path(@test), remote: true
                li = link_to fa_icon("pencil", text: t(".customize_result_label")), result_label_test_path(@test), remote: true
                li.divider role="separator"
                li = link_to fa_icon("trash-o", text: t(".delete_test")), "", class: "text-red", data: { confirm: t("messages.delete_confirm") }, :method => :delete
{'fraction_non_alphanumeric': 0.17487344684767603, 'fraction_numerical': 0.0, 'mean_word_length': 3.422177009155646, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7536538', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1368, 'n_words': 301}