<commit_before>- url = url_for(:action => 'export_field_changed')
= render :partial => "layouts/flash_msg"

%h2
  = _('Custom Reports')
%h3
  = _('Import')
#import_div
  .form-horizontal
    .form-group
      .col-md-8
        = form_tag({:action => "upload", :typ => "import", :dbtype => @sb[:dbtype]}, :multipart => true) do
          - overwrite = @sb[:overwrite] ? true : false
          = check_box_tag("overwrite", "1", overwrite)
          = _('Overwrite existing reports?')
          &nbsp;&nbsp;&nbsp;
          = file_field("upload", "file")
          &nbsp;&nbsp;&nbsp;
          = submit_tag(_("Upload"), :id => "upload_atags")
%hr
%h3
  = _('Export')

.form-horizontal
  .form-group
    %label.control-label.col-md-2
      = _('Available Custom Reports:')
    .col-md-8
      %div{:style => "overflow: auto; width: 400px; border: 1px solid #999999;"}
        = select_tag('choices_chosen',
          options_for_select(@export_reports.sort),
          :style             => "width:auto; min-width:375px; background-color:#fff; border: 0px;",
          :size              => 15,
          :style             => "width: 400px",
          :multiple          => true,
          :onchange          => "toggleConvertButtonToLink($('#export_button'),
                                  'download_report', $('#choices_chosen').val() != null);")
        :javascript
          miqInitSelectPicker();
          miqSelectPickerEvent("choices_chosen", "#{url}");
<commit_msg>Rubocop issues<commit_after>- url = url_for(:action => 'export_field_changed')
= render :partial => "layouts/flash_msg"

%h2
  = _('Custom Reports')
%h3
  = _('Import')
#import_div
  .form-horizontal
    .form-group
      .col-md-8
        = form_tag({:action => "upload", :typ => "import", :dbtype => @sb[:dbtype]}, :multipart => true) do
          - overwrite = @sb[:overwrite] ? true : false
          = check_box_tag("overwrite", "1", overwrite)
          = _('Overwrite existing reports?')
          &nbsp;&nbsp;&nbsp;
          = file_field("upload", "file")
          &nbsp;&nbsp;&nbsp;
          = submit_tag(_("Upload"), :id => "upload_atags")
%hr
%h3
  = _('Export')

.form-horizontal
  .form-group
    %label.control-label.col-md-2
      = _('Available Custom Reports:')
    .col-md-8
      %div{:style => "overflow: auto; width: 400px; border: 1px solid #999999;"}
        = select_tag('choices_chosen',
          options_for_select(@export_reports.sort),
          :size              => 15,
          :style             => "width:400px; min-width:375px; background-color:#fff; border: 0px;",
          :multiple          => true,
          :onchange          => "toggleConvertButtonToLink($('#export_button'),
                                  'download_report', $('#choices_chosen').val() != null);")
        :javascript
          miqInitSelectPicker();
          miqSelectPickerEvent("choices_chosen", "#{url}");

{'fraction_non_alphanumeric': 0.17057201929703653, 'fraction_numerical': 0.01791867677463818, 'mean_word_length': 2.3444700460829493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7052486', 'n_tokens_mistral': 957, 'n_tokens_neox': 910, 'n_words': 168}