<commit_before>!!! 5
%html
  %head{:lang => "en"}
    %meta{:name => "apple-itunes-app", :content => "app-id=552732872"}
    = stylesheet_link_tag "dj_mon/dj_mon", :media => "screen, projection"
    = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
    = javascript_include_tag "dj_mon/dj_mon"
    = 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.centered
      - if flash[:notice]
        .alert.alert-success
          = flash[:notice]

    .container
      = yield

    %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.badge-info
        {{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
                <code>{{content.sleep_delay}}</code> seconds
            %tr
              %td
                Max attempts
              %td
                <code>{{content.max_attempts}}</code>
            %tr
              %td
                Max run time
              %td
                <code>{{content.max_run_time}}</code> seconds
            %tr
              %td
                Read ahead
              %td
                <code>{{content.read_ahead}}</code>
            %tr
              %td
                Delay Jobs
              %td
                <code>{{content.delay_jobs}}</code>

        .modal-footer
          = link_to "Close", '#', :class => 'btn btn-primary', 'data-dismiss'=> 'modal'

<commit_msg>some layout code cleanup<commit_after>!!! 5
%html
  %head{:lang => "en"}
    %meta{:name => "apple-itunes-app", :content => "app-id=552732872"}
    %script
      var dj_counts_dj_reports_url = "#{dj_counts_dj_reports_url}"
    = javascript_include_tag "//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"
    = javascript_include_tag "dj_mon/dj_mon"
    = stylesheet_link_tag "dj_mon/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.centered
      - if flash[:notice]
        .alert.alert-success
          = flash[:notice]

    .container
      = yield

    %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.badge-info
        {{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
                <code>{{content.sleep_delay}}</code> seconds
            %tr
              %td
                Max attempts
              %td
                <code>{{content.max_attempts}}</code>
            %tr
              %td
                Max run time
              %td
                <code>{{content.max_run_time}}</code> seconds
            %tr
              %td
                Read ahead
              %td
                <code>{{content.read_ahead}}</code>
            %tr
              %td
                Delay Jobs
              %td
                <code>{{content.delay_jobs}}</code>

        .modal-footer
          = link_to "Close", '#', :class => 'btn btn-primary', 'data-dismiss'=> 'modal'


{'fraction_non_alphanumeric': 0.13065414057063326, 'fraction_numerical': 0.0048712595685455815, 'mean_word_length': 1.399415692821369, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 67, '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': '5811651', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1652, 'n_words': 309}