<commit_before>- url = url_for(:action => 'tasks_change_options')
#tasks_options_div
  %h3
    = _("Filter By")
  .form-horizontal
    - if %w(my_tasks all_tasks).include?(@layout)
      .form-group
        %label.control-label.col-md-2
          = _("Zone")
        .col-md-8
          - my_zone = MiqServer.my_server(true).my_zone
          - opts = [["<#{_('All Zones')}>", "<all>"]] + @tasks_options[:zones].sort.collect { |a| [a == my_zone ? a + " (current)" : a, a] }
          = select_tag("chosen_zone",
            options_for_select(opts, @tasks_options[@tabform][:zone]),
            :class => "selectpicker")
          :javascript
            miqInitSelectPicker();
            miqSelectPickerEvent("chosen_zone", "#{url}");
    - if @lastaction == "all_jobs" || @lastaction == "all_ui_jobs"
      .form-group
        %label.control-label.col-md-2
          = _("User")
        .col-md-8
          = select_tag("user_choice",
            options_for_select([["#{_('All Users')}", "all"]] + @user_names.sort, @tasks_options[@tabform][:user_choice]),
            :class => "selectpicker")<commit_msg>show filter with list of users on All Jobs and All UI Task screens<commit_after>- url = url_for(:action => 'tasks_change_options')
#tasks_options_div
  %h3
    = _("Filter By")
  .form-horizontal
    - if %w(my_tasks all_tasks).include?(@layout)
      .form-group
        %label.control-label.col-md-2
          = _("Zone")
        .col-md-8
          - my_zone = MiqServer.my_server(true).my_zone
          - opts = [["<#{_('All Zones')}>", "<all>"]] + @tasks_options[:zones].sort.collect { |a| [a == my_zone ? a + " (current)" : a, a] }
          = select_tag("chosen_zone",
            options_for_select(opts, @tasks_options[@tabform][:zone]),
            :class => "selectpicker")
          :javascript
            miqInitSelectPicker();
            miqSelectPickerEvent("chosen_zone", "#{url}");
    - if @tabform == "tasks_3" || @tabform == "tasks_4"
      .form-group
        %label.control-label.col-md-2
          = _("User")
        .col-md-8
          = select_tag("user_choice",
            options_for_select([["#{_('All Users')}", "all"]] + @user_names.sort, @tasks_options[@tabform][:user_choice]),
            :class => "selectpicker")
{'fraction_non_alphanumeric': 0.18037135278514588, 'fraction_numerical': 0.005305039787798408, 'mean_word_length': 2.492283950617284, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '1550091', 'n_tokens_mistral': 763, 'n_tokens_neox': 761, 'n_words': 124}