<commit_before>%fieldset
  %h3= _("Registry Entry")
  %table.table.table-striped.table-bordered.table-hover
    %thead
      %tr
        %th.narrow
        %th= _("Registry Hive")
        %th= _("Registry Key")
        %th= _("Registry Value")
    %tbody
      - if (!params[:add] && session[:reg_data].empty?) || params[:edit_entry]
        %tr#new_tr{:title => _("Click to add a new entry"),
          :onclick => remote_function(:url => {:action => 'ap_ce_select', :add => 'new', :item1 => "registry", :id => "#{@scan.id || "new"}"})}
          %td
            = image_tag(image_path('toolbars/new.png'), :class => "rollover small")
          %td= _("<New Entry>")
          %td= _("<Click on this row to create a new entry>")
          %td= _("<Click on this row to create a new entry>")
      - else
        %tr#new_tr
          %td
            = image_submit_tag(image_path('toolbars/import.png'),
              :class => "rollover small",
              :name => "accept", :alt => _("Add this entry"), :title => _("Add this entry"), :item_type => "registry", :id => "#{@scan.id || "new"}")
          %td
            = _("HKLM")
          %td
            = text_field("entry", "kname",
              :maxlength => MAX_NAME_LEN,
              "value"    => session[:reg_data][:key],
              :style     => "width: 100%;")
          %td
            = text_field("entry", "value",
              :maxlength => MAX_NAME_LEN,
              "value"    => session[:reg_data][:value],
              :style     => "width: 100%;")
          = hidden_field("item", "type2", :value => "registry")
      - if !session[:reg_entries].nil? && !session[:reg_entries].empty?<commit_msg>Add new registy elements to Analysis Profiles fix https://bugzilla.redhat.com/show_bug.cgi?id=1364520<commit_after>%fieldset
  - scan_id = "#{@scan.id || 'new'}"
  - url = url_for(:action => 'ap_edit',
                  :id     => scan_id)
  %h3= _("Registry Entry")
  %table.table.table-striped.table-bordered.table-hover
    %thead
      %tr
        %th.narrow
        %th= _("Registry Hive")
        %th= _("Registry Key")
        %th= _("Registry Value")
    %tbody
      - if (!params[:add] && session[:reg_data].empty?) || params[:edit_entry]
        %tr#new_tr{:title => _("Click to add a new entry"),
          :onclick => remote_function(:url => {:action => 'ap_ce_select', :add => 'new', :item1 => "registry", :id => "#{@scan.id || "new"}"})}
          %td
            = image_tag(image_path('toolbars/new.png'), :class => "rollover small")
          %td= _("<New Entry>")
          %td= _("<Click on this row to create a new entry>")
          %td= _("<Click on this row to create a new entry>")
      - else
        %tr#new_tr
          %td
            %button.btn.btn-default{:title => _("Add this entry"),
              "data-submit"         => 'ap_form_div',
              "data-miq_sparkle_on" => true,
              :remote               => true,
              "data-method"         => :post,
              'data-click_url'      => {:url => "#{url}?accept=accept"}.to_json}
              %i.pficon.pficon-import.fa-lg
          %td
            = _("HKLM")
          %td
            = text_field("entry", "kname",
              :maxlength => MAX_NAME_LEN,
              "value"    => session[:reg_data][:key],
              :style     => "width: 100%;")
          %td
            = text_field("entry", "value",
              :maxlength => MAX_NAME_LEN,
              "value"    => session[:reg_data][:value],
              :style     => "width: 100%;")
          = hidden_field("item", "type2", :value => "registry")
      - if !session[:reg_entries].nil? && !session[:reg_entries].empty?
{'fraction_non_alphanumeric': 0.18310241782124423, 'fraction_numerical': 0.006791632708503124, 'mean_word_length': 1.964573268921095, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 54, 'https://': 1, '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': '2260199', 'n_tokens_mistral': 1185, 'n_tokens_neox': 1162, 'n_words': 250}