<commit_before><% if params[:action] == 'simple_view' and not @person.visible?(@family) %>
  <p>
    <%= image_tag 'lock.gif', :alt => I18n.t('people.hidden_profile'), :class => 'icon' %>
    <%= I18n.t('people.this_profile_is_hidden') %>
  </p>
<% end %>

<table>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :website, :label => I18n.t('people.website') } do %>
    <% if @person.website.to_s.any? %>
      <%= link_to h(simple_url(@person.website)), @person.website %>
    <% end %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :email, :label => I18n.t('privacies.email') } do %>
    <%= mail_to @person.email %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :home_phone, :label => I18n.t('privacies.home_phone') } do %>
    <%= format_phone(@person.home_phone) %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :mobile_phone, :label => I18n.t('privacies.mobile_phone') } do %>
    <%= format_phone(@person.mobile_phone, :mobile) %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :work_phone, :label => I18n.t('privacies.work_phone') } do %>
    <%= format_phone(@person.work_phone) %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :fax, :label => I18n.t('privacies.fax') } do %>
    <%= format_phone(@person.fax) %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :address, :label => I18n.t('privacies.address') } do %>
    <%=h @person.address.sub(/\n/, '<br/>') %><br/>
    <%= link_to h(@person.city), search_path(:city => @person.city), :title => I18n.t('people.search_people_city') %>,
    <%= link_to h(@person.state), search_path(:state => @person.state), :title => I18n.t('people.search_people_state') %>
    <% if @person.zip %>
      <%= link_to h(@person.short_zip), search_path(:zip => @person.short_zip), :title => I18n.t('people.search_people_zip') %>
    <% end %>
    <%= render :partial => 'families/map_link' %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :birthday, :label => I18n.t('privacies.birthday') } do %>
    <% if @person.birthday %>
      <%= link_to @person.birthday.strftime('%B'), search_path(:birthday_month => @person.birthday.month), :title => I18n.t('people.search_for_birthdays', :birthday => @person.birthday.strftime('%B')) %>
      <%= link_to @person.birthday.strftime('%d'), search_path(:birthday_month => @person.birthday.month, :birthday_day => @person.birthday.day), :title => I18n.t('people.search_for_birthdays', :birthday => @person.birthday.strftime('%B %d')) %>
    <% end %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :anniversary, :label => I18n.t('privacies.anniversary') } do %>
    <% if @person.anniversary %>
      <%= link_to @person.anniversary.strftime('%B'), search_path(:anniversary_month => @person.anniversary.month), :title => I18n.t('people.search_for_anniversaries', :anniversary => @person.anniversary.strftime('%B')) %>
      <%= link_to @person.anniversary.strftime('%d'), search_path(:anniversary_month => @person.anniversary.month, :anniversary_day => @person.anniversary.day), :title => I18n.t('people.search_for_anniversaries', :anniversary => @person.anniversary.strftime('%B %d')) %>
    <% end %>
  <% end %><commit_msg>Fix bug displaying address with two lines.<commit_after><% if params[:action] == 'simple_view' and not @person.visible?(@family) %>
  <p>
    <%= image_tag 'lock.gif', :alt => I18n.t('people.hidden_profile'), :class => 'icon' %>
    <%= I18n.t('people.this_profile_is_hidden') %>
  </p>
<% end %>

<table>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :website, :label => I18n.t('people.website') } do %>
    <% if @person.website.to_s.any? %>
      <%= link_to h(simple_url(@person.website)), @person.website %>
    <% end %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :email, :label => I18n.t('privacies.email') } do %>
    <%= mail_to @person.email %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :home_phone, :label => I18n.t('privacies.home_phone') } do %>
    <%= format_phone(@person.home_phone) %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :mobile_phone, :label => I18n.t('privacies.mobile_phone') } do %>
    <%= format_phone(@person.mobile_phone, :mobile) %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :work_phone, :label => I18n.t('privacies.work_phone') } do %>
    <%= format_phone(@person.work_phone) %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :fax, :label => I18n.t('privacies.fax') } do %>
    <%= format_phone(@person.fax) %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :address, :label => I18n.t('privacies.address') } do %>
    <%= preserve_breaks @person.address %><br/>
    <%= link_to h(@person.city), search_path(:city => @person.city), :title => I18n.t('people.search_people_city') %>,
    <%= link_to h(@person.state), search_path(:state => @person.state), :title => I18n.t('people.search_people_state') %>
    <% if @person.zip %>
      <%= link_to h(@person.short_zip), search_path(:zip => @person.short_zip), :title => I18n.t('people.search_people_zip') %>
    <% end %>
    <%= render :partial => 'families/map_link' %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :birthday, :label => I18n.t('privacies.birthday') } do %>
    <% if @person.birthday %>
      <%= link_to @person.birthday.strftime('%B'), search_path(:birthday_month => @person.birthday.month), :title => I18n.t('people.search_for_birthdays', :birthday => @person.birthday.strftime('%B')) %>
      <%= link_to @person.birthday.strftime('%d'), search_path(:birthday_month => @person.birthday.month, :birthday_day => @person.birthday.day), :title => I18n.t('people.search_for_birthdays', :birthday => @person.birthday.strftime('%B %d')) %>
    <% end %>
  <% end %>
  <% render :layout => 'people/detail_row', :locals => { :attribute => :anniversary, :label => I18n.t('privacies.anniversary') } do %>
    <% if @person.anniversary %>
      <%= link_to @person.anniversary.strftime('%B'), search_path(:anniversary_month => @person.anniversary.month), :title => I18n.t('people.search_for_anniversaries', :anniversary => @person.anniversary.strftime('%B')) %>
      <%= link_to @person.anniversary.strftime('%d'), search_path(:anniversary_month => @person.anniversary.month, :anniversary_day => @person.anniversary.day), :title => I18n.t('people.search_for_anniversaries', :anniversary => @person.anniversary.strftime('%B %d')) %>
    <% end %>
  <% end %>
{'fraction_non_alphanumeric': 0.22566564818856394, 'fraction_numerical': 0.010475774770842427, 'mean_word_length': 4.593165174938974, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 220, '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': '899408', 'n_tokens_mistral': 2662, 'n_tokens_neox': 2381, 'n_words': 391}