<commit_before>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

- content_for :page_title do
  = @person.name

.span-24.last
  #author_info
    .from{:style=>"padding-left:0;display:block;"}
      %h2{:style=>"display:block;"}
        = @person.name
        .right{:style => "top:0;"}
          %span.description
            = @person.diaspora_handle

      #person_nav_links
        = link_to t('layouts.header.view_profile'), person_path(@person)
        = link_to t('_photos'), person_photos_path(@person)

.span-8.append-1.last
  = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact }

  - if @contact && @similar_people.count > 0
    .span-8.last
      %hr{:style=>"width:300px;"}
      .section.contact_pictures
        %h4
          = t('.similar_contacts')
        - for person in @similar_people
          = person_image_link person

.span-15.last
  - unless @contact || current_user.person == @person
    - if @incoming_request
      .floating
        %h3
          = t('.incoming_request')
        %h4
          = link_to t('.return_to_aspects'), aspects_manage_path
          = t('.to_accept_or_ignore')

  - if @posts.count > 0
    -if @post_type == :photos
      %h4
        = t('_photos')
      = render 'photos/index', :photos => @posts
    - else
      %h4
        - if @contact
          = t('.recent_posts')
        - else
          = t('.recent_public_posts')

      = render 'shared/stream', :posts => @post_hashes
    = will_paginate @posts

  - else
    %ul#stream
      %li
        %h3= t('.no_posts')
<commit_msg>changes for person show page<commit_after>-#   Copyright (c) 2010, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

- content_for :page_title do
  = @person.name

.span-24.last
  #author_info
    .from{:style=>"padding-left:0;display:block;"}
      %h2{:style=>"display:block;"}
        = @person.name
        .right{:style => "top:0;"}
          %span.description
            = @person.diaspora_handle

      #person_nav_links
        = link_to t('layouts.header.view_profile'), person_path(@person)
        = link_to t('_photos'), person_photos_path(@person)

.span-8.append-1.last
  = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact }

  - if @contact && @similar_people.count > 0
    .span-8.last
      %hr{:style=>"width:300px;"}
      .section.contact_pictures
        %h4
          = t('.similar_contacts')
        - for person in @similar_people
          = person_image_link person

.span-15.last
  - unless @contact || current_user.person == @person
    - if @incoming_request
      .floating
        %h3
          = t('.incoming_request')
        %h4
          = link_to t('.return_to_aspects'), aspects_manage_path
          = t('.to_accept_or_ignore')

  - if @posts.count > 0
    -if @post_type == :photos
      %h4
        = t('_photos')
      = render 'photos/index', :photos => @posts
    - else
      %h4
        - if @contact
          = t('.recent_posts')
        - else
          = t('.recent_public_posts')
    
    %ul{:class => 'stream', :id => 'main_stream'}
      = render 'shared/stream', :posts => @post_hashes
    = will_paginate @posts

  - else
    %ul#stream
      %li
        %h3= t('.no_posts')

{'fraction_non_alphanumeric': 0.1446340757882557, 'fraction_numerical': 0.015041943881978595, 'mean_word_length': 2.271523178807947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 29, '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': '4868352', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1149, 'n_words': 234}