<commit_before>- if @location
  - content_for :title, "Members near #{@location}"
- else content_for :title, "Find nearby members"

%p
  = form_tag(nearby_members_path, :method => :get, :class => 'form-inline') do
    = label_tag :distance, "Find members within", :class => 'control-label'
    = text_field_tag :distance, @distance, :class => 'input-mini'
    = select_tag :units, options_for_select({"miles" => :mi, "km" => :km}, @units), :width => "2em", :class => 'input-mini'
    = label_tag :location, "miles of", :class => 'control-label'
    = text_field_tag :location, @location
    = submit_tag "Search", :class => 'btn btn-primary'

- if can? :update, current_member
  %p
    = link_to "Edit your location", edit_member_registration_path(current_member)

- if !@nearby_members.empty?
  %h3 Results found
  %ul.thumbnails
    - @nearby_members.each do |member|
      %li.span2<commit_msg>Make units dropdown wide enough to contain "miles".<commit_after>- if @location
  - content_for :title, "Members near #{@location}"
- else content_for :title, "Find nearby members"

%p
  = form_tag(nearby_members_path, :method => :get, :class => 'form-inline') do
    = label_tag :distance, "Find members within", :class => 'control-label'
    = text_field_tag :distance, @distance, :class => 'input-mini'
    = select_tag :units, options_for_select({"miles" => :mi, "km" => :km}, @units), :class => 'input-small'
    = label_tag :location, "miles of", :class => 'control-label'
    = text_field_tag :location, @location
    = submit_tag "Search", :class => 'btn btn-primary'

- if can? :update, current_member
  %p
    = link_to "Edit your location", edit_member_registration_path(current_member)

- if !@nearby_members.empty?
  %h3 Results found
  %ul.thumbnails
    - @nearby_members.each do |member|
      %li.span2
{'fraction_non_alphanumeric': 0.15583700440528633, 'fraction_numerical': 0.0027533039647577094, 'mean_word_length': 4.344117647058823, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 22, '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': '6795403', 'n_tokens_mistral': 632, 'n_tokens_neox': 617, 'n_words': 160}