<commit_before><%= breadcrumbs(@object) %>

<% @object.get_entity_columns.each do |column| -%>
<p>
    <% if column.name == 'notes' -%>
        <b><%= column.human_name %>:</b> 
        <%= markdown @object.send(column.name) -%>
    <% else %>
        <b><%= column.human_name %>:</b> 
        <%= h @object.send(column.name) -%>
    <% end -%>
</p>
<% end %>
  
<% @object.get_single_associations(true).each do |association| -%>
<p>
    <b><%= association.name.to_s.humanize %>:</b> <%= @object.send(association.name).display_name unless @object.send(association.name).nil? %>
</p>
<% end %>
    
<% @object.get_multiple_associations(true).each do |association| %>
<h2><%= association.name.to_s.humanize %></h2>
<%= link_to "New #{association.name.to_s.singularize.humanize.downcase}", { :controller => association.class_name.tableize, :action => 'new' } %>
<ul>
    <% for c in @object.send(association.name) %>
    <li>
        <%= link_to c.display_name, :controller => association.class_name.tableize, :action => 'show', :id => c.id %> 
        <%= link_to 'Edit', :controller => association.class_name.tableize, :action => 'edit', :id => c.id %>
        <%= link_to 'Delete', { :controller => association.class_name.tableize, :action => 'destroy', :id => c.id}, :confirm => 'Are you sure?', :method => :post  %>
    </li>
    <% end %>
</ul>
<% end %>

<%= link_to 'Edit', :action => 'edit', :id => @object %> |
<%= link_to 'Back', :action => 'list' %>
<commit_msg>fixed #19: dropping 'Delete' link for subordinary entity<commit_after><%= breadcrumbs(@object) %>

<% @object.get_entity_columns.each do |column| -%>
<p>
    <% if column.name == 'notes' -%>
        <b><%= column.human_name %>:</b> 
        <%= markdown @object.send(column.name) -%>
    <% else %>
        <b><%= column.human_name %>:</b> 
        <%= h @object.send(column.name) -%>
    <% end -%>
</p>
<% end %>
  
<% @object.get_single_associations(true).each do |association| -%>
<p>
    <b><%= association.name.to_s.humanize %>:</b> <%= @object.send(association.name).display_name unless @object.send(association.name).nil? %>
</p>
<% end %>
    
<% @object.get_multiple_associations(true).each do |association| %>
<h2><%= association.name.to_s.humanize %></h2>
<%= link_to "New #{association.name.to_s.singularize.humanize.downcase}", { :controller => association.class_name.tableize, :action => 'new' } %>
<ul>
    <% for c in @object.send(association.name) %>
    <li>
        <%= link_to c.display_name, :controller => association.class_name.tableize, :action => 'show', :id => c.id %> 
        <%= link_to 'Edit', :controller => association.class_name.tableize, :action => 'edit', :id => c.id %>
    </li>
    <% end %>
</ul>
<% end %>

<%= link_to 'Edit', :action => 'edit', :id => @object %> |
<%= link_to 'Back', :action => 'list' %>

{'fraction_non_alphanumeric': 0.22698961937716264, 'fraction_numerical': 0.0020761245674740486, 'mean_word_length': 3.2204379562043797, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 0, '>': 111, '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': '7629807', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1048, 'n_words': 189}