<commit_before>- title "#{@user.displayname}"
%section.box.show.user{ class: admin_or_myself? ? "edit-controls" : ""}
  %h1.box-title= h1
  .box-content.form-horizontal.form-data
    %section.vcard
      .photo
        = image_tag @user.avatar.url(:large), alt: "Profilbild"
        - if admin_or_myself?
          = link_to(raw("Redigera <span>profil</span>"), edit_user_path(@user), class: "btn btn-mini edit")
          = link_to "Byt bild", edit_avatar_path(@user), class: "change-avatar btn btn-mini"

      .main-card
        - unless myself?
          .colleagueship
            - if @colleagueship.present?
              %button.btn.btn-mini.remove{ data: { "colleagueship-id" => @colleagueship.id, "path" => colleagueships_path, "user-id" => @user.id }} Följer
            - else
              %button.btn.btn-primary.btn-mini.add{ data: { path: colleagueships_path, "user-id" => @user.id }} Följ

        %h2.fn= "#{@user.first_name} #{@user.last_name}"
        %p.org
          - if @user.title.present?
            %span.title= "#{@user.title}, "
          - if @user.company.present?
            %span.department= link_to "#{@user.company_short}, ", users_path(company: @user.company)
          - if @user.department.present?
            %span.team= link_to @user.department, users_path(department: @user.department)

        = simple_format @user.professional_bio, class: "professional-bio"
        %p.phone= [@user.phone, @user.cell_phone].reject(&:blank?).join(", ")
        %p.email= @user.email
        %p.status_message= "Statusmeddelande: #{@user.status_message || "Jag har ingen status än"}"
        #user-activities{ "data-path" => user_activities_path(@user) }<commit_msg>Prevent xhr call on id 0 for CMG<commit_after>- title "#{@user.displayname}"
%section.box.show.user{ class: admin_or_myself? ? "edit-controls" : ""}
  %h1.box-title= h1
  .box-content.form-horizontal.form-data
    %section.vcard
      .photo
        = image_tag @user.avatar.url(:large), alt: "Profilbild"
        - if admin_or_myself?
          = link_to(raw("Redigera <span>profil</span>"), edit_user_path(@user), class: "btn btn-mini edit")
          = link_to "Byt bild", edit_avatar_path(@user), class: "change-avatar btn btn-mini"

      .main-card
        - unless myself?
          .colleagueship
            - if @colleagueship.present?
              %button.btn.btn-mini.remove{ data: { "colleagueship-id" => @colleagueship.id, "path" => colleagueships_path, "user-id" => @user.id }} Följer
            - else
              %button.btn.btn-primary.btn-mini.add{ data: { path: colleagueships_path, "user-id" => @user.id }} Följ

        %h2.fn= "#{@user.first_name} #{@user.last_name}"
        %p.org
          - if @user.title.present?
            %span.title= "#{@user.title}, "
          - if @user.company.present?
            %span.department= link_to "#{@user.company_short}, ", users_path(company: @user.company)
          - if @user.department.present?
            %span.team= link_to @user.department, users_path(department: @user.department)

        = simple_format @user.professional_bio, class: "professional-bio"
        %p.phone= [@user.phone, @user.cell_phone].reject(&:blank?).join(", ")
        %p.email= @user.email
        %p.status_message= "Statusmeddelande: #{@user.status_message || "Jag har ingen status än"}"
        - unless @user.cmg_id == "0"
          #user-activities{ "data-path" => user_activities_path(@user.cmg_id) }
{'fraction_non_alphanumeric': 0.16439942112879885, 'fraction_numerical': 0.0023154848046309695, 'mean_word_length': 2.6844349680170576, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 17, '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': '495306', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1182, 'n_words': 206}