<commit_before>%h1.big_text
  .back
    = link_to "⇧ home", root_path

  Search

%p
  =form_tag '/users', :method => "get" do
    = text_field_tag :q
    = submit_tag "search"
    = link_to "reset", users_path

= (@people.count).to_s + search_or_index
%table
  %tr
    %th real name
    %th email
    %th url
    - for person in @people
      %tr
        %td= person.real_name
        %td= person.email
        %td= person.url
        
        -if current_user.friends.include? person

        - elsif person.id == current_user.person.id
          %td
          %td thats you!
        -elsif current_user.pending_requests.find_by_person_id(person.id)
          %td 
          %td ^-you have a friend request from this person       
        -elsif current_user.pending_requests.find_by_url(person.receive_url)
          %td 
          %td friend request pending
        -else
          %td
          %td
            = form_for Request.new do |f|
              = f.select(:group_id, @groups_array)
              = f.hidden_field :destination_url, :value => person.email
              = f.submit "add friend"<commit_msg>DG MS; search now links user names if you're friends with them<commit_after>%h1.big_text
  .back
    = link_to "⇧ home", root_path

  Search

%p
  =form_tag '/users', :method => "get" do
    = text_field_tag :q
    = submit_tag "search"
    = link_to "reset", users_path

= (@people.count).to_s + search_or_index
%table
  %tr
    %th real name
    %th email
    %th url
    - for person in @people
      %tr
        - if current_user.friends.include? person
          %td= link_to person.real_name, person
        - else
          %td= person.real_name

        %td= person.email
        %td= person.url
        
        -if current_user.friends.include? person

        - elsif person.id == current_user.person.id
          %td
          %td thats you!
        -elsif current_user.pending_requests.find_by_person_id(person.id)
          %td 
          %td ^-you have a friend request from this person       
        -elsif current_user.pending_requests.find_by_url(person.receive_url)
          %td 
          %td friend request pending
        -else
          %td
          %td
            = form_for Request.new do |f|
              = f.select(:group_id, @groups_array)
              = f.hidden_field :destination_url, :value => person.email
              = f.submit "add friend"
{'fraction_non_alphanumeric': 0.09795748228428512, 'fraction_numerical': 0.0008336807002917883, 'mean_word_length': 1.8169014084507042, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4100335', 'n_tokens_mistral': 776, 'n_tokens_neox': 763, 'n_words': 192}