<commit_before><%- taxon ||= @taxon -%>
<%= form_for(taxon, :builder => DefaultFormBuilder) do |f| %>
  <%= error_messages_for :taxon %>
  <div class="last column span-24">
    <div class="column span-8">
      <% if @taxon.new_record? || is_admin? || is_me?(@taxon.creator) -%>
        <%= f.text_field :name, :class => "text", :required => true %>
      <% else %>
        <%= f.form_field :name do %>
          <strong><%= @taxon.name %></strong>
          <div class="meta">
            <%= t :add_a %>
            <%= link_to t(:taxon_swap), new_taxon_change_path(:type => "TaxonSwap", :input_taxon_ids => @taxon.id) %>
            <%= t :if_you_want_to_change_the_name %>
          </div>
        <% end %>
      <% end -%>
    </div>
    <div class="column span-8">
      <%= f.select :rank, Taxon::RANK_LEVELS.keys.reject {|r| r === "root" },
        { }, { class: "text", required: true, disabled: !@protected_attributes_editable } %>
    </div>
    
    <div class="last column span-8">
      <%= f.form_field t(:featured) do %>
        <%= f.check_box :featured_at, :label_after => true, 
          :label => t(:yes_show_this_in_the_box),
          :description => t(:make_sure_the_default_photo_looks_good) %>
      <% end -%>
    </div>
  </div>
  
  <fieldset class="last column span-24">
    <legend><%= t(:classification) %></legend>
    
    <div class="stacked last column span-23">
      <div class="column span-12">
        <%= f.text_field :parent_id, value: taxon.parent_id, class: "text", disabled: !@protected_attributes_editable %><br/>

        <%= label_tag t(:parent_name) %><br/>
        <%= text_field_tag :parent_name, ( parent = taxon.parent ) ? parent.name : "", id: "parent_name", class: "text", disabled: !@protected_attributes_editable %>
        <% if @protected_attributes_editable %>
          <%= link_to_function t(:browse_all_species), "$('#taxonchooser').jqmShow();" %>
        <% end %>
        <div class="description">
          <%= t(:this_is_more_convenient_way_find_parent) %><commit_msg>Fixing my fix.<commit_after><%- taxon ||= @taxon -%>
<%= form_for(taxon, :builder => DefaultFormBuilder) do |f| %>
  <%= error_messages_for :taxon %>
  <div class="last column span-24">
    <div class="column span-8">
      <% if @taxon.new_record? || is_admin? || is_me?(@taxon.creator) -%>
        <%= f.text_field :name, :class => "text", :required => true %>
      <% else %>
        <%= f.form_field :name do %>
          <strong><%= @taxon.name %></strong>
          <div class="meta">
            <%= t :add_a %>
            <%= link_to t(:taxon_swap), new_taxon_change_path(:type => "TaxonSwap", :input_taxon_ids => @taxon.id) %>
            <%= t :if_you_want_to_change_the_name %>
          </div>
        <% end %>
      <% end -%>
    </div>
    <div class="column span-8">
      <%= f.select :rank, Taxon::RANK_LEVELS.keys.reject {|r| r === "root" },
        { }, { class: "text", required: true, disabled: !@protected_attributes_editable } %>
    </div>
    
    <div class="last column span-8">
      <%= f.form_field t(:featured) do %>
        <%= f.check_box :featured_at, :label_after => true, 
          :label => t(:yes_show_this_in_the_box),
          :description => t(:make_sure_the_default_photo_looks_good) %>
      <% end -%>
    </div>
  </div>
  
  <fieldset class="last column span-24">
    <legend><%= t(:classification) %></legend>
    
    <div class="stacked last column span-23">
      <div class="column span-12">
        <%= f.text_field :parent_id, value: taxon.parent_id, class: "text", disabled: !@protected_attributes_editable %><br/>

        <%= label_tag t(:parent_name) %><br/>
        <%= text_field_tag :parent_name, ( parent = taxon.parent rescue nil ) ? parent.name : "", id: "parent_name", class: "text", disabled: !@protected_attributes_editable %>
        <% if @protected_attributes_editable %>
          <%= link_to_function t(:browse_all_species), "$('#taxonchooser').jqmShow();" %>
        <% end %>
        <div class="description">
          <%= t(:this_is_more_convenient_way_find_parent) %>
{'fraction_non_alphanumeric': 0.18918257464512972, 'fraction_numerical': 0.0053842388644150755, 'mean_word_length': 2.8776091081593926, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 109, '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': '334726', 'n_tokens_mistral': 1515, 'n_tokens_neox': 1407, 'n_words': 266}