<commit_before><div class="sidebar-box-holder">
	<%= image_tag("curve-top-sidebar-box.png")  %>		
	<div class="sidebar-box-profile">
		
		<div class="clearfix">
		<h2>
			<!--  Nebojsa - the link below is empty - should lead to person's profile -->
			<%= link_to person.first_name, "", :class => "positive" %> 
		</h2>
			<% if person != current_user.person %>
				<% if person.requested_trusted_relationship?(current_user.person) %>
				<h2 class="rhs-link">
					<%= link_to "cancel request", people_network_request_path(person.requested_trusted_relationship(current_user.person)), :method => :delete %>
				</h2>
				<% elsif people_network = current_user.person.trusts?(person) %>
				<h2 class="rhs-link">
					<%= link_to "withdraw trust", people_network_path(people_network), :method => :delete %>
				</h2>
				<% else %>
				<h2 class="rhs-link">
					<%= link_to "establish trust", people_network_requests_path(:trusted_person_id => person), :method => :post %>
				</h2>
				<% end %>
			<% end %>
		</h2>
		</div>
		
		<%= image_tag("devider-trust-profile.png", :class => "devider clearer", :alt => "")  %>
		<h3>Reputation</h3>
		<ul class="action-list clearfix">
			<li>
				<%= link_to current_user.person.gift_act_actions.to_s + " gift actions", "#", :class => "giftactions", :title => "Gift Actions" %>
			</li>
			<li>
				<%= link_to current_user.person.people_helped.to_s + " different people", "#", :class => "people-helped", :title => "People Helped" %>
			</li>
			<li>
				<%= link_to "100% positive feedback", "#", :class => "feedback-rating", :title => "People Helped" %>
			</li>
		</ul>
		<%= image_tag("devider-trust-profile.png", :class => "devider", :alt => "")  %>
		<h3>Trust Profile</h3>
		<ul>
			<li class="clearfix">
				<% if current_user.person.trusts?(person) %>
					<%= image_tag("ic-trusted-profile.png", :class => "icons", :alt => "Trusted Profile")  %>
					<p>
						In your trusted network
					</p>
				<% else %>
					<%= image_tag("ic-untrusted-profile.png", :class => "icons", :alt => "Untrusted Profile")  %>
					<p>
						Not in your trusted network
					</p>
				<% end %>
			</li>
			<li class="clearfix">
				<%= image_tag("ic-trusted-profile.png", :class => "icons", :alt => "Trusted Profile")  %>
				<p>
					<a href="#"><%= trusted_network = current_user.person.trusted_network_count(person) %></a> <%= (trusted_network == 1) ? "person" : "people" %> from your trusted network
				</p>
			</li>
<!--<commit_msg>'Pending' trust establishment<commit_after><div class="sidebar-box-holder">
	<%= image_tag("curve-top-sidebar-box.png")  %>		
	<div class="sidebar-box-profile">
		
		<div class="clearfix">
		<h2>
			<!--  Nebojsa - the link below is empty - should lead to person's profile -->
			<%= link_to person.first_name, "", :class => "positive" %> 
		</h2>
			<% if person != current_user.person %>
				<% if person.requested_trusted_relationship?(current_user.person) %>
				<h2 class="rhs-link">
					<%= link_to "cancel request", people_network_request_path(person.requested_trusted_relationship(current_user.person)), :method => :delete %>
				</h2>
				<% elsif people_network = current_user.person.trusts?(person) %>
				<h2 class="rhs-link">
					<%= link_to "withdraw trust", people_network_path(people_network), :method => :delete %>
				</h2>
				<% else %>
				<h2 class="rhs-link">
					<%= link_to "establish trust", people_network_requests_path(:trusted_person_id => person), :method => :post %>
				</h2>
				<% end %>
			<% end %>
		</h2>
		</div>
		
		<%= image_tag("devider-trust-profile.png", :class => "devider clearer", :alt => "")  %>
		<h3>Reputation</h3>
		<ul class="action-list clearfix">
			<li>
				<%= link_to current_user.person.gift_act_actions.to_s + " gift actions", "#", :class => "giftactions", :title => "Gift Actions" %>
			</li>
			<li>
				<%= link_to current_user.person.people_helped.to_s + " different people", "#", :class => "people-helped", :title => "People Helped" %>
			</li>
			<li>
				<%= link_to "100% positive feedback", "#", :class => "feedback-rating", :title => "People Helped" %>
			</li>
		</ul>
		<%= image_tag("devider-trust-profile.png", :class => "devider", :alt => "")  %>
		<h3>Trust Profile</h3>
		<ul>
			<li class="clearfix">
				<% if current_user.person.trusts?(person) %>
					<%= image_tag("ic-trusted-profile.png", :class => "icons", :alt => "Trusted Profile")  %>
					<p>
						In your trusted network
					</p>
				<% else %>
					<%= image_tag("ic-untrusted-profile.png", :class => "icons", :alt => "Untrusted Profile")  %>
					<p>
					<% if person.requested_trusted_relationship?(current_user.person) %>
						 Establish trust request pending
					<% else %>
					   Not in your trusted network
					<% end %>

					</p>
				<% end %>
			</li>
			<li class="clearfix">
				<%= image_tag("ic-trusted-profile.png", :class => "icons", :alt => "Trusted Profile")  %>
				<p>
					<a href="#"><%= trusted_network = current_user.person.trusted_network_count(person) %></a> <%= (trusted_network == 1) ? "person" : "people" %> from your trusted network
				</p>
			</li>
<!--
{'fraction_non_alphanumeric': 0.20336660794676062, 'fraction_numerical': 0.006654922685457036, 'mean_word_length': 3.4434782608695653, 'pattern_counts': {'":': 0, '<': 134, '<?xml version=': 0, '>': 174, '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': '7575844', 'n_tokens_mistral': 2235, 'n_tokens_neox': 1796, 'n_words': 352}