<commit_before><div class="form-group">
  <%= f.label :offences, label_text_for_form(attribute_name: 'offences'), class: "form-label-bold" %>
  <%= f.text_field :offences, class: 'text-field text-field-wide' %>
</div>

<div class="form-group">
  <%= f.label :circumstances_of_arrest, label_text_for_form(attribute_name: 'circumstances_of_arrest'), class: "form-label-bold" %>
  <%= f.text_area :circumstances_of_arrest, label: t('circumstances_of_arrest'), rows: '5', class: 'text-field text-field-wide' %>
</div>

<div class="form-group">
  <fieldset class="inline">
    <%= f.label :fit_for_interview, label_text_for_form(attribute_name: 'fit_for_interview'), class: "form-label-bold" %>
    <label class="block-label form-label" for="defence_request_fit_for_interview_true">
      <%= f.radio_button :fit_for_interview, true, name: 'defence_request[fit_for_interview]', checked: @defence_request.fit_for_interview.present?, class: 'fit_for_interview_radio' %>
      <%= t('yes') %>
    </label>
    <label class="block-label form-label" for="defence_request_fit_for_interview_false">
      <%= f.radio_button :fit_for_interview, false, name: 'defence_request[fit_for_interview]', checked: @defence_request.fit_for_interview.blank?, class: 'fit_for_interview_radio' %>
      <%= t('no') %>
    </label>
  </fieldset>
</div>

<div class="form-group" data-show-when="defence_request_fit_for_interview_false">
  <%= f.label :unfit_for_interview_reason, label_text_for_form(attribute_name: 'unfit_for_interview_reason'), class: "form-label-bold" %>
  <%= f.text_area :unfit_for_interview_reason, label: t('unfit_for_interview_reason'), rows: '5', class: 'text-field text-field-wide' %>
</div>

<div class="form-group">
  <%= f.label :investigating_officer_name, label_text_for_form(attribute_name: 'investigating_officer_name'), class: "form-label-bold" %>
  <%= f.text_field :investigating_officer_name, label: t('investigating_officer_name'), class: 'text-field custody-number' %>
</div>

<div class="form-group">
  <%= f.label :investigating_officer_contact_number, label_text_for_form(attribute_name: 'investigating_officer_contact_number'), class: "form-label-bold" %>
  <%= f.text_field :investigating_officer_contact_number, label: t('investigating_officer_contact_number'), class: 'text-field custody-number' %>
</div>

<div class="form-group">
  <%= f.label :comments, label_text_for_form(attribute_name: "comments", optional: true), class: "form-label-bold" %>
  <%= f.text_area :comments, label: t('comments'), rows: '5', class: 'text-field text-field-wide' %>
</div><commit_msg>mark investigating officer fields on defence request form as optional<commit_after><div class="form-group">
  <%= f.label :offences, label_text_for_form(attribute_name: 'offences'), class: "form-label-bold" %>
  <%= f.text_field :offences, class: 'text-field text-field-wide' %>
</div>

<div class="form-group">
  <%= f.label :circumstances_of_arrest, label_text_for_form(attribute_name: 'circumstances_of_arrest'), class: "form-label-bold" %>
  <%= f.text_area :circumstances_of_arrest, label: t('circumstances_of_arrest'), rows: '5', class: 'text-field text-field-wide' %>
</div>

<div class="form-group">
  <fieldset class="inline">
    <%= f.label :fit_for_interview, label_text_for_form(attribute_name: 'fit_for_interview'), class: "form-label-bold" %>
    <label class="block-label form-label" for="defence_request_fit_for_interview_true">
      <%= f.radio_button :fit_for_interview, true, name: 'defence_request[fit_for_interview]', checked: @defence_request.fit_for_interview.present?, class: 'fit_for_interview_radio' %>
      <%= t('yes') %>
    </label>
    <label class="block-label form-label" for="defence_request_fit_for_interview_false">
      <%= f.radio_button :fit_for_interview, false, name: 'defence_request[fit_for_interview]', checked: @defence_request.fit_for_interview.blank?, class: 'fit_for_interview_radio' %>
      <%= t('no') %>
    </label>
  </fieldset>
</div>

<div class="form-group" data-show-when="defence_request_fit_for_interview_false">
  <%= f.label :unfit_for_interview_reason, label_text_for_form(attribute_name: 'unfit_for_interview_reason'), class: "form-label-bold" %>
  <%= f.text_area :unfit_for_interview_reason, label: t('unfit_for_interview_reason'), rows: '5', class: 'text-field text-field-wide' %>
</div>

<div class="form-group">
  <%= f.label :investigating_officer_name, label_text_for_form(attribute_name: 'investigating_officer_name', optional: true), class: "form-label-bold" %>
  <%= f.text_field :investigating_officer_name, label: t('investigating_officer_name'), class: 'text-field custody-number' %>
</div>

<div class="form-group">
  <%= f.label :investigating_officer_contact_number, label_text_for_form(attribute_name: 'investigating_officer_contact_number', optional: true), class: "form-label-bold" %>
  <%= f.text_field :investigating_officer_contact_number, label: t('investigating_officer_contact_number'), class: 'text-field custody-number' %>
</div>

<div class="form-group">
  <%= f.label :comments, label_text_for_form(attribute_name: "comments", optional: true), class: "form-label-bold" %>
  <%= f.text_area :comments, label: t('comments'), rows: '5', class: 'text-field text-field-wide' %>
</div>
{'fraction_non_alphanumeric': 0.1641337386018237, 'fraction_numerical': 0.0011398176291793312, 'mean_word_length': 6.858208955223881, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, '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': '4554435', 'n_tokens_mistral': 1964, 'n_tokens_neox': 1846, 'n_words': 302}