<commit_before>- finder = controller.controller_name == 'issues' || controller.controller_name == 'boards' ? issues_finder : merge_requests_finder
- boards_page = controller.controller_name == 'boards'

.issues-filters
  .issues-details-filters.row-content-block.second-block.filtered-search-block
    = form_tag page_filter_path(without: [:assignee_id, :author_id, :milestone_title, :label_name, :search]), method: :get, class: 'filter-form js-filter-form' do
      - if params[:search].present?
        = hidden_field_tag :search, params[:search]
      - if @bulk_edit
        .check-all-holder
          = check_box_tag "check_all_issues", nil, false,
            class: "check_all_issues left"
      .issues-other-filters.filtered-search-container
        .filtered-search-input-container
          %input.form-control.filtered-search{ placeholder: 'Search or filter results...', 'data-id' => 'filtered-search', 'data-project-id' => @project.id }
          = icon('filter')
          %button.clear-search.hidden{ type: 'button' }
            = icon('times')
          #js-dropdown-hint.dropdown-menu.hint-dropdown
            %ul{ 'data-dropdown' => true }
              %li.filter-dropdown-item{ 'data-value': '' }
                %button.btn.btn-link
                  = icon('search')
                  %span
                    Keep typing and press Enter
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link
                  %i.fa{ 'class': '{{icon}}'}
                  %span.js-filter-hint
                    {{hint}}
                  %span.js-filter-tag.dropdown-light-content
                    {{tag}}
          #js-dropdown-author.dropdown-menu
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link.dropdown-user
                  %img.avatar.avatar-inline{ 'data-src': '{{avatar_url}}', width: '30' }
                  .dropdown-user-details
                    %span
                      {{name}}
                    %span.dropdown-light-content
                      @{{username}}
          #js-dropdown-assignee.dropdown-menu
            %ul{ 'data-dropdown' => true }
              %li.filter-dropdown-item{ 'data-value': 'none' }
                %button.btn.btn-link
                  No Assignee
              %li.divider
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link.dropdown-user
                  %img.avatar.avatar-inline{ 'data-src': '{{avatar_url}}', width: '30' }
                  .dropdown-user-details
                    %span
                      {{name}}
                    %span.dropdown-light-content
                      @{{username}}
          #js-dropdown-milestone.dropdown-menu{ 'data-dropdown' => true }
            %ul{ 'data-dropdown' => true }
              %li.filter-dropdown-item{ 'data-value': 'none' }
                %button.btn.btn-link
                  No Milestone
              %li.filter-dropdown-item{ 'data-value': 'upcoming' }
                %button.btn.btn-link
                  Upcoming
              %li.divider
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link.js-data-value
                  {{title}}
          #js-dropdown-label.dropdown-menu{ 'data-dropdown' => true }
            %ul{ 'data-dropdown' => true }
              %li.filter-dropdown-item{ 'data-value': 'none' }
                %button.btn.btn-link
                  No Label
              %li.divider
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link
                  %span.dropdown-label-box{ 'style': 'background: {{color}}'}
                  %span.label-title.js-data-value
                    {{title}}
        .pull-right
          - if boards_page
            #js-boards-seach.issue-boards-search
              %input.pull-left.form-control{ type: "search", placeholder: "Filter by name...", "v-model" => "filters.search", "debounce" => "250" }
              - if can?(current_user, :admin_list, @project)
                .dropdown.pull-right
                  %button.btn.btn-create.js-new-board-list{ type: "button", data: { toggle: "dropdown", labels: labels_filter_path, namespace_path: @project.try(:namespace).try(:path), project_path: @project.try(:path) } }
                    Create new list
                  .dropdown-menu.dropdown-menu-paging.dropdown-menu-align-right.dropdown-menu-issues-board-new.dropdown-menu-selectable
                    = render partial: "shared/issuable/label_page_default", locals: { show_footer: true, show_create: true, show_boards_content: true, title: "Create a new list" }
                    - if can?(current_user, :admin_label, @project)
                      = render partial: "shared/issuable/label_page_create"
                    = dropdown_loading
          - else
            = render 'shared/sort_dropdown'

    - if @bulk_edit
      .issues_bulk_update.hide
        = form_tag [:bulk_update, @project.namespace.becomes(Namespace), @project, type], method: :post, class: 'bulk-update'  do
          .filter-item.inline
            = dropdown_tag("Status", options: { toggle_class: "js-issue-status", title: "Change status", dropdown_class: "dropdown-menu-status dropdown-menu-selectable", data: { field_name: "update[state_event]" } } ) do<commit_msg>Fix HAML attributes<commit_after>- finder = controller.controller_name == 'issues' || controller.controller_name == 'boards' ? issues_finder : merge_requests_finder
- boards_page = controller.controller_name == 'boards'

