<commit_before>- url = url_for(:action => "timeprofile_field_changed")
- url_json = {:url => url}.to_json
#timeprofile_days_hours_div
  %table.style1
    %tbody
      %tr
        %td.key Days
        %td
          %table
            %tr
              %td{:style => "width:50px", :align => "center"} (All)
              %td{:style => "width:50px", :align => "center"} Sunday
              %td{:style => "width:50px", :align => "center"} Monday
              %td{:style => "width:50px", :align => "center"} Tuesday
              %td{:style => "width:50px", :align => "center"} Wednesday
              %td{:style => "width:50px", :align => "center"} Thursday
              %td{:style => "width:50px", :align => "center"} Friday
              %td{:style => "width:50px", :align => "center"} Saturday
            %tr
              %td{:align => "center"}
                = check_box_tag("all_days",
                                "1",
                                @edit[:all_days],
                                :disabled => disabled,
                                "data-miq_sparkle_on" => true,
                                "data-miq_sparkle_off" => true,
                                "data-miq_observe_checkbox" => url_json)
              - 7.times do |i|
                %td{:align => "center"}
                  = check_box_tag("days_#{i}",
                                  "1",
                                  @edit[:new][:profile][:days].include?(i),
                                  :disabled => disabled,
                                  "data-miq_observe_checkbox" => url_json)
      %tr
        %td.key Hours
        %td
          %table
            %tr
              %td{:style => "width:50px", :align => "center"} (All)
              %td{:style => "width:35px", :align => "center"}
                %b AM:
              %td{:style => "width:35px", :align => "center"} 12-1
              %td{:style => "width:35px", :align => "center"} 1-2
              %td{:style => "width:35px", :align => "center"} 2-3
              %td{:style => "width:35px", :align => "center"} 3-4
              %td{:style => "width:35px", :align => "center"} 4-5
              %td{:style => "width:35px", :align => "center"} 5-6
              %td{:style => "width:35px", :align => "center"} 6-7
              %td{:style => "width:35px", :align => "center"} 7-8
              %td{:style => "width:35px", :align => "center"} 8-9
              %td{:style => "width:35px", :align => "center"} 9-10
              %td{:style => "width:35px", :align => "center"} 10-11
              %td{:style => "width:35px", :align => "center"} 11-12
            %tr
              %td{:align => "center"}
                = check_box_tag("all_hours",
                                "1",
                                @edit[:all_hours],
                                :disabled => disabled,
                                "data-miq_sparkle_on" => true,
                                "data-miq_sparkle_off" => true,
                                "data-miq_observe_checkbox" => url_json)
              %td &nbsp;
              - 12.times do |i|
                %td{:align => "center"}
                  = check_box_tag("hours_#{i}",
                                  "1",
                                  @edit[:new][:profile][:hours].include?(i),
                                  :disabled => disabled,
                                  "data-miq_observe_checkbox" => url_json)
            %tr
              %td &nbsp;
              %td{:align => "center"}
                %b PM:
              %td{:align => "center"} 12-1
              %td{:align => "center"} 1-2
              %td{:align => "center"} 2-3
              %td{:align => "center"} 3-4
              %td{:align => "center"} 4-5
              %td{:align => "center"} 5-6
              %td{:align => "center"} 6-7
              %td{:align => "center"} 7-8
              %td{:align => "center"} 8-9
              %td{:align => "center"} 9-10
              %td{:align => "center"} 10-11
              %td{:align => "center"} 11-12
            %tr
              %td &nbsp;
              %td &nbsp;
              - 12.times do |i|<commit_msg>Review response - rewritten repeated statements<commit_after>- url = url_for(:action => "timeprofile_field_changed")
- url_json = {:url => url}.to_json
#timeprofile_days_hours_div
  %table.style1
    %tbody
      %tr
        %td.key Days
        %td
          %table
            %tr
              - ["(All)", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"].each do |day|
                %td{:style => "width:50px", :align => "center"} #{day}
            %tr
              %td{:align => "center"}
                = check_box_tag("all_days",
                                "1",
                                @edit[:all_days],
                                :disabled => disabled,
                                "data-miq_sparkle_on" => true,
                                "data-miq_sparkle_off" => true,
                                "data-miq_observe_checkbox" => url_json)
              - 7.times do |i|
                %td{:align => "center"}
                  = check_box_tag("days_#{i}",
                                  "1",
                                  @edit[:new][:profile][:days].include?(i),
                                  :disabled => disabled,
                                  "data-miq_observe_checkbox" => url_json)
      %tr
        %td.key Hours
        - hours = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
        %td
          %table
            %tr
              %td{:style => "width:50px", :align => "center"} (All)
              %td{:style => "width:35px", :align => "center"}
                %b AM:
              - 12.times do |i|
                %td{:style => "width:35px", :align => "center"} #{hours[i-1]}-#{hours[i]}
            %tr
              %td{:align => "center"}
                = check_box_tag("all_hours",
                                "1",
                                @edit[:all_hours],
                                :disabled => disabled,
                                "data-miq_sparkle_on" => true,
                                "data-miq_sparkle_off" => true,
                                "data-miq_observe_checkbox" => url_json)
              %td &nbsp;
              - 12.times do |i|
                %td{:align => "center"}
                  = check_box_tag("hours_#{i}",
                                  "1",
                                  @edit[:new][:profile][:hours].include?(i),
                                  :disabled => disabled,
                                  "data-miq_observe_checkbox" => url_json)
            %tr
              %td &nbsp;
              %td{:align => "center"}
                %b PM:
              - 12.times do |i|
                %td{:align => "center"} #{hours[i-1]}-#{hours[i]}
            %tr
              %td &nbsp;
              %td &nbsp;
              - 12.times do |i|
{'fraction_non_alphanumeric': 0.1579097658480868, 'fraction_numerical': 0.021844660194174758, 'mean_word_length': 1.099820143884892, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 106, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 17, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4229219', 'n_tokens_mistral': 2169, 'n_tokens_neox': 1989, 'n_words': 385}