<commit_before><label>
  <% if @listed_taxon.primary_listing %>
    <%=t :this_is_the_primary_listing %>
  <% else %>
    <% if @list.listed_taxa_editable_by?(current_user) && @list.is_a?(CheckList) -%>
      <%= form_for @listed_taxon, :builder => DefaultFormBuilder, :html => {
        :id => dom_id(@listed_taxon, "edit_occurrence"), 
        :class => "smallbuttons inline buttonrow"} do |f| %>
        <%= f.hidden_field :primary_listing, :value => true %>
        <%= f.submit t(:make_this_the_primary_listing), :class => "default button" %>
      <% end %>
    <% end -%>
  <% end %>
</label>
<br>
<% if @listed_taxon.place && @related_listed_taxa %>
  <label><commit_msg>don't show other listed taxa for place if they don't exist<commit_after><label>
  <% if @listed_taxon.primary_listing %>
    <%=t :this_is_the_primary_listing %>
  <% else %>
    <% if @list.listed_taxa_editable_by?(current_user) && @list.is_a?(CheckList) -%>
      <%= form_for @listed_taxon, :builder => DefaultFormBuilder, :html => {
        :id => dom_id(@listed_taxon, "edit_occurrence"), 
        :class => "smallbuttons inline buttonrow"} do |f| %>
        <%= f.hidden_field :primary_listing, :value => true %>
        <%= f.submit t(:make_this_the_primary_listing), :class => "default button" %>
      <% end %>
    <% end -%>
  <% end %>
</label>
<br>
<% if @listed_taxon.place && @related_listed_taxa.present? %>
  <label>
{'fraction_non_alphanumeric': 0.1813031161473088, 'fraction_numerical': 0.0, 'mean_word_length': 3.71, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 45, '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': '4929269', 'n_tokens_mistral': 542, 'n_tokens_neox': 490, 'n_words': 91}