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


- content_for :head do
  = include_javascripts :people

- content_for :page_title do
  = @person.name

.span-6
  = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact }

  - if user_signed_in? && @contact.persisted? && @contacts_of_contact.count > 0
    .span-5.last#contacts_of_contact
      .section.contact_pictures
        %h4
          = t('contacts', :count => @contacts_of_contact_count)
        - for person in @contacts_of_contact
          = person_image_link person
      - if @contacts_of_contact.count > 8
        %p.see_all= link_to t('.see_all'), person_contacts_path(@person)

.span-18.last
  .stream_container
    = render 'people/sub_header', :person => @person, :contact => @contact

    / hackity hack until we get a photo stream
    - if (@posts && @posts.length > 0) || @stream.stream_posts.length > 0
      -if @post_type == :photos
        = render 'photos/index', :photos => @posts
      - else
        #main_stream.stream
          = render 'shared/stream', :posts => @stream.stream_posts
          #pagination
            =link_to(t('more'), next_page_path, :class => 'paginate')

    - else
      #main_stream
        %div{:style=>"text-align:center;", :class => "dull"}
          - if @block.present?
            = t('.ignoring', :name => @person.first_name)
          - else
            = t('.has_not_shared_with_you_yet', :name => @person.first_name)
<commit_msg>fixed 500 error if one is opening people's photos view and there are no images in the user's stream<commit_after>-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.


- content_for :head do
  = include_javascripts :people

- content_for :page_title do
  = @person.name

.span-6
  = render :partial => 'people/profile_sidebar', :locals => {:person => @person, :contact => @contact }

  - if user_signed_in? && @contact.persisted? && @contacts_of_contact.count > 0
    .span-5.last#contacts_of_contact
      .section.contact_pictures
        %h4
          = t('contacts', :count => @contacts_of_contact_count)
        - for person in @contacts_of_contact
          = person_image_link person
      - if @contacts_of_contact.count > 8
        %p.see_all= link_to t('.see_all'), person_contacts_path(@person)

.span-18.last
  .stream_container
    = render 'people/sub_header', :person => @person, :contact => @contact

    / hackity hack until we get a photo stream
    - if (@posts && @posts.length > 0) || (@stream && @stream.stream_posts.length > 0)
      -if @post_type == :photos
        = render 'photos/index', :photos => @posts
      - else
        #main_stream.stream
          = render 'shared/stream', :posts => @stream.stream_posts
          #pagination
            =link_to(t('more'), next_page_path, :class => 'paginate')

    - else
      #main_stream
        %div{:style=>"text-align:center;", :class => "dull"}
          - if @block.present?
            = t('.ignoring', :name => @person.first_name)
          - else
            = t('.has_not_shared_with_you_yet', :name => @person.first_name)

{'fraction_non_alphanumeric': 0.1345519928079113, 'fraction_numerical': 0.011687144141444412, 'mean_word_length': 2.729608938547486, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '7635722', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1062, 'n_words': 259}