<commit_before>= content_for :meta_tags do
  -# Meta tags for facebook social graph
  meta property="og:title" content=@user.name
  meta property="og:url" content=="#{Configuration[:base_url]}#{user_path(@user)}"
  meta property="og:image" content==@user.display_image
  meta property="og:site_name" content=::Configuration[:company_name]
  meta property="og:description" content=@user.bio
  meta property="fb:admins" content="#{fb_admins}"

- content_for :js_templates do
  = render 'back'
  = render 'project'

#page_content
  .container
    #user_profile[data-user="#{@user.to_json}"]
      .section_header
        .profile_image
          = @user.display_image_html
        .profile_title
          h1.profile
              = @user.display_name
          h4.bio
              = @user.bio
      .user_social
        ul
          - if can? :manage, @user
            li.email
              = mail_to @user.email, @user.email, target: '_blank'
          - if @user.facebook_link
            li.facebook
              = link_to t('.user_social.facebook'), @user.facebook_link, target: '_blank'
          - if @user.twitter
            li.twitter
              = link_to t('.user_social.twitter'), @user.twitter_link, target: '_blank'
          - if @user.other_link
            li.other
              = link_to @user.other_link, @user.other_link, target: '_blank'

      .tab_container
        nav#user_profile_menu
          = link_to t('.tabs.backed_projects'), '#backs', id: 'backed_projects_link', class: 'selected'
          = link_to t('.tabs.created_projects'), '#projects', id: 'created_projects_link'
          / = link_to t('.tabs.comments'), '#comments', id: 'comments_link'
          - if can? :manage, @user
            = link_to t('.tabs.settings'), '#settings', id: 'settings_link'
            = link_to t('.tabs.unsubscribes'), '#unsubscribes', id: 'unsubscribes_link'
      .clearfix
      #user_profile_content
        #user_backed_projects.content
          - Project.joins(:donators).where(donators: { :user_id => @user.id } ).uniq.each do |project|
            = render '/projects/box', project: project
          - Charity.joins(:donations).where(donations: { :user_id => @user.id } ).uniq.each do |charity|
            = render '/projects/box2', project: charity          
        #user_created_projects.content
          - Project.where(:user_id => @user.id).uniq.each do |project|
            = render '/projects/box', project: project
          - Charity.where(:user_id => @user.id).uniq.each do |charity|
            = render '/projects/box2', project: charity   
        - if can? :manage, @user
          #user_unsubscribes.content.hide
            = render 'unsubscribes'
          #user_settings.content.hide
            = render 'current_user_fields'<commit_msg>fixed social buttons in profile<commit_after>= content_for :meta_tags do
  -# Meta tags for facebook social graph
  meta property="og:title" content=@user.name
  meta property="og:url" content=="#{Configuration[:base_url]}#{user_path(@user)}"
  meta property="og:image" content==@user.display_image
  meta property="og:site_name" content=::Configuration[:company_name]
  meta property="og:description" content=@user.bio
  meta property="fb:admins" content="#{fb_admins}"

- content_for :js_templates do
  = render 'back'
  = render 'project'

#page_content
  .container
    #user_profile[data-user="#{@user.to_json}"]
      .section_header
        .profile_image
          = @user.display_image_html
        .profile_title
          h1.profile
              = @user.display_name
          h4.bio
              = @user.bio
      .user_social
        ul
          - if can? :manage, @user
            li.email
              = mail_to @user.email, @user.email, target: '_blank'
          - if @user.facebook_link != ""
            li.facebook
              = link_to t('.user_social.facebook'), @user.facebook_link, target: '_blank'
          - if @user.twitter != ""
            li.twitter
              = link_to t('.user_social.twitter'), @user.twitter_link, target: '_blank'
          - if @user.other_link
            li.other
              = link_to @user.other_link, @user.other_link, target: '_blank'

      .tab_container
        nav#user_profile_menu
          = link_to t('.tabs.backed_projects'), '#backs', id: 'backed_projects_link', class: 'selected'
          = link_to t('.tabs.created_projects'), '#projects', id: 'created_projects_link'
          / = link_to t('.tabs.comments'), '#comments', id: 'comments_link'
          - if can? :manage, @user
            = link_to t('.tabs.settings'), '#settings', id: 'settings_link'
            = link_to t('.tabs.unsubscribes'), '#unsubscribes', id: 'unsubscribes_link'
      .clearfix
      #user_profile_content
        #user_backed_projects.content
          - Project.joins(:donators).where(donators: { :user_id => @user.id } ).uniq.each do |project|
            = render '/projects/box', project: project
          - Charity.joins(:donations).where(donations: { :user_id => @user.id } ).uniq.each do |charity|
            = render '/projects/box2', project: charity          
        #user_created_projects.content
          - Project.where(:user_id => @user.id).uniq.each do |project|
            = render '/projects/box', project: project
          - Charity.where(:user_id => @user.id).uniq.each do |charity|
            = render '/projects/box2', project: charity   
        - if can? :manage, @user
          #user_unsubscribes.content.hide
            = render 'unsubscribes'
          #user_settings.content.hide
            = render 'current_user_fields'
{'fraction_non_alphanumeric': 0.13527945888216447, 'fraction_numerical': 0.001423994304022784, 'mean_word_length': 2.41580547112462, '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': '1439442', 'n_tokens_mistral': 1707, 'n_tokens_neox': 1690, 'n_words': 333}