<commit_before>
<%unless params[:admin]%>	
	<div id="results_count">
		<h3>Groups, <%=@groups.size%> results</h3>	
	</div>
<%end%>

	<% for group in @groups -%>
		<div class="group">
			<ul class="group_links">
				<%if @space.users.include?(current_user)%>
					<li><%= link_to 'Send a Message', space_groups_path(@space, :send_message => group.users) %></li>
					<!--<li><a>e-mail</a></li>-->
					<li><%= link_to 'Join', space_group_path(@space, group, :add_user => current_user.id), :method => :put if @space.users.include?(current_user) && !group.users.include?(current_user)%></li>
					<li><%= link_to 'Edit', edit_space_group_path(@space, group, :admin => params[:admin]) if @space.authorizes?([:manage, :group], :to => current_user)%></li>
					<li><%= link_to 'Delete', space_group_path(@space, group, :admin => params[:admin]), :confirm => "Are you sure?", :method => :delete, :class => 'delete_group' if @space.authorizes?([:manage, :group], :to => current_user)%></li><commit_msg>superadmin non appear links issue solved<commit_after>
<%unless params[:admin]%>	
	<div id="results_count">
		<h3>Groups, <%=@groups.size%> results</h3>	
	</div>
<%end%>

	<% for group in @groups -%>
		<div class="group">
			<ul class="group_links">
				<%if @space.users.include?(current_user) || current_user.superuser?%>
					<li><%= link_to 'Send a Message', space_groups_path(@space, :send_message => group.users) %></li>
					<!--<li><a>e-mail</a></li>-->
					<li><%= link_to 'Join', space_group_path(@space, group, :add_user => current_user.id), :method => :put if @space.users.include?(current_user) && !group.users.include?(current_user)%></li>
					<li><%= link_to 'Edit', edit_space_group_path(@space, group, :admin => params[:admin]) if @space.authorizes?([:manage, :group], :to => current_user)%></li>
					<li><%= link_to 'Delete', space_group_path(@space, group, :admin => params[:admin]), :confirm => "Are you sure?", :method => :delete, :class => 'delete_group' if @space.authorizes?([:manage, :group], :to => current_user)%></li>
{'fraction_non_alphanumeric': 0.23212536728697356, 'fraction_numerical': 0.0019588638589618022, 'mean_word_length': 5.485714285714286, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 79, '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': '947656', 'n_tokens_mistral': 808, 'n_tokens_neox': 729, 'n_words': 153}