<commit_before><% content_for :head do %>
  <link rel="alternate" type="application/atom+xml" title="Activity Feed" href="<%= url_for stream_path(:format => 'xml', :code => @logged_in.feed_code) %>"/>
<% end %>

<% content_for :subnav do %>
  <% if Setting.get(:features, :pictures    ) %><li><%= link_to image_tag('picture.png',   :alt => 'All Pictures',     :class => 'icon') + ' All Pictures',     albums_path       %></li><% end %>
  <% if Setting.get(:features, :verses      ) %><li><%= link_to image_tag('verse.png',     :alt => 'All Verses',       :class => 'icon') + ' All Verses',       verses_path       %></li><% end %>
  <% if Setting.get(:features, :recipes     ) %><li><%= link_to image_tag('recipe.png',    :alt => 'All Recipes',      :class => 'icon') + ' All Recipes',      recipes_path      %></li><% end %>
  <% if Setting.get(:features, :news_page   ) %><li><%= link_to image_tag('newspaper.png', :alt => 'All News',         :class => 'icon') + ' All News',         news_path         %></li><% end %>
  <% if Setting.get(:features, :publications) %><li><%= link_to image_tag('page.png',      :alt => 'All Publications', :class => 'icon') + ' All Publications', publications_path %></li><% end %>
<% end %>

<div style="width:200px;float:right;">
  <%= render :partial => 'people/photo', :locals => {:url => @person} %>
  <h1><%=h @person.name %></h1>
  <p>
    <% if @person.share_home_phone?   and @person.home_phone.to_s.any?       %><%= format_phone @person.home_phone            %> home  <br/><% end %>
    <% if @person.share_mobile_phone? and @person.mobile_phone.to_s.any?     %><%= format_phone @person.mobile_phone          %> mobile<br/><% end %>
    <% if @person.share_work_phone?   and @person.work_phone.to_s.any?       %><%= format_phone @person.work_phone            %> work  <br/><% end %>
    <% if @person.share_fax?          and @person.fax.to_s.any?              %><%= format_phone @person.fax                   %> fax   <br/><% end %>
    <% if @person.share_address?      and @person.family.pretty_address.any? %><%= preserve_breaks @person.family.pretty_address %>    <br/><% end %>
  </p>

  <table class="cells-centered" style="margin-top:20px;">
    <tr>
      <td class="graphic" style="padding-bottom:20px;">
        <%= link_to_function image_tag('add.png', :alt => 'Share Something', :class => 'icon'),
          "new Effect.Appear('share'); location.hash = 'note'; Element.hide('share-something');" %>
      </td>
      <td style="padding-bottom:20px;">
        <%= link_to_function 'Share<br/>Something', "new Effect.Appear('share'); location.hash = 'note'; Element.hide('share-something');" %>
      </td>
    </tr>
    <tr><commit_msg>Fix bug when family address is nil<commit_after><% content_for :head do %>
  <link rel="alternate" type="application/atom+xml" title="Activity Feed" href="<%= url_for stream_path(:format => 'xml', :code => @logged_in.feed_code) %>"/>
<% end %>

<% content_for :subnav do %>
  <% if Setting.get(:features, :pictures    ) %><li><%= link_to image_tag('picture.png',   :alt => 'All Pictures',     :class => 'icon') + ' All Pictures',     albums_path       %></li><% end %>
  <% if Setting.get(:features, :verses      ) %><li><%= link_to image_tag('verse.png',     :alt => 'All Verses',       :class => 'icon') + ' All Verses',       verses_path       %></li><% end %>
  <% if Setting.get(:features, :recipes     ) %><li><%= link_to image_tag('recipe.png',    :alt => 'All Recipes',      :class => 'icon') + ' All Recipes',      recipes_path      %></li><% end %>
  <% if Setting.get(:features, :news_page   ) %><li><%= link_to image_tag('newspaper.png', :alt => 'All News',         :class => 'icon') + ' All News',         news_path         %></li><% end %>
  <% if Setting.get(:features, :publications) %><li><%= link_to image_tag('page.png',      :alt => 'All Publications', :class => 'icon') + ' All Publications', publications_path %></li><% end %>
<% end %>

<div style="width:200px;float:right;">
  <%= render :partial => 'people/photo', :locals => {:url => @person} %>
  <h1><%=h @person.name %></h1>
  <p>
    <% if @person.share_home_phone?   and @person.home_phone.to_s.any?            %><%= format_phone @person.home_phone            %> home  <br/><% end %>
    <% if @person.share_mobile_phone? and @person.mobile_phone.to_s.any?          %><%= format_phone @person.mobile_phone          %> mobile<br/><% end %>
    <% if @person.share_work_phone?   and @person.work_phone.to_s.any?            %><%= format_phone @person.work_phone            %> work  <br/><% end %>
    <% if @person.share_fax?          and @person.fax.to_s.any?                   %><%= format_phone @person.fax                   %> fax   <br/><% end %>
    <% if @person.share_address?      and @person.family.pretty_address.to_s.any? %><%= preserve_breaks @person.family.pretty_address %>    <br/><% end %>
  </p>

  <table class="cells-centered" style="margin-top:20px;">
    <tr>
      <td class="graphic" style="padding-bottom:20px;">
        <%= link_to_function image_tag('add.png', :alt => 'Share Something', :class => 'icon'),
          "new Effect.Appear('share'); location.hash = 'note'; Element.hide('share-something');" %>
      </td>
      <td style="padding-bottom:20px;">
        <%= link_to_function 'Share<br/>Something', "new Effect.Appear('share'); location.hash = 'note'; Element.hide('share-something');" %>
      </td>
    </tr>
    <tr>
{'fraction_non_alphanumeric': 0.21286398820493918, 'fraction_numerical': 0.004054552156284556, 'mean_word_length': 3.1301369863013697, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 175, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '947679', 'n_tokens_mistral': 1953, 'n_tokens_neox': 1813, 'n_words': 381}