<commit_before><% menu :people %>
<% content_for :javascript do %>
	<%= render :partial => 'list_javascript' %>
	$("#users_search").livequery('keyup', function() {
    var filter_text = this.value.toLowerCase();
    $("div.user").each(function() {
        if($(this).text().toLowerCase().search(filter_text)>=0){
          $(this).slideDown("slow");
      }else{
          $(this).slideUp("slow");
      }
      });
  });
	
	$("#space_search").click(function(){
	  if(this.value == "Search Users..."){
		  this.value="";
		}
	});
<% end %>

<% content_for :search do  %>
  <%= render :partial => 'search' %>
<%end%>

<% content_for :sidebar do  %>
<!-- Ojo, esto hay que pensar qué queremos que se vea aquí -->
	<%if params[:send_message]%>
		<%= render :partial => 'private_messages/new_private_message', :locals => { :checked_users =>  params[:send_message]} %>
	<%elsif space.users.include?(current_user) and @space.authorizes?([:manage, :group], :to => current_user) %>
		<%= render :partial => 'groups/create_group', :locals=> {:group => @editing_group} %>
	<%else%>
		<%if !space.users.include?(current_user) and logged_in? and space.public?%>
	  	<% form_tag join_space_path(space), :id => "join_form" do %>
   			<%= image_submit_tag("buttons/join-space.png") %>
 			<% end %>
		<%end%>
		<%if !space.users.include?(current_user)%>
	  	<%=link_to image_tag("buttons/join-space.png", :alt => "Join space"), join_space_path(space), :class => "fancybox_link"%>
		<%end%>
		<div class="space-desc">
			<h3>About <em><%=@space.name%></em></h3>
			<p><%=image_tag(logo_path(@space, :size =>48), :align => "left")%>
			<%= sanitize(space.description) if space.description.present? %></p>
		</div>					
	<%end%>
<% end %>

<div id="list_by_names_selected" class="group_links" >
	<span>List by: </span>
	<span class="selected">Names</span>
	<%= link_to 'Groups', space_groups_path(@space), { :id => 'groups_link' } %>
</div>

<div id="list_by_groups_selected" class="group_links" style="display: none;">
	<span>List by: </span>
	<%= link_to 'Names', space_users_path(@space), { :id => 'names_link' } %>
	<span class="selected">Groups</span>
</div>

<div id="list_by_groups" style="display: none;">
	<%= render :partial => 'groups/list' %>
</div>
<div id="list_by_name" >
	<%= render :partial => 'list' %>
</div>

<commit_msg>buf in user index view fixed<commit_after><% menu :people %>
<% content_for :javascript do %>
	<%= render :partial => 'list_javascript' %>
	$("#users_search").livequery('keyup', function() {
    var filter_text = this.value.toLowerCase();
    $("div.user").each(function() {
        if($(this).text().toLowerCase().search(filter_text)>=0){
          $(this).slideDown("slow");
      }else{
          $(this).slideUp("slow");
      }
      });
  });
	
	$("#space_search").click(function(){
	  if(this.value == "Search Users..."){
		  this.value="";
		}
	});
<% end %>

<% content_for :search do  %>
  <%= render :partial => 'search' %>
<%end%>

<% content_for :sidebar do  %>
<!-- Ojo, esto hay que pensar qué queremos que se vea aquí -->
	<%if params[:send_message]%>
		<%= render :partial => 'private_messages/new_private_message', :locals => { :checked_users =>  params[:send_message]} %>
	<%elsif space.users.include?(current_user) and @space.authorizes?([:manage, :group], :to => current_user) %>
		<%= render :partial => 'groups/create_group', :locals=> {:group => @editing_group} %>
	<%else%>
<!--
		<%if !space.users.include?(current_user) and logged_in? and space.public?%>
	  	<% form_tag join_space_path(space), :id => "join_form" do %>
   			<%= image_submit_tag("buttons/join-space.png") %>
 			<% end %>
		<%elsif !space.users.include?(current_user) and logged_in? and !space.public?%>
	  	<%=link_to image_tag("buttons/join-space.png", :alt => "Join space"), join_space_path(space), :class => "fancybox_link"%>					
		<%end%>
-->
	<div class="space-desc">
			<h3>About <em><%=@space.name%></em></h3>
			<p><%=image_tag(logo_path(@space, :size =>48), :align => "left")%>
			<%= sanitize(space.description) if space.description.present? %></p>
		</div>
	<%end%>
<% end %>

<div id="list_by_names_selected" class="group_links" >
	<span>List by: </span>
	<span class="selected">Names</span>
	<%= link_to 'Groups', space_groups_path(@space), { :id => 'groups_link' } %>
</div>

<div id="list_by_groups_selected" class="group_links" style="display: none;">
	<span>List by: </span>
	<%= link_to 'Names', space_users_path(@space), { :id => 'names_link' } %>
	<span class="selected">Groups</span>
</div>

<div id="list_by_groups" style="display: none;">
	<%= render :partial => 'groups/list' %>
</div>
<div id="list_by_name" >
	<%= render :partial => 'list' %>
</div>


{'fraction_non_alphanumeric': 0.22882077479778629, 'fraction_numerical': 0.0021285653469561515, 'mean_word_length': 4.534746760895171, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 151, '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': '7295030', 'n_tokens_mistral': 1843, 'n_tokens_neox': 1700, 'n_words': 314}