<commit_before>%ul.sidebar-nav#menu_billing
  %li.nav-header= text("transactions_header")
  = tab text("all_transactions"), facility_transactions_path, (sidenav_tab == 'transactions')
  = tab text("move_transactions"), facility_movable_transactions_path, (sidenav_tab == 'movable_transactions')
  = tab text("disputed_orders"), facility_disputed_orders_path, (sidenav_tab == "disputed_orders") if SettingsHelper::has_review_period?

  %li.nav-spacer
  = tab text("send_notifications"), facility_notifications_path, (sidenav_tab == 'notifications') if SettingsHelper::has_review_period?
  = tab text("orders_in_review"), facility_notifications_in_review_path, (sidenav_tab == 'in_review') if SettingsHelper::has_review_period?

  %li.divider
  %li.nav-header= text("internal_billing")
  = tab t_create_model(Journal), new_facility_journal_path, (sidenav_tab == 'new_journal') if current_facility.single_facility?
  = tab t_manage_models(Journal), facility_journals_path, (sidenav_tab == 'journals')

  - if Account.config.statements_enabled?
    %li.divider
    %li.nav-header= text("external_billing")
    = tab t_create_models(Statement), new_facility_statement_path(current_facility), (sidenav_tab == 'statements')
    = tab text("statement_history"), facility_statements_path(current_facility), (sidenav_tab == "statement_history")

  = render_view_hook("after_statements", sidenav_tab: sidenav_tab)

  - if current_facility.single_facility? && Account.config.reconcilable_account_types.any?
    %li.nav-spacer
    - Account.config.reconcilable_account_types.each do |account_type|
      - route_name = Account.config.account_type_to_route(account_type)
      = tab text("reconcile", model: account_type.constantize.model_name.human(count: 2)),
        [route_name, FacilityAccount], (sidenav_tab == route_name)
<commit_msg>[#153934] Add view hook for custom reconciliation workflows (#2521)<commit_after>%ul.sidebar-nav#menu_billing
  %li.nav-header= text("transactions_header")
  = tab text("all_transactions"), facility_transactions_path, (sidenav_tab == 'transactions')
  = tab text("move_transactions"), facility_movable_transactions_path, (sidenav_tab == 'movable_transactions')
  = tab text("disputed_orders"), facility_disputed_orders_path, (sidenav_tab == "disputed_orders") if SettingsHelper::has_review_period?

  %li.nav-spacer
  = tab text("send_notifications"), facility_notifications_path, (sidenav_tab == 'notifications') if SettingsHelper::has_review_period?
  = tab text("orders_in_review"), facility_notifications_in_review_path, (sidenav_tab == 'in_review') if SettingsHelper::has_review_period?

  %li.divider
  %li.nav-header= text("internal_billing")
  = tab t_create_model(Journal), new_facility_journal_path, (sidenav_tab == 'new_journal') if current_facility.single_facility?
  = tab t_manage_models(Journal), facility_journals_path, (sidenav_tab == 'journals')

  - if Account.config.statements_enabled?
    %li.divider
    %li.nav-header= text("external_billing")
    = tab t_create_models(Statement), new_facility_statement_path(current_facility), (sidenav_tab == 'statements')
    = tab text("statement_history"), facility_statements_path(current_facility), (sidenav_tab == "statement_history")

  = render_view_hook("after_statements", sidenav_tab: sidenav_tab)

  - if current_facility.single_facility? && Account.config.reconcilable_account_types.any?
    %li.nav-spacer
    - Account.config.reconcilable_account_types.each do |account_type|
      - route_name = Account.config.account_type_to_route(account_type)
      = tab text("reconcile", model: account_type.constantize.model_name.human(count: 2)),
        [route_name, FacilityAccount], (sidenav_tab == route_name)
  = render_view_hook("custom_reconcilable_account_types", sidenav_tab: sidenav_tab)

{'fraction_non_alphanumeric': 0.11998945147679325, 'fraction_numerical': 0.0031645569620253164, 'mean_word_length': 7.227765726681128, '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': '2973392', 'n_tokens_mistral': 1280, 'n_tokens_neox': 1237, 'n_words': 183}