<commit_before><%= content_tag :tr, :class => :relationship, :id => "relationship_#{relationship.id}", :"data-product-id" => @product.id do %>
  <td class="image">
  </td>
  <td class="name">
    <%= relationship.kind.humanize.downcase %>
  </td>
  <td>
    <%= relationship.child_product.title %>
  </td>
  <td>
  </td>
  <td class="actions">
    <p class="relationship-actions">
      <%= link_to "Delete", admin_store_product_product_relationship_path(@product, relationship, :format => :js), :method => :delete, :remote => true, :class => "small red delete button" %>
      <%= link_to "Edit", edit_admin_store_product_product_relationship_path(@product, relationship), :class => "small black edit button" %>
    </p>
  </td>
<% end %>

<commit_msg>Partial for product relationships now handles case where child_product is missing (shouldn't happen, but currently it's possible if you try to create a relationship on a store with only one product)<commit_after><%= content_tag :tr, :class => :relationship, :id => "relationship_#{relationship.id}", :"data-product-id" => @product.id do %>
  <td class="image">
  </td>
  <td class="name">
    <%= relationship.kind.humanize.downcase %>
  </td>
  <td>
    <%= relationship.child_product.title if relationship.child_product %>
  </td>
  <td>
  </td>
  <td class="actions">
    <p class="relationship-actions">
      <%= link_to "Delete", admin_store_product_product_relationship_path(@product, relationship, :format => :js), :method => :delete, :remote => true, :class => "small red delete button" %>
      <%= link_to "Edit", edit_admin_store_product_product_relationship_path(@product, relationship), :class => "small black edit button" %>
    </p>
  </td>
<% end %>


{'fraction_non_alphanumeric': 0.17315514235909354, 'fraction_numerical': 0.0, 'mean_word_length': 4.590909090909091, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 55, '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': '677405', 'n_tokens_mistral': 571, 'n_tokens_neox': 532, 'n_words': 138}