<commit_before>%section
  - if claim.opened_for_redetermination?
    %p
      Opened for redetermination on #{@claim.claim_state_transitions.where(to: 'redetermination').last.created_at} (see messages/notes for further details).

  - if claim.written_reasons_outstanding?
    %p
      Awaiting written reasons.

  = form_for(claim, url: case_workers_claim_path(claim)) do |f|
    %fieldset#claim-status
      = f.label :status, "Update status (current status: '#{claim.state}')"
      = f.collection_select :state_for_form, Claim::STATES_FOR_FORM, :first, :last, { :include_blank => 'Select new state for this claim' }, { class: 'select2', disabled: !@enable_status_change }


      %table#determinations
        %thead
          %th &nbsp;
          %th Fees
          %th Expenses
          %th Total
        %tbody
          -if @enable_assessment_input
            = f.fields_for :assessment do |af|
              .nested-fields
                %tr.assesment-form-fields
                  %td
                    Enter assessed amounts
                  %td.currency
                    %span.currency-symbol
                      &pound;
                    = af.text_field :fees, value: number_with_precision(af.object.fees, precision: 2), class: "js-fees"
                  %td.currency
                    %span.currency-symbol
                      &pound;
                    = af.text_field :expenses, value: number_with_precision(af.object.expenses, precision: 2), class: "js-fees"
                  %td
                    %span.js-total-determination
                      = number_to_currency(af.object.total)


          - else
            %tr.assessment-display
              %td Assessed amounts
              %td#assessed-fees= claim.assessment_fees
              %td#assessed-expenses= claim.assessment_expenses
              %td#assessed-total= claim.assessment_total

            = f.fields_for :redeterminations do |rf|<commit_msg>Fixed issue with js class name hook<commit_after>%section
  - if claim.opened_for_redetermination?
    %p
      Opened for redetermination on #{@claim.claim_state_transitions.where(to: 'redetermination').last.created_at} (see messages/notes for further details).

  - if claim.written_reasons_outstanding?
    %p
      Awaiting written reasons.

  = form_for(claim, url: case_workers_claim_path(claim)) do |f|
    %fieldset#claim-status
      = f.label :status, "Update status (current status: '#{claim.state}')"
      = f.collection_select :state_for_form, Claim::STATES_FOR_FORM, :first, :last, { :include_blank => 'Select new state for this claim' }, { class: 'select2', disabled: !@enable_status_change }


      %table#determinations
        %thead
          %th &nbsp;
          %th Fees
          %th Expenses
          %th Total
        %tbody
          -if @enable_assessment_input
            = f.fields_for :assessment do |af|
              .nested-fields
                %tr.assesment-form-fields
                  %td
                    Enter assessed amounts
                  %td.currency
                    %span.currency-symbol
                      &pound;
                    = af.text_field :fees, value: number_with_precision(af.object.fees, precision: 2), class: "js-fees"
                  %td.currency
                    %span.currency-symbol
                      &pound;
                    = af.text_field :expenses, value: number_with_precision(af.object.expenses, precision: 2), class: "js-expenses"
                  %td
                    %span.js-total-determination
                      = number_to_currency(af.object.total)


          - else
            %tr.assessment-display
              %td Assessed amounts
              %td#assessed-fees= claim.assessment_fees
              %td#assessed-expenses= claim.assessment_expenses
              %td#assessed-total= claim.assessment_total

            = f.fields_for :redeterminations do |rf|
{'fraction_non_alphanumeric': 0.09659379766141332, 'fraction_numerical': 0.001525165226232842, 'mean_word_length': 1.8370583994232155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3506376', 'n_tokens_mistral': 1167, 'n_tokens_neox': 1089, 'n_words': 231}