<commit_before><% if !@instance.cited_by_id %>
    <%= form_tag({controller: 'trees', action: 'place_name'}, {method: :post, remote: true}) do %>
        <%= hidden_field_tag("place_name[instance_id]", @instance.id) %>

        <strong>Place in <%= "#{@working_draft.tree.name}: #{@working_draft.draft_name}" %></strong>
        <div>
          <dl class="dl-horizontal">
            <dt>Full Name</dt>
            <dd><%=@instance.name.full_name_html.html_safe %></dd>
            <dt>Reference</dt>
            <dd><%= @instance.reference.citation %></dd>
          </dl>
        </div>

        <div class="form-group">
          <%= check_box_tag("excluded", name: "place_name[excluded]") %>
          <%= label_tag("excluded", "Excluded?") %>
        </div>

        <%= render partial: "instances/workspace/forms/new_placement_name_typeahead" %>

        <button type="submit"
                id="new_name_placement_btn"
                class="btn btn-primary"
                name="place_name[place]"
                tabindex="<%= increment_tab_index %>"
                title="Place the name on the tree."
                onclick="$('#new_name_placement_btn').find('i.fa').addClass('fa-spin');"
        >Place <i class="fa fa-refresh"></i></button>

        <div id="placement-message-container" class="message-container hidden"></div>
        <div id="placement-error-message-container" class="message-container error hidden"></div>
    <% end %>
<% end %>


<commit_msg>NSL-2585 checkbox value from editor for excluded was incorrect.<commit_after><% if !@instance.cited_by_id %>
    <%= form_tag({controller: 'trees', action: 'place_name'}, {method: :post, remote: true}) do %>
        <%= hidden_field_tag("place_name[instance_id]", @instance.id) %>

        <strong>Place in <%= "#{@working_draft.tree.name}: #{@working_draft.draft_name}" %></strong>
        <div>
          <dl class="dl-horizontal">
            <dt>Full Name</dt>
            <dd><%=@instance.name.full_name_html.html_safe %></dd>
            <dt>Reference</dt>
            <dd><%= @instance.reference.citation %></dd>
          </dl>
        </div>

        <div class="form-group">
          <%= check_box_tag("place_name[excluded]") %>
          <%= label_tag("excluded", "Excluded?") %>
        </div>

        <%= render partial: "instances/workspace/forms/new_placement_name_typeahead" %>

        <button type="submit"
                id="new_name_placement_btn"
                class="btn btn-primary"
                name="place_name[place]"
                tabindex="<%= increment_tab_index %>"
                title="Place the name on the tree."
                onclick="$('#new_name_placement_btn').find('i.fa').addClass('fa-spin');"
        >Place <i class="fa fa-refresh"></i></button>

        <div id="placement-message-container" class="message-container hidden"></div>
        <div id="placement-error-message-container" class="message-container error hidden"></div>
    <% end %>
<% end %>



{'fraction_non_alphanumeric': 0.17981283422459893, 'fraction_numerical': 0.001336898395721925, 'mean_word_length': 2.542011834319527, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '6536223', 'n_tokens_mistral': 962, 'n_tokens_neox': 887, 'n_words': 152}