<commit_before>%section
  .page-header
    .pull-right
      - if can? :manage, @person
        = action_button "primary", "Edit person", edit_person_path(@person), :title => "Edit this person's data."
      - if can? :manage, :person
        = action_button "add", "Add person", new_person_path, :title => "Add a new person."
    %h1 Person: #{@person.full_name} 
  %ul.tabs
    %li.active= link_to "Profile", @person
    - if can? :manage, @user
      %li= link_to "User account", person_user_path(@person)
    - if @person.availabilities_in(@conference).count == 0
      %li= link_to "Availability", new_person_availability_path(@person)
    - else
      %li= link_to "Availability", edit_person_availability_path(@person)
  .row 
    .span6 
      %h2 Basic information
      %p
        %b First name:
        = @person.first_name
      %p
        %b Last name:
        = @person.last_name
      %p
        %b Public name:
        = @person.public_name
      %p
        %b Gender:
        = @person.gender
    - if can? :manage, :person
      .span6 
        %h2 Contact information
        %p
          %b Email:
          = mail_to @person.email
          (#{@person.email_public ? "public" : "non-public"})
        - @person.phone_numbers.each do |phone_number|
          %p
            %b
              Phone number (#{phone_number.phone_type}):
            = phone_number.phone_number
        - @person.im_accounts.each do |im_account|
          %p
            %b
              = im_account.im_type
              \:
            = im_account.im_address
    .span4
      = image_box @person.avatar, :large
%section
  .row
    .span16
      %h2 Bio
  .row
    .span6
      %p
        %b Abstract:
        = simple_format @person.abstract
      %p
        %b Links:
        %br/
        - @person.links.each do |link|
          = link_to link.title, link.url
          %br/
    .span10
      %p
        %b Description:
        = simple_format @person.description
    .span10
      %p
        %b Notes(admin):
        = simple_format @person.note
%section
  .row
    .span16
      - unless @current_events.empty?
        %h2 Events in current conference
        = render "events/table", :events => @current_events
      - unless @other_events.empty?
        %h2 Events in other conferences
        = render "events/table", :events => @other_events
<commit_msg>Correctly display email public/non-public attribute<commit_after>%section
  .page-header
    .pull-right
      - if can? :manage, @person
        = action_button "primary", "Edit person", edit_person_path(@person), :title => "Edit this person's data."
      - if can? :manage, :person
        = action_button "add", "Add person", new_person_path, :title => "Add a new person."
    %h1 Person: #{@person.full_name} 
  %ul.tabs
    %li.active= link_to "Profile", @person
    - if can? :manage, @user
      %li= link_to "User account", person_user_path(@person)
    - if @person.availabilities_in(@conference).count == 0
      %li= link_to "Availability", new_person_availability_path(@person)
    - else
      %li= link_to "Availability", edit_person_availability_path(@person)
  .row 
    .span6 
      %h2 Basic information
      %p
        %b First name:
        = @person.first_name
      %p
        %b Last name:
        = @person.last_name
      %p
        %b Public name:
        = @person.public_name
      %p
        %b Gender:
        = @person.gender
    - if can? :manage, :person
      .span6 
        %h2 Contact information
        %p
          %b Email:
          = mail_to @person.email
          (#{@person.email_public? ? "public" : "non-public"})
        - @person.phone_numbers.each do |phone_number|
          %p
            %b
              Phone number (#{phone_number.phone_type}):
            = phone_number.phone_number
        - @person.im_accounts.each do |im_account|
          %p
            %b
              = im_account.im_type
              \:
            = im_account.im_address
    .span4
      = image_box @person.avatar, :large
%section
  .row
    .span16
      %h2 Bio
  .row
    .span6
      %p
        %b Abstract:
        = simple_format @person.abstract
      %p
        %b Links:
        %br/
        - @person.links.each do |link|
          = link_to link.title, link.url
          %br/
    .span10
      %p
        %b Description:
        = simple_format @person.description
    .span10
      %p
        %b Notes(admin):
        = simple_format @person.note
%section
  .row
    .span16
      - unless @current_events.empty?
        %h2 Events in current conference
        = render "events/table", :events => @current_events
      - unless @other_events.empty?
        %h2 Events in other conferences
        = render "events/table", :events => @other_events

{'fraction_non_alphanumeric': 0.11474722047409272, 'fraction_numerical': 0.007971470526536606, 'mean_word_length': 1.819633353045535, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5876403', 'n_tokens_mistral': 1536, 'n_tokens_neox': 1490, 'n_words': 364}