<commit_before>= form_for(claim, url: case_workers_claim_path(claim), as: :claim) do |f|
  = hidden_field_tag :messages, 'true'
  .fx-assesment-hook
    #claim-status
      %h2#radio-control-heading.govuk-heading-l{ 'aria-describedby': 'radio-control-heading radio-control-legend' }
        = t('.assessment_summary')


      - if current_user_is_caseworker?
        .js-cw-claim-action
          %fieldset.form-group.inline.spacer{ class: error_class?(@error_presenter, :determinations), 'aria-describedby': 'radio-control-legend' }
            %legend#radio-control-legend.bold-normal.form-label
              = t('.update_the_claim_status')
            = f.collection_radio_buttons(:state, claim.valid_transitions_for_detail_form, :first, :last) do |b|
              .multiple-choice
                = b.radio_button(checked: params[:claim].present? && b.value.eql?(params[:claim][:state]&.to_sym), 'aria-labelledby': "radio-control-legend #{b.text.to_css_class}")
                = b.label(id: b.text.to_css_class) { b.text }
            %div
              = validation_error_message(@error_presenter, :determinations)

      = govuk_table(class: 'report js-cw-claim-assessment', id: 'determinations') do
        = govuk_table_caption(class: 'govuk-visually-hidden') do
          %h3.govuk-heading-m
            = t('.assessment_summary')

        = govuk_table_thead do
          = govuk_table_row do
            = govuk_table_th do
              = t('shared.description')

            = govuk_table_th_numeric do
              = t('shared.determinations_table.claimed_by', type: claim.external_user_description)

            = govuk_table_th_numeric do
              = t('shared.determinations_table.laa_heading')
              - if claim.opened_for_redetermination?
                .govuk-hint= t('.laa_heading_hint')

        = govuk_table_tbody do
          // CASEWORKER
          - if current_user_is_caseworker? && @claim.enable_assessment_input?
            // ASSESSMENT INPUT<commit_msg>[CFP-313] Fix summary assessment totals<commit_after>= form_for(claim, url: case_workers_claim_path(claim), as: :claim) do |f|
  = hidden_field_tag :messages, 'true'
  .fx-assesment-hook
    #claim-status
      %h2#radio-control-heading.govuk-heading-l{ 'aria-describedby': 'radio-control-heading radio-control-legend' }
        = t('.assessment_summary')


      - if current_user_is_caseworker?
        .js-cw-claim-action
          %fieldset.form-group.inline.spacer{ class: error_class?(@error_presenter, :determinations), 'aria-describedby': 'radio-control-legend' }
            %legend#radio-control-legend.bold-normal.form-label
              = t('.update_the_claim_status')
            = f.collection_radio_buttons(:state, claim.valid_transitions_for_detail_form, :first, :last) do |b|
              .multiple-choice
                = b.radio_button(checked: params[:claim].present? && b.value.eql?(params[:claim][:state]&.to_sym), 'aria-labelledby': "radio-control-legend #{b.text.to_css_class}")
                = b.label(id: b.text.to_css_class) { b.text }
            %div
              = validation_error_message(@error_presenter, :determinations)

      = govuk_table( id: 'determinations', class: 'js-cw-claim-assessment', data: { apply_vat: "#{claim.apply_vat}", vat_url: vat_path(format: :json), submitted_date: claim.vat_date(:db), scheme: claim.agfs? ? 'agfs' : 'lgfs' }) do
        = govuk_table_caption(class: 'govuk-visually-hidden') do
          %h3.govuk-heading-m
            = t('.assessment_summary')

        = govuk_table_thead do
          = govuk_table_row do
            = govuk_table_th do
              = t('shared.description')

            = govuk_table_th_numeric do
              = t('shared.determinations_table.claimed_by', type: claim.external_user_description)

            = govuk_table_th_numeric do
              = t('shared.determinations_table.laa_heading')
              - if claim.opened_for_redetermination?
                .govuk-hint= t('.laa_heading_hint')

        = govuk_table_tbody do
          // CASEWORKER
          - if current_user_is_caseworker? && @claim.enable_assessment_input?
            // ASSESSMENT INPUT
{'fraction_non_alphanumeric': 0.1264065118506105, 'fraction_numerical': 0.0016758439071103662, 'mean_word_length': 2.6617002629272566, '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': '2004571', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1326, 'n_words': 187}