<commit_before>!!! 5
%html
  %head{:lang => "en"}
    = stylesheet_link_tag "dj_mon", :media => "screen, projection"
    = yield :head

  %body
    %header
      .navbar.navbar-fixed-top
        .navbar-inner
          .container
            .pull-left
              = link_to "DJ Mon", dj_reports_url, class: "brand"
            .pull-right
              = link_to "Settings", "#dj_settings_template", rel: 'modal', 'data-content'=> "#{DjMon::DjReport.settings.to_json}", id: 'settings', class: 'btn btn-primary btn-mini'

            .pull-right
              #dj-counts-view
    
    .container
      - if flash[:notice]
        .alert.alert-success
          = flash[:notice]

    .container
      = yield

    = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
    = javascript_include_tag "dj_mon"
    %script
      var dj_counts_dj_reports_url = "#{dj_counts_dj_reports_url}"

    %script#dj_counts_template{ :type=> "text/x-handlebars-template" }
      %span.badge
        {{all}} all
      %span.badge.badge-important
        {{queued}} queued
      %span.badge.badge-info
        {{active}} active
      %span.badge.badge-warning
        {{failed}} failed

    %script#dj_settings_template{ :type=> "text/x-handlebars-template" }
      .modal.hide
        .modal-header
          %button{ type: "button", class: "close", 'data-dismiss' => "modal" }
            ×
          %h3
            Settings
        .modal-body
          %table.table.table-bordered.table-striped
            %tr
              %td
                Delayed Job version
              %td
                <code>{{content.delayed_job_version}}</code>
            %tr
              %td
                DJ Mon version
              %td
                <code>{{content.dj_mon_version}}</code>
            %tr
              %td
                Destroy failed jobs
              %td
                <code>{{content.destroy_failed_jobs}}</code>
            %tr
              %td
                Sleep delay
              %td<commit_msg>reordered count badges<commit_after>!!! 5
%html
  %head{:lang => "en"}
    = stylesheet_link_tag "dj_mon", :media => "screen, projection"
    = yield :head

  %body
    %header
      .navbar.navbar-fixed-top
        .navbar-inner
          .container
            .pull-left
              = link_to "DJ Mon", dj_reports_url, class: "brand"
            .pull-right
              = link_to "Settings", "#dj_settings_template", rel: 'modal', 'data-content'=> "#{DjMon::DjReport.settings.to_json}", id: 'settings', class: 'btn btn-primary btn-mini'

            .pull-right
              #dj-counts-view
    
    .container
      - if flash[:notice]
        .alert.alert-success
          = flash[:notice]

    .container
      = yield

    = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
    = javascript_include_tag "dj_mon"
    %script
      var dj_counts_dj_reports_url = "#{dj_counts_dj_reports_url}"

    %script#dj_counts_template{ :type=> "text/x-handlebars-template" }
      %span.badge.badge-warning
        {{failed}} failed
      %span.badge.badge-info
        {{queued}} queued
      %span.badge.badge-info
        {{active}} active
      %span.badge
        {{all}} all

    %script#dj_settings_template{ :type=> "text/x-handlebars-template" }
      .modal.hide
        .modal-header
          %button{ type: "button", class: "close", 'data-dismiss' => "modal" }
            ×
          %h3
            Settings
        .modal-body
          %table.table.table-bordered.table-striped
            %tr
              %td
                Delayed Job version
              %td
                <code>{{content.delayed_job_version}}</code>
            %tr
              %td
                DJ Mon version
              %td
                <code>{{content.dj_mon_version}}</code>
            %tr
              %td
                Destroy failed jobs
              %td
                <code>{{content.destroy_failed_jobs}}</code>
            %tr
              %td
                Sleep delay
              %td
{'fraction_non_alphanumeric': 0.12567237163814182, 'fraction_numerical': 0.0024449877750611247, 'mean_word_length': 1.5584740462789244, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 27, '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': '953383', 'n_tokens_mistral': 1315, 'n_tokens_neox': 1218, 'n_words': 227}