<commit_before>%ul.nav.nav-tabs
  = tab t(".details"),
    facility_user_path(current_facility, @user),
    secondary_tab == "details"

  - if current_ability.can?(:show, Order)
    = tab t(".orders"),
      facility_user_orders_path(current_facility, @user),
      secondary_tab == "orders"

  - if current_ability.can?(:index, OrderDetail) # The controller authorizes against OrderDetail, not Reservation
    = tab t(".reservations"),
      facility_user_reservations_path(current_facility, @user),
      secondary_tab == "reservations"

  - if current_ability.can?(:manage, Account)
    = tab t(".accounts"),
      facility_user_accounts_path(current_facility, @user),
      secondary_tab == "accounts"

  - if current_ability.can?(:administer, Product)
    = tab t(".access_list"),
      facility_user_access_list_path(current_facility, @user),
      secondary_tab == "access_list"

  = render_view_hook "after", secondary_tab: secondary_tab
<commit_msg>[#136391] Restore access to Account Managers to user's payment sources tab (#1129)<commit_after>%ul.nav.nav-tabs
  = tab t(".details"),
    facility_user_path(current_facility, @user),
    secondary_tab == "details"

  - if current_ability.can?(:show, Order)
    = tab t(".orders"),
      facility_user_orders_path(current_facility, @user),
      secondary_tab == "orders"

  - if current_ability.can?(:index, OrderDetail) # The controller authorizes against OrderDetail, not Reservation
    = tab t(".reservations"),
      facility_user_reservations_path(current_facility, @user),
      secondary_tab == "reservations"

  - if current_ability.can?(:index, Account)
    = tab t(".accounts"),
      facility_user_accounts_path(current_facility, @user),
      secondary_tab == "accounts"

  - if current_ability.can?(:administer, Product)
    = tab t(".access_list"),
      facility_user_access_list_path(current_facility, @user),
      secondary_tab == "access_list"

  = render_view_hook "after", secondary_tab: secondary_tab

{'fraction_non_alphanumeric': 0.12651209677419356, 'fraction_numerical': 0.005040322580645161, 'mean_word_length': 4.483425414364641, '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': '6807024', 'n_tokens_mistral': 633, 'n_tokens_neox': 623, 'n_words': 119}