<commit_before>- if @project
  = back_button project_page_path(@project)

%h2.sub-header
  - if @project
    = t("builds.index.title_with_project", :project_name => @project.name)
  - else
    = t("builds.index.title")

.table-responsive
  %table.table.table-striped.builds
    %thead
      %tr
        %th #
        %th Project
        %th Revision
        %th.duration Duration
        %th.finished_at Finished
        %th.status{:colspan => 2} Status
    %tbody
      - @builds.each do |build|
        %tr
          %td= @project ? build.number : build.id
          %td= link_to_project build.branch.project
          %td.revision_uid
            - if revision = build.revision
              - if revision.tag_uid
                - if revision.tag_uid.size < 10
                  %span.badge{:title => revision.uid}= revision.tag_uid
                - else
                  %span.badge{:title => revision.tag_uid(false)}= revision.tag_uid
              - else
                = revision.uid
          - if build.finished_at
            %td.duration
              = (build.finished_at - build.started_at).to_i
              seconds
            %td.finished_at
              = t("builds.index.finished_ago", :time_ago => time_ago_in_words(build.finished_at))
          - elsif build.started_at
            %td.duration{:colspan => 2}
              started
              %span{"data-increment-every-second" => true}
                = (Time.now - build.started_at).to_i
              seconds ago
          %td.status{:class => build_css_class(build)}
            = build_status_icon(build)
          %td.trigger
            = build_trigger_icon(build)<commit_msg>Fix builds#index table for not-yet-started builds<commit_after>- if @project
  = back_button project_page_path(@project)

%h2.sub-header
  - if @project
    = t("builds.index.title_with_project", :project_name => @project.name)
  - else
    = t("builds.index.title")

.table-responsive
  %table.table.table-striped.builds
    %thead
      %tr
        %th #
        %th Project
        %th.revision_uid Revision
        %th.duration Duration
        %th.finished_at Finished
        %th.status{:colspan => 2} Status
    %tbody
      - @builds.each do |build|
        %tr
          %td= @project ? build.number : build.id
          %td= link_to_project build.branch.project
          %td.revision_uid
            - if revision = build.revision
              - if revision.tag_uid
                - if revision.tag_uid.size < 10
                  %span.badge{:title => revision.uid}= revision.tag_uid
                - else
                  %span.badge{:title => revision.tag_uid(false)}= revision.tag_uid
              - else
                = revision.uid
          - if build.finished_at
            %td.duration
              = (build.finished_at - build.started_at).to_i
              seconds
            %td.finished_at
              = t("builds.index.finished_ago", :time_ago => time_ago_in_words(build.finished_at))
          - elsif build.started_at
            %td.duration{:colspan => 2}
              started
              %span{"data-increment-every-second" => true}
                = (Time.now - build.started_at).to_i
              seconds ago
          - else
            %td.duration{:colspan => 2}
          %td.status{:class => build_css_class(build)}
            = build_status_icon(build)
          %td.trigger
            = build_trigger_icon(build)
{'fraction_non_alphanumeric': 0.11072261072261072, 'fraction_numerical': 0.003205128205128205, 'mean_word_length': 1.6407692307692308, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '2248902', 'n_tokens_mistral': 1061, 'n_tokens_neox': 1022, 'n_words': 177}