<commit_before>- if pipeline_schedule
  %tr.pipeline-schedule-table-row
    %td
      = pipeline_schedule.description
    %td.branch-name-cell
      = icon('code-fork')
      - if pipeline_schedule.ref.present?
        = link_to pipeline_schedule.ref, project_ref_path(@project, pipeline_schedule.ref), class: "ref-name"
    %td
      - if pipeline_schedule.last_pipeline
        .status-icon-container{ class: "ci-status-icon-#{pipeline_schedule.last_pipeline.status}" }
          = link_to namespace_project_pipeline_path(@project.namespace, @project, pipeline_schedule.last_pipeline.id) do
            = ci_icon_for_status(pipeline_schedule.last_pipeline.status)
            %span ##{pipeline_schedule.last_pipeline.id}
      - else
        None
    %td.next-run-cell
      - if pipeline_schedule.active?
        = time_ago_with_tooltip(pipeline_schedule.real_next_run)
      - else
        Inactive
    %td
      - if pipeline_schedule.owner
        = image_tag avatar_icon(pipeline_schedule.owner, 20), class: "avatar s20"
        = link_to user_path(pipeline_schedule.owner) do
          = pipeline_schedule.owner&.name
    %td
      .pull-right.btn-group
        - if can?(current_user, :update_pipeline_schedule, @project) && !pipeline_schedule.owned_by?(current_user)
          = link_to take_ownership_pipeline_schedule_path(pipeline_schedule), method: :post, title: 'Take Ownership', class: 'btn' do
            Take ownership
        - if can?(current_user, :update_pipeline_schedule, pipeline_schedule)
          = link_to edit_pipeline_schedule_path(pipeline_schedule), title: 'Edit', class: 'btn' do
            = icon('pencil')
        - if can?(current_user, :admin_pipeline_schedule, pipeline_schedule)
          = link_to pipeline_schedule_path(pipeline_schedule), title: 'Delete', method: :delete, class: 'btn btn-remove', data: { confirm: "Are you sure you want to cancel this pipeline?" } do
            = icon('trash')<commit_msg>Use nil? for ref evaluation<commit_after>- if pipeline_schedule
  %tr.pipeline-schedule-table-row
    %td
      = pipeline_schedule.description
    %td.branch-name-cell
      = icon('code-fork')
      - unless pipeline_schedule.ref.nil?
        = link_to pipeline_schedule.ref, project_ref_path(@project, pipeline_schedule.ref), class: "ref-name"
    %td
      - if pipeline_schedule.last_pipeline
        .status-icon-container{ class: "ci-status-icon-#{pipeline_schedule.last_pipeline.status}" }
          = link_to namespace_project_pipeline_path(@project.namespace, @project, pipeline_schedule.last_pipeline.id) do
            = ci_icon_for_status(pipeline_schedule.last_pipeline.status)
            %span ##{pipeline_schedule.last_pipeline.id}
      - else
        None
    %td.next-run-cell
      - if pipeline_schedule.active?
        = time_ago_with_tooltip(pipeline_schedule.real_next_run)
      - else
        Inactive
    %td
      - if pipeline_schedule.owner
        = image_tag avatar_icon(pipeline_schedule.owner, 20), class: "avatar s20"
        = link_to user_path(pipeline_schedule.owner) do
          = pipeline_schedule.owner&.name
    %td
      .pull-right.btn-group
        - if can?(current_user, :update_pipeline_schedule, @project) && !pipeline_schedule.owned_by?(current_user)
          = link_to take_ownership_pipeline_schedule_path(pipeline_schedule), method: :post, title: 'Take Ownership', class: 'btn' do
            Take ownership
        - if can?(current_user, :update_pipeline_schedule, pipeline_schedule)
          = link_to edit_pipeline_schedule_path(pipeline_schedule), title: 'Edit', class: 'btn' do
            = icon('pencil')
        - if can?(current_user, :admin_pipeline_schedule, pipeline_schedule)
          = link_to pipeline_schedule_path(pipeline_schedule), title: 'Delete', method: :delete, class: 'btn btn-remove', data: { confirm: "Are you sure you want to cancel this pipeline?" } do
            = icon('trash')
{'fraction_non_alphanumeric': 0.1048469387755102, 'fraction_numerical': 0.0020408163265306124, 'mean_word_length': 3.2389189189189187, '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': '5451681', 'n_tokens_mistral': 1152, 'n_tokens_neox': 1193, 'n_words': 219}