<commit_before><script type="text/javascript">
  $(document).ready(function() {
    window.geoEntitiesList = new SAPIAdmin.EditableList({
      list: <%= @taxon_concept.geo_entities.to_json.html_safe %>,
      el: '<ul class="unstyled">',
    })

    $('.geo-entities-list').html(window.geoEntitiesList.render());

    window.commonNamesList = new SAPIAdmin.EditableList({
      list: <%= @taxon_concept.common_names.to_json.html_safe %>,
      el: '<ul class="unstyled">',
      showEditLink: true,
      onEdit: function(e) {
        name = $(e.target).parents('li').attr('data-id')
        console.log(name);
      }
    })

    $('.common-names-list').html(window.commonNamesList.render());
  });
</script>

<div class="row-fluid header">
  <h1><%= @taxon_concept.full_name || @taxon_concept.full_name %></h1>
  <%= @taxon_concept.author_year %>
</div>

<ul id="taxon-concept-tabs" class="nav nav-tabs">
  <li class="active"><a href="#details" data-toggle="tab">Details</a></li>
  <li><a href="#taxon-relationships" data-toggle="tab">Taxon Relationships</a></li>
  <li><a href="#legislation" data-toggle="tab">Legislation</a></li>
</ul>

<div class="tab-content">
  <div class="tab-pane fade active in" id="details">
    <%= form_for :taxon_concept, :url => admin_taxon_concepts_url, :remote => true do |f| %>
      <div class="row-fluid">

        <div class="span3">
          <h3>Details</h3>
          <% render "form" %>
        </div>

        <div class="span3">
          <h3>Synonyms</h3>
          <%= admin_add_new_synonym_button %>
          <%= admin_new_synonym_modal(@synonym, @taxon_concept) %>

          <hr>

          <div class="synonyms-list">
            <%= render 'synonym_list' %>
          </div>
        </div>

        <div class="span3"><commit_msg>Fixed form rendering caused by merge conflict<commit_after><script type="text/javascript">
  $(document).ready(function() {
    window.geoEntitiesList = new SAPIAdmin.EditableList({
      list: <%= @taxon_concept.geo_entities.to_json.html_safe %>,
      el: '<ul class="unstyled">',
    })

    $('.geo-entities-list').html(window.geoEntitiesList.render());

    window.commonNamesList = new SAPIAdmin.EditableList({
      list: <%= @taxon_concept.common_names.to_json.html_safe %>,
      el: '<ul class="unstyled">',
      showEditLink: true,
      onEdit: function(e) {
        name = $(e.target).parents('li').attr('data-id')
        console.log(name);
      }
    })

    $('.common-names-list').html(window.commonNamesList.render());
  });
</script>

<div class="row-fluid header">
  <h1><%= @taxon_concept.full_name || @taxon_concept.full_name %></h1>
  <%= @taxon_concept.author_year %>
</div>

<ul id="taxon-concept-tabs" class="nav nav-tabs">
  <li class="active"><a href="#details" data-toggle="tab">Details</a></li>
  <li><a href="#taxon-relationships" data-toggle="tab">Taxon Relationships</a></li>
  <li><a href="#legislation" data-toggle="tab">Legislation</a></li>
</ul>

<div class="tab-content">
  <div class="tab-pane fade active in" id="details">
    <%= form_for :taxon_concept, :url => admin_taxon_concepts_url, :remote => true do |f| %>
      <div class="row-fluid">

        <div class="span3">
          <h3>Details</h3>
          <%= render "form" %>
        </div>

        <div class="span3">
          <h3>Synonyms</h3>
          <%= admin_add_new_synonym_button %>
          <%= admin_new_synonym_modal(@synonym, @taxon_concept) %>

          <hr>

          <div class="synonyms-list">
            <%= render 'synonym_list' %>
          </div>
        </div>

        <div class="span3">
{'fraction_non_alphanumeric': 0.19310919699916643, 'fraction_numerical': 0.005001389274798555, 'mean_word_length': 3.152249134948097, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 99, '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': '5991077', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1238, 'n_words': 191}