<commit_before>= render "layouts/nav" 
.usercontent
	.userinfo
		.useravatar
			= image_tag @user.avatar.url(:medium) 
		.userdetails
			%h1
				= @user.name
			%p
				= link_to "Add Friend", friendships_path(:friend_id => @user), :method => :post 
				= link_to "friends", user_path(@user)
				-#= link_to "Events", event_path(@user_id)
				-#= link_to "Inpact", inpact_path(@user_id)
				- if @user == current_user
					= link_to "Manage", edit_user_registration_path(current_user), class: "button2" 
	.userdescription
		%p 
			= @user.description
	%br
	.userdescription
		%h2 Friends
		- for friends in @user.friends
			%li
				= friends.name
<commit_msg>made sure you can only friend a person once while also not being able to add yourself as friend<commit_after>= render "layouts/nav" 
.usercontent
	.userinfo
		.useravatar
			= image_tag @user.avatar.url(:medium) 
		.userdetails
			%h1
				= @user.name
			%p
				- if user_signed_in?
					- if @user == current_user
						= link_to "Manage", edit_user_registration_path(current_user), class: "button2"
					-else
						- if current_user.friends.include?(@user)
							%i.fa.fa-check Friends
						-else
							= link_to "Add Friend", user_path(:friend_id => @user), :method => :post 
				-#= link_to "friends", user_path(@user)
				-#= link_to "Events", event_path(@user_id)
				-#= link_to "Inpact", inpact_path(@user_id)
	%br
	.userdescription
		%p 
			= @user.description
	%br
	.userdescription
		.user_friends
			%h2 Friends
			- for friends in @user.friends
				.friends
					.friend_avatar
						= image_tag friends.avatar.url(:thumb)
					.friend_name
						.title
							%h2= link_to friends.name, friends
{'fraction_non_alphanumeric': 0.12694610778443113, 'fraction_numerical': 0.004191616766467066, 'mean_word_length': 3.0558252427184467, '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': '749598', 'n_tokens_mistral': 746, 'n_tokens_neox': 599, 'n_words': 134}