<commit_before>- content_for :page_title do
  = t(".listing_users")
- content_for :page_actions do
  %li
    = button_link_to t(".new_user"), new_object_url, icon: "icon-plus", id: "admin_new_user_link"

= render "admin/shared/users_sub_menu"

%table#listing_users.index
  %colgroup
    %col{ style: "width: 65%" }
    %col{ style: "width: 20%" }
    %col{ style: "width: 15%" }
  %thead
    %tr
      %th= sort_link [:spree, @search], :email, t(".user"), {}, {title: "users_email_title"}
      %th= sort_link [:spree, @search], :enterprise_limit, t(".enterprise_limit")
      %th.actions
  %tbody
    - @users.each do |user|
      - # HAML seems to have a bug that it can't parse `class cycle('odd', 'even')` on the element.
      - # So we assign it first:
      - row_class = cycle("odd", "even")
      %tr{id: spree_dom_id(user), class: row_class}
        %td.user_email= link_to user.email, edit_object_url(user)
        %td.user_enterprise_limit= user.enterprise_limit
        %td.actions
          = link_to_delete user, no_text: true
= paginate @users
- content_for :sidebar_title do
  = t(".search")
- content_for :sidebar do
  .box.align-center
    = search_form_for [:admin, @search] do |f|
      .field
        = f.label t(".email")
        %br
        = f.text_field :email_cont, class: "fullwidth"
      %div
        = button t(".search"), "icon-search"
<commit_msg>specify Spree routes for pagination<commit_after>- content_for :page_title do
  = t(".listing_users")
- content_for :page_actions do
  %li
    = button_link_to t(".new_user"), new_object_url, icon: "icon-plus", id: "admin_new_user_link"

= render "admin/shared/users_sub_menu"

%table#listing_users.index
  %colgroup
    %col{ style: "width: 65%" }
    %col{ style: "width: 20%" }
    %col{ style: "width: 15%" }
  %thead
    %tr
      %th= sort_link [:spree, @search], :email, t(".user"), {}, {title: "users_email_title"}
      %th= sort_link [:spree, @search], :enterprise_limit, t(".enterprise_limit")
      %th.actions
  %tbody
    - @users.each do |user|
      - # HAML seems to have a bug that it can't parse `class cycle('odd', 'even')` on the element.
      - # So we assign it first:
      - row_class = cycle("odd", "even")
      %tr{id: spree_dom_id(user), class: row_class}
        %td.user_email= link_to user.email, edit_object_url(user)
        %td.user_enterprise_limit= user.enterprise_limit
        %td.actions
          = link_to_delete user, no_text: true
- _with_routes Spree::Core::Engine.routes do
  = paginate @users

- content_for :sidebar_title do
  = t(".search")
- content_for :sidebar do
  .box.align-center
    = search_form_for [:admin, @search] do |f|
      .field
        = f.label t(".email")
        %br
        = f.text_field :email_cont, class: "fullwidth"
      %div
        = button t(".search"), "icon-search"

{'fraction_non_alphanumeric': 0.15123674911660778, 'fraction_numerical': 0.004240282685512367, 'mean_word_length': 3.067528735632184, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7380794', 'n_tokens_mistral': 1035, 'n_tokens_neox': 1006, 'n_words': 245}