<commit_before>.grid-row.mod-media.result-person.cb-person
  .column-two-thirds
    .media
      .media-left
        = profile_image_tag person
      .media-body
        %h4.media-heading.cb-person-name
          = link_to es_highlighter(hit, person, :name), person,
            { data: search_result_analytics_attributes(index) }
        %ul
          - if person.memberships.present?
            %li.cb-person-memberships
              - person.memberships.each.with_index do |membership, idx|
                - if hit.try(:highlight).try(:role_and_group)
                  = link_to hit.highlight.role_and_group.join.html_safe, membership.group, { data: search_result_analytics_attributes(index) } if idx == 0
                - else
                  = "#{ membership.role }, " if membership.role?
                  = link_to membership.group.name, membership.group, { data: search_result_analytics_attributes(index) }

          %li.cb-person-phone
            = call_to(person.phone)
          %li.cb-person-email
            = mail_to(person.email, es_highlighter(hit, person, :email), data: search_result_analytics_attributes(index) )

          - if person.current_project.present?
            %li.cb-person-current-project.core-16
              %span.bold
                Current project(s)
              %br/
              = es_highlighter(hit, person, :current_project)

          - if Rails.env.development? || current_user.super_admin?
            %span{style: "float: right; font-size: 10px;"}
              Score:
              = hit._score

  .column-one-third
    - if ['sessions','tokens', 'people'].include? controller_name
      = form_for person, url: update_email_person_path(person) do |f|
        = f.hidden_field :email, value: @person.email
        = f.submit 'Select', class: 'button'<commit_msg>close role name xss attacke vector<commit_after>.grid-row.mod-media.result-person.cb-person
  .column-two-thirds
    .media
      .media-left
        = profile_image_tag person
      .media-body
        %h4.media-heading.cb-person-name
          = link_to es_highlighter(hit, person, :name), person,
            { data: search_result_analytics_attributes(index) }
        %ul
          - if person.memberships.present?
            %li.cb-person-memberships
              - person.memberships.each.with_index do |membership, idx|
                - if hit.try(:highlight).try(:role_and_group)
                  = link_to es_highlighter(hit, person, :role_and_group), membership.group, { data: search_result_analytics_attributes(index) } if idx == 0
                - else
                  = "#{ membership.role }, " if membership.role?
                  = link_to membership.group.name, membership.group, { data: search_result_analytics_attributes(index) }

          %li.cb-person-phone
            = call_to(person.phone)
          %li.cb-person-email
            = mail_to(person.email, es_highlighter(hit, person, :email), data: search_result_analytics_attributes(index) )

          - if person.current_project.present?
            %li.cb-person-current-project.core-16
              %span.bold
                Current project(s)
              %br/
              = es_highlighter(hit, person, :current_project)

          - if Rails.env.development? || current_user.super_admin?
            %span{style: "float: right; font-size: 10px;"}
              Score:
              = hit._score

  .column-one-third
    - if ['sessions','tokens', 'people'].include? controller_name
      = form_for person, url: update_email_person_path(person) do |f|
        = f.hidden_field :email, value: @person.email
        = f.submit 'Select', class: 'button'
{'fraction_non_alphanumeric': 0.11477644492911669, 'fraction_numerical': 0.003271537622682661, 'mean_word_length': 2.0988175675675675, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4872154', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1071, 'n_words': 186}