.issues-filters
  .issues-details-filters.row-content-block.second-block.filtered-search-block
    = form_tag page_filter_path(without: [:assignee_id, :author_id, :milestone_title, :label_name, :search]), method: :get, class: 'filter-form js-filter-form' do
      - if params[:search].present?
        = hidden_field_tag :search, params[:search]
      - if @bulk_edit
        .check-all-holder
          = check_box_tag "check_all_issues", nil, false,
            class: "check_all_issues left"
      .issues-other-filters.filtered-search-container
        .filtered-search-input-container
          %input.form-control.filtered-search{ placeholder: 'Search or filter results...', 'data-id' => 'filtered-search', 'data-project-id' => @project.id }
          = icon('filter')
          %button.clear-search.hidden{ type: 'button' }
            = icon('times')
          #js-dropdown-hint.dropdown-menu.hint-dropdown
            %ul{ 'data-dropdown' => true }
              %li.filter-dropdown-item{ 'data-value' => '' }
                %button.btn.btn-link
                  = icon('search')
                  %span
                    Keep typing and press Enter
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link
                  %i.fa{ class: '{{icon}}'}
                  %span.js-filter-hint
                    {{hint}}
                  %span.js-filter-tag.dropdown-light-content
                    {{tag}}
          #js-dropdown-author.dropdown-menu
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link.dropdown-user
                  %img.avatar.avatar-inline{ 'data-src' => '{{avatar_url}}', width: '30' }
                  .dropdown-user-details
                    %span
                      {{name}}
                    %span.dropdown-light-content
                      @{{username}}
          #js-dropdown-assignee.dropdown-menu
            %ul{ 'data-dropdown' => true }
              %li.filter-dropdown-item{ 'data-value' => 'none' }
                %button.btn.btn-link
                  No Assignee
              %li.divider
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link.dropdown-user
                  %img.avatar.avatar-inline{ 'data-src' => '{{avatar_url}}', width: '30' }
                  .dropdown-user-details
                    %span
                      {{name}}
                    %span.dropdown-light-content
                      @{{username}}
          #js-dropdown-milestone.dropdown-menu{ 'data-dropdown' => true }
            %ul{ 'data-dropdown' => true }
              %li.filter-dropdown-item{ 'data-value' => 'none' }
                %button.btn.btn-link
                  No Milestone
              %li.filter-dropdown-item{ 'data-value' => 'upcoming' }
                %button.btn.btn-link
                  Upcoming
              %li.divider
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link.js-data-value
                  {{title}}
          #js-dropdown-label.dropdown-menu{ 'data-dropdown' => true }
            %ul{ 'data-dropdown' => true }
              %li.filter-dropdown-item{ 'data-value' => 'none' }
                %button.btn.btn-link
                  No Label
              %li.divider
            %ul.filter-dropdown{ 'data-dynamic' => true, 'data-dropdown' => true }
              %li.filter-dropdown-item
                %button.btn.btn-link
                  %span.dropdown-label-box{ style => 'background: {{color}}'}
                  %span.label-title.js-data-value
                    {{title}}
        .pull-right
          - if boards_page
            #js-boards-seach.issue-boards-search
              %input.pull-left.form-control{ type: "search", placeholder: "Filter by name...", "v-model" => "filters.search", "debounce" => "250" }
              - if can?(current_user, :admin_list, @project)
                .dropdown.pull-right
                  %button.btn.btn-create.js-new-board-list{ type: "button", data: { toggle: "dropdown", labels: labels_filter_path, namespace_path: @project.try(:namespace).try(:path), project_path: @project.try(:path) } }
                    Create new list
                  .dropdown-menu.dropdown-menu-paging.dropdown-menu-align-right.dropdown-menu-issues-board-new.dropdown-menu-selectable
                    = render partial: "shared/issuable/label_page_default", locals: { show_footer: true, show_create: true, show_boards_content: true, title: "Create a new list" }
                    - if can?(current_user, :admin_label, @project)
                      = render partial: "shared/issuable/label_page_create"
                    = dropdown_loading
          - else
            = render 'shared/sort_dropdown'

    - if @bulk_edit
      .issues_bulk_update.hide
        = form_tag [:bulk_update, @project.namespace.becomes(Namespace), @project, type], method: :post, class: 'bulk-update'  do
          .filter-item.inline
            = dropdown_tag("Status", options: { toggle_class: "js-issue-status", title: "Change status", dropdown_class: "dropdown-menu-status dropdown-menu-selectable", data: { field_name: "update[state_event]" } } ) do
{'fraction_non_alphanumeric': 0.13875262789067974, 'fraction_numerical': 0.0012263489838822705, 'mean_word_length': 1.762400193563997, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 51, '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': '817515', 'n_tokens_mistral': 3296, 'n_tokens_neox': 3166, 'n_words': 549}