<commit_before><div class="col-md-8">
  <%= form_for document do |f| %>
    <%= render partial: "shared/form_errors", locals: { object: document } %>

    <%= f.text_field :title %>
    <%= f.text_area :summary, class: 'short-textarea' %>
    <%= f.text_area :body %>

    <div class="preview_button"></div>
    <div class="preview_container" style="display: none;"></div>

    <%= f.select :therapeutic_area, f.object.facet_options(:therapeutic_area) %>

    <div class="actions">
      <button name="save" class="btn btn-success">Save as draft</button>
    </div>
  <% end %>
</div>

<%= render partial: "specialist_documents/attachments_form", locals: { document: document } %><commit_msg>Make therapeutic_are a multi select<commit_after><div class="col-md-8">
  <%= form_for document do |f| %>
    <%= render partial: "shared/form_errors", locals: { object: document } %>

    <%= f.text_field :title %>
    <%= f.text_area :summary, class: 'short-textarea' %>
    <%= f.text_area :body %>

    <div class="preview_button"></div>
    <div class="preview_container" style="display: none;"></div>

    <%= f.select :therapeutic_area, f.object.facet_options(:therapeutic_area), {}, { class: 'select2', multiple: true, data: {placeholder: 'Select a Therapeutic area'} } %>

    <div class="actions">
      <button name="save" class="btn btn-success">Save as draft</button>
    </div>
  <% end %>
</div>

<%= render partial: "specialist_documents/attachments_form", locals: { document: document } %>
{'fraction_non_alphanumeric': 0.1882510013351135, 'fraction_numerical': 0.0020026702269692926, 'mean_word_length': 4.278169014084507, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '1449775', 'n_tokens_mistral': 530, 'n_tokens_neox': 479, 'n_words': 106}