<commit_before><% index ||= params[:index] || random_dom_id -%>
<% dom_id = "person_email_address_#{index}" -%>
<% email_types_options = options_for_select(
     Profile::EmailAddress.options,
     (email_address ? email_address.email_type : nil)
   )
-%>
<tr id="<%=dom_id%>" class='data_row'>
  <td>
    <%= mark_as_primary(email_address, 'person', 'email_address', index) %>
  </td>
  <td style="width:80px;">
    <%= select_tag_with_id "person[email_addresses][#{index}][email_type]", email_types_options, {:id => "person_email_addresses_#{index}_email_type"} %>
  </td>
  <td>
    <input id="person_email_addresses_<%= index %>_email_address" size="20" value="<%=h email_address.email_address %>" type="text" maxlength="100" name="person[email_addresses][<%= index %>][email_address]" class="textInput person_email_address" style="width:199px;" />
  </td>
  <td>
    <%= remove_link dom_id %>
  </td>
</tr>
<tr><td><div class='spacer'></div></td></tr>
<commit_msg>minor fix: emails in profiles now save<commit_after><% index ||= params[:index] || random_dom_id -%>
<% dom_id = "profile_email_address_#{index}" -%>
<% email_types_options = options_for_select(
     Profile::EmailAddress.options,
     (email_address ? email_address.email_type : nil)
   )
-%>
<tr id="<%=dom_id%>" class='data_row'>
  <td>
    <%= mark_as_primary(email_address, 'profile', 'email_address', index) %>
  </td>
  <td style="width:80px;">
    <%= select_tag_with_id "profile[email_addresses][#{index}][email_type]", email_types_options, {:id => "profile_email_addresses_#{index}_email_type"} %>
  </td>
  <td>
    <input id="profile_email_addresses_<%= index %>_email_address" size="20" value="<%=h email_address.email_address %>" type="text" maxlength="100" name="profile[email_addresses][<%= index %>][email_address]" class="textInput profile_email_address" style="width:199px;" />
  </td>
  <td>
    <%= remove_link dom_id %>
  </td>
</tr>
<tr><td><div class='spacer'></div></td></tr>

{'fraction_non_alphanumeric': 0.20456852791878172, 'fraction_numerical': 0.01015228426395939, 'mean_word_length': 6.167272727272727, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 59, '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': '4610943', 'n_tokens_mistral': 755, 'n_tokens_neox': 715, 'n_words': 112}