<commit_before>- unless @form_answer.promotion?
  - if user_can_edit(@form_answer, :sic_code)
    .form-group.sic-code class="#{'form-edit' if @form_answer.sic_code.blank?}"
      = simple_form_for [namespace_name, @form_answer],
                        remote: true,
                        authenticity_token: true do |f|

        = hidden_field_tag :section, "sic_code"

        .form-container
          label.form-label SIC code

          .form-value
            p
              - if @form_answer.sic_code.present?
                = @form_answer.sic_code_name
              - else
                em.text-muted No SIC code assigned.
          .form-fields.form-block
            = f.input :sic_code,
                      wrapper_html: { class: "form-group" },
                      input_html: { class: "form-control select2" },
                      as: :select,
                      collection: SICCode.collection,
                      include_blank: false,
                      label: false
          .form-actions.text-right
            = link_to "Cancel", "#", class: "btn btn-default form-cancel-link if-no-js-hide"
            = f.submit "Save", class: "btn btn-primary form-save-link pull-right"

          = link_to "#", class: "form-edit-link pull-right"
            span.glyphicon.glyphicon-pencil
            ' Edit
          .clear
  - else
    .form-group
      .form-container
        label.form-label SIC code

        p
          - if @form_answer.sic_code.present?
            = @form_answer.sic_code_name
          - else
            em.text-muted No SIC code assigned.<commit_msg>[SIC CODE] fix sentry issue https://app.getsentry.com/bit-zesty-client-apps/qae/issues/146121276/<commit_after>- unless @form_answer.promotion?

  - sic = @form_answer.sic_code_name

  - if user_can_edit(@form_answer, :sic_code)
    .form-group.sic-code class="#{'form-edit' if @form_answer.sic_code.blank?}"
      = simple_form_for [namespace_name, @form_answer],
                        remote: true,
                        authenticity_token: true do |f|

        = hidden_field_tag :section, "sic_code"

        .form-container
          label.form-label SIC code

          .form-value
            p
              - if sic.present?
                = sic
              - else
                em.text-muted No SIC code assigned.
          .form-fields.form-block
            = f.input :sic_code,
                      wrapper_html: { class: "form-group" },
                      input_html: { class: "form-control select2" },
                      as: :select,
                      collection: SICCode.collection,
                      include_blank: false,
                      label: false
          .form-actions.text-right
            = link_to "Cancel", "#", class: "btn btn-default form-cancel-link if-no-js-hide"
            = f.submit "Save", class: "btn btn-primary form-save-link pull-right"

          = link_to "#", class: "form-edit-link pull-right"
            span.glyphicon.glyphicon-pencil
            ' Edit
          .clear
  - else
    .form-group
      .form-container
        label.form-label SIC code

        p
          - if sic.present?
            = sic
          - else
            em.text-muted No SIC code assigned.
{'fraction_non_alphanumeric': 0.10456915056731064, 'fraction_numerical': 0.0033731984053971173, 'mean_word_length': 1.4307004470938898, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '677819', 'n_tokens_mistral': 989, 'n_tokens_neox': 928, 'n_words': 192